bkui-vue 0.0.1-beta.14 → 0.0.1-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -17
- package/README_EN.md +89 -0
- package/dist/bkui-vue.cjs.js +2266 -535
- package/dist/bkui-vue.esm.js +2308 -582
- package/dist/bkui-vue.umd.js +2266 -535
- package/dist/style.css +601 -189
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +6 -0
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +6 -0
- package/lib/backtop/index.d.ts +108 -52
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +6 -0
- package/lib/badge/index.d.ts +144 -76
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +16 -1
- package/lib/breadcrumb/index.d.ts +117 -45
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.d.ts +27 -22
- package/lib/button/button.variable.css +6 -0
- package/lib/button/index.d.ts +111 -93
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +6 -0
- package/lib/card/index.d.ts +120 -60
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +6 -0
- package/lib/checkbox/index.d.ts +137 -97
- package/lib/checkbox/index.js +1 -1
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/index.d.ts +108 -72
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +4 -0
- package/lib/date-picker/date-picker.d.ts +110 -63
- package/lib/date-picker/date-picker.variable.css +6 -0
- package/lib/date-picker/index.d.ts +437 -249
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.d.ts +46 -25
- package/lib/dialog/index.d.ts +179 -95
- package/lib/directives/index.js +1 -1
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +6 -0
- package/lib/divider/index.d.ts +84 -52
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.d.ts +25 -13
- package/lib/dropdown/dropdown.variable.css +6 -0
- package/lib/dropdown/index.d.ts +94 -62
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +6 -0
- package/lib/exception/index.d.ts +44 -36
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +6 -0
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/form-item.d.ts +46 -27
- package/lib/form/form.d.ts +21 -13
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +7 -3
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/warn.js +15 -0
- package/lib/input/index.d.ts +251 -163
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +1 -0
- package/lib/input/input.d.ts +62 -40
- package/lib/input/input.less +4 -3
- package/lib/input/input.variable.css +7 -0
- package/lib/link/index.d.ts +100 -52
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +6 -0
- package/lib/loading/index.d.ts +64 -64
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +16 -16
- package/lib/loading/loading.variable.css +6 -0
- package/lib/menu/index.d.ts +90 -71
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.d.ts +18 -14
- package/lib/menu/menu.variable.css +6 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +9 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.variable.css +6 -0
- package/lib/message/messageConstructor.d.ts +28 -16
- package/lib/modal/index.d.ts +92 -56
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +24 -15
- package/lib/modal/props.mixin.d.ts +1 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.d.ts +40 -23
- package/lib/navigation/navigation.variable.css +6 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.variable.css +6 -0
- package/lib/notify/notifyConstructor.d.ts +37 -21
- package/lib/popover/index.d.ts +219 -134
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +22 -13
- package/lib/popover/popover.d.ts +73 -44
- package/lib/popover/popover.less +55 -45
- package/lib/popover/popover.variable.css +28 -13
- package/lib/popover/props.d.ts +77 -0
- package/lib/process/index.d.ts +120 -60
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +2 -3
- package/lib/process/process.d.ts +30 -15
- package/lib/process/process.less +2 -3
- package/lib/process/process.variable.css +8 -3
- package/lib/progress/index.d.ts +290 -120
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +84 -31
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +6 -3
- package/lib/radio/index.d.ts +127 -78
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.variable.css +6 -0
- package/lib/rate/index.d.ts +52 -40
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +32 -15
- package/lib/select/common.d.ts +10 -1
- package/lib/select/index.d.ts +515 -503
- package/lib/select/index.js +2 -2
- package/lib/select/option.d.ts +10 -17
- package/lib/select/optionGroup.d.ts +67 -52
- package/lib/select/select.css +71 -14
- package/lib/select/select.d.ts +136 -137
- package/lib/select/select.less +73 -14
- package/lib/select/select.variable.css +77 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-popover.d.ts +45 -4
- package/lib/shared/index.d.ts +10 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/sideslider/index.d.ts +111 -63
- package/lib/sideslider/sideslider.d.ts +29 -17
- package/lib/sideslider/sideslider.variable.css +6 -0
- package/lib/slider/slider-button.d.ts +10 -7
- package/lib/slider/slider.d.ts +70 -40
- package/lib/slider/slider.variable.css +6 -0
- package/lib/steps/index.d.ts +156 -104
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +3 -0
- package/lib/steps/steps.d.ts +39 -26
- package/lib/steps/steps.less +4 -0
- package/lib/steps/steps.variable.css +9 -0
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/themes/themes.less +10 -0
- package/lib/switcher/index.d.ts +192 -128
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +155 -135
- package/lib/tab/index.d.ts +344 -208
- package/lib/tab/index.js +1 -1
- package/lib/tab/tab-nav.d.ts +74 -38
- package/lib/tab/tab-panel.d.ts +22 -20
- package/lib/tab/tab.d.ts +64 -32
- package/lib/tab/tab.variable.css +6 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +169 -70
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +56 -0
- package/lib/table/render.d.ts +19 -3
- package/lib/table/table.css +52 -13
- package/lib/table/table.d.ts +71 -12
- package/lib/table/table.less +62 -18
- package/lib/table/table.variable.css +60 -15
- package/lib/table/utils.d.ts +34 -1
- package/lib/tag/index.d.ts +10 -286
- package/lib/tag/tag.d.ts +2 -48
- package/lib/tag/tag.variable.css +6 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +327 -0
- package/lib/tree/index.d.ts +148 -69
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +70 -0
- package/lib/tree/tree.css +16 -7
- package/lib/tree/tree.d.ts +51 -23
- package/lib/tree/tree.less +24 -24
- package/lib/tree/tree.variable.css +16 -7
- package/lib/tree/util.d.ts +3 -44
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +9 -7
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
default: string;
|
18
18
|
};
|
19
19
|
customClass: {
|
20
|
-
type: (
|
20
|
+
type: (ArrayConstructor | StringConstructor)[];
|
21
21
|
default: string;
|
22
22
|
};
|
23
23
|
scrollable: {
|
@@ -26,28 +26,40 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
};
|
27
27
|
}, unknown, unknown, {}, {
|
28
28
|
handleClose(): void;
|
29
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
30
|
-
direction
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
29
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
|
+
direction: {
|
31
|
+
type: StringConstructor;
|
32
|
+
default: string;
|
33
|
+
validator: (value: string) => boolean;
|
34
|
+
};
|
35
|
+
isShow: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
width: {
|
40
|
+
type: (NumberConstructor | StringConstructor)[];
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
height: {
|
44
|
+
type: (NumberConstructor | StringConstructor)[];
|
45
|
+
default: string;
|
46
|
+
};
|
47
|
+
customClass: {
|
48
|
+
type: (ArrayConstructor | StringConstructor)[];
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
scrollable: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
55
|
+
}>> & {
|
44
56
|
onClosed?: (...args: any[]) => any;
|
45
57
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
46
58
|
}, {
|
47
59
|
width: string | number;
|
48
60
|
height: string | number;
|
49
61
|
isShow: boolean;
|
50
|
-
customClass: string;
|
62
|
+
customClass: string | unknown[];
|
51
63
|
scrollable: boolean;
|
52
64
|
direction: string;
|
53
65
|
}>;
|
@@ -83,6 +83,12 @@
|
|
83
83
|
--date-picker-disabled-bg: #fafbfd;
|
84
84
|
--date-picker-dropdown-mb: 4px;
|
85
85
|
--date-picker-dropdown-bg: #fff;
|
86
|
+
--table-bg-color: var(--white-color);
|
87
|
+
--table-border-color: #dcdee5;
|
88
|
+
--table-head-bg-color: #fafbfd;
|
89
|
+
--table-head-font-color: #313238;
|
90
|
+
--table-body-font-color: #575961;
|
91
|
+
--table-row-hover-bg-color: #f5f7fa;
|
86
92
|
}
|
87
93
|
.bk-modal-wrapper.bk-sideslider-wrapper {
|
88
94
|
position: fixed;
|
@@ -55,13 +55,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
55
55
|
}, {
|
56
56
|
renderDom: () => JSX.Element;
|
57
57
|
setPosition: (position: number) => void;
|
58
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "emitChange" | "resetSize")[], "update:modelValue" | "emitChange" | "resetSize", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
59
|
-
modelValue
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
params:
|
64
|
-
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "emitChange" | "resetSize")[], "update:modelValue" | "emitChange" | "resetSize", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
59
|
+
modelValue: {
|
60
|
+
type: NumberConstructor;
|
61
|
+
default: number;
|
62
|
+
};
|
63
|
+
params: {
|
64
|
+
type: PropType<Params>;
|
65
|
+
default: () => {};
|
66
|
+
};
|
67
|
+
}>> & {
|
65
68
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
66
69
|
onEmitChange?: (...args: any[]) => any;
|
67
70
|
onResetSize?: (...args: any[]) => any;
|
package/lib/slider/slider.d.ts
CHANGED
@@ -96,46 +96,76 @@ declare const _default: import("vue").DefineComponent<{
|
|
96
96
|
};
|
97
97
|
}, {
|
98
98
|
renderDom: () => JSX.Element;
|
99
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
100
|
-
modelValue
|
101
|
-
extCls
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
99
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
100
|
+
modelValue: import("vue-types").VueTypeDef<number | unknown[]>;
|
101
|
+
extCls: {
|
102
|
+
type: StringConstructor;
|
103
|
+
default: string;
|
104
|
+
};
|
105
|
+
vertical: {
|
106
|
+
type: BooleanConstructor;
|
107
|
+
default: boolean;
|
108
|
+
};
|
109
|
+
height: {
|
110
|
+
type: StringConstructor;
|
111
|
+
default: string;
|
112
|
+
};
|
113
|
+
disable: {
|
114
|
+
type: BooleanConstructor;
|
115
|
+
default: boolean;
|
116
|
+
};
|
117
|
+
showTip: {
|
118
|
+
type: BooleanConstructor;
|
119
|
+
default: boolean;
|
120
|
+
};
|
121
|
+
maxValue: {
|
122
|
+
type: NumberConstructor[];
|
123
|
+
default: number;
|
124
|
+
};
|
125
|
+
minValue: {
|
126
|
+
type: NumberConstructor[];
|
127
|
+
default: number;
|
128
|
+
};
|
129
|
+
step: {
|
130
|
+
type: NumberConstructor[];
|
131
|
+
default: number;
|
132
|
+
};
|
133
|
+
range: {
|
134
|
+
type: BooleanConstructor;
|
135
|
+
default: boolean;
|
136
|
+
};
|
137
|
+
showInterval: {
|
138
|
+
type: BooleanConstructor;
|
139
|
+
default: boolean;
|
140
|
+
};
|
141
|
+
showIntervalLabel: {
|
142
|
+
type: BooleanConstructor;
|
143
|
+
default: boolean;
|
144
|
+
};
|
145
|
+
showButtonLabel: {
|
146
|
+
type: BooleanConstructor;
|
147
|
+
default: boolean;
|
148
|
+
};
|
149
|
+
showBetweenLabel: {
|
150
|
+
type: BooleanConstructor;
|
151
|
+
default: boolean;
|
152
|
+
};
|
153
|
+
showInput: {
|
154
|
+
type: BooleanConstructor;
|
155
|
+
default: boolean;
|
156
|
+
};
|
157
|
+
customContent: {
|
158
|
+
type: ObjectConstructor;
|
159
|
+
};
|
160
|
+
formatterLabel: {
|
161
|
+
type: FunctionConstructor;
|
162
|
+
default: (value: number) => number;
|
163
|
+
};
|
164
|
+
formatterButtonLabel: {
|
165
|
+
type: FunctionConstructor;
|
166
|
+
default: (value: number) => number;
|
167
|
+
};
|
168
|
+
}>> & {
|
139
169
|
onChange?: (...args: any[]) => any;
|
140
170
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
141
171
|
}, {
|
@@ -83,6 +83,12 @@
|
|
83
83
|
--date-picker-disabled-bg: #fafbfd;
|
84
84
|
--date-picker-dropdown-mb: 4px;
|
85
85
|
--date-picker-dropdown-bg: #fff;
|
86
|
+
--table-bg-color: var(--white-color);
|
87
|
+
--table-border-color: #dcdee5;
|
88
|
+
--table-head-bg-color: #fafbfd;
|
89
|
+
--table-head-font-color: #313238;
|
90
|
+
--table-body-font-color: #575961;
|
91
|
+
--table-row-hover-bg-color: #f5f7fa;
|
86
92
|
}
|
87
93
|
.bk-slider {
|
88
94
|
display: flex;
|
package/lib/steps/index.d.ts
CHANGED
@@ -13,32 +13,45 @@ declare const BkSteps: {
|
|
13
13
|
status: string;
|
14
14
|
curStep: number;
|
15
15
|
steps: unknown[];
|
16
|
-
}> & Omit<Readonly<{
|
17
|
-
theme
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
16
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
17
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
size: import("vue-types").VueTypeDef<string>;
|
21
|
+
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
22
|
+
default: number;
|
23
|
+
} & {
|
24
|
+
default: number;
|
25
|
+
};
|
26
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
27
|
+
default: boolean;
|
28
|
+
} & {
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
32
|
+
default: string;
|
33
|
+
};
|
34
|
+
status: import("vue-types").VueTypeDef<string> & {
|
35
|
+
default: string;
|
36
|
+
};
|
37
|
+
lineType: import("vue-types").VueTypeDef<string> & {
|
38
|
+
default: string;
|
39
|
+
};
|
40
|
+
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
|
+
default: boolean;
|
42
|
+
};
|
43
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
47
|
+
default: () => unknown[];
|
48
|
+
} & {
|
49
|
+
default: () => unknown[];
|
50
|
+
};
|
51
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
52
|
+
default: (...args: any[]) => any;
|
53
|
+
};
|
54
|
+
}>> & {
|
42
55
|
onClick?: (...args: any[]) => any;
|
43
56
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
44
57
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "theme" | "extCls" | "beforeChange" | "direction" | "lineType" | "controllable" | "status" | "curStep" | "steps">;
|
@@ -55,32 +68,45 @@ declare const BkSteps: {
|
|
55
68
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
56
69
|
$emit: (event: "click" | "update:curStep", ...args: any[]) => void;
|
57
70
|
$el: any;
|
58
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{
|
59
|
-
theme
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
71
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
72
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
73
|
+
default: string;
|
74
|
+
};
|
75
|
+
size: import("vue-types").VueTypeDef<string>;
|
76
|
+
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
77
|
+
default: number;
|
78
|
+
} & {
|
79
|
+
default: number;
|
80
|
+
};
|
81
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
82
|
+
default: boolean;
|
83
|
+
} & {
|
84
|
+
default: boolean;
|
85
|
+
};
|
86
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
87
|
+
default: string;
|
88
|
+
};
|
89
|
+
status: import("vue-types").VueTypeDef<string> & {
|
90
|
+
default: string;
|
91
|
+
};
|
92
|
+
lineType: import("vue-types").VueTypeDef<string> & {
|
93
|
+
default: string;
|
94
|
+
};
|
95
|
+
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
96
|
+
default: boolean;
|
97
|
+
};
|
98
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
99
|
+
default: string;
|
100
|
+
};
|
101
|
+
steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
102
|
+
default: () => unknown[];
|
103
|
+
} & {
|
104
|
+
default: () => unknown[];
|
105
|
+
};
|
106
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
107
|
+
default: (...args: any[]) => any;
|
108
|
+
};
|
109
|
+
}>> & {
|
84
110
|
onClick?: (...args: any[]) => any;
|
85
111
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
86
112
|
}, {
|
@@ -117,32 +143,45 @@ declare const BkSteps: {
|
|
117
143
|
$forceUpdate: () => void;
|
118
144
|
$nextTick: typeof import("vue").nextTick;
|
119
145
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
120
|
-
} & Readonly<{
|
121
|
-
theme
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
147
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
148
|
+
default: string;
|
149
|
+
};
|
150
|
+
size: import("vue-types").VueTypeDef<string>;
|
151
|
+
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
152
|
+
default: number;
|
153
|
+
} & {
|
154
|
+
default: number;
|
155
|
+
};
|
156
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
157
|
+
default: boolean;
|
158
|
+
} & {
|
159
|
+
default: boolean;
|
160
|
+
};
|
161
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
162
|
+
default: string;
|
163
|
+
};
|
164
|
+
status: import("vue-types").VueTypeDef<string> & {
|
165
|
+
default: string;
|
166
|
+
};
|
167
|
+
lineType: import("vue-types").VueTypeDef<string> & {
|
168
|
+
default: string;
|
169
|
+
};
|
170
|
+
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
171
|
+
default: boolean;
|
172
|
+
};
|
173
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
174
|
+
default: string;
|
175
|
+
};
|
176
|
+
steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
177
|
+
default: () => unknown[];
|
178
|
+
} & {
|
179
|
+
default: () => unknown[];
|
180
|
+
};
|
181
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
182
|
+
default: (...args: any[]) => any;
|
183
|
+
};
|
184
|
+
}>> & {
|
146
185
|
onClick?: (...args: any[]) => any;
|
147
186
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
148
187
|
} & import("vue").ShallowUnwrapRef<{
|
@@ -152,32 +191,45 @@ declare const BkSteps: {
|
|
152
191
|
__isFragment?: never;
|
153
192
|
__isTeleport?: never;
|
154
193
|
__isSuspense?: never;
|
155
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
156
|
-
theme
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
} & {
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
194
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
195
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
196
|
+
default: string;
|
197
|
+
};
|
198
|
+
size: import("vue-types").VueTypeDef<string>;
|
199
|
+
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
200
|
+
default: number;
|
201
|
+
} & {
|
202
|
+
default: number;
|
203
|
+
};
|
204
|
+
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
205
|
+
default: boolean;
|
206
|
+
} & {
|
207
|
+
default: boolean;
|
208
|
+
};
|
209
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
210
|
+
default: string;
|
211
|
+
};
|
212
|
+
status: import("vue-types").VueTypeDef<string> & {
|
213
|
+
default: string;
|
214
|
+
};
|
215
|
+
lineType: import("vue-types").VueTypeDef<string> & {
|
216
|
+
default: string;
|
217
|
+
};
|
218
|
+
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
219
|
+
default: boolean;
|
220
|
+
};
|
221
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
222
|
+
default: string;
|
223
|
+
};
|
224
|
+
steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
225
|
+
default: () => unknown[];
|
226
|
+
} & {
|
227
|
+
default: () => unknown[];
|
228
|
+
};
|
229
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
230
|
+
default: (...args: any[]) => any;
|
231
|
+
};
|
232
|
+
}>> & {
|
181
233
|
onClick?: (...args: any[]) => any;
|
182
234
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
183
235
|
}, {
|
package/lib/steps/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Vue,t.Shared,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var s=c.exports;
|
2
2
|
/*! *****************************************************************************
|
3
3
|
Copyright (c) Microsoft Corporation.
|
4
4
|
|
package/lib/steps/steps.css
CHANGED
@@ -117,6 +117,9 @@
|
|
117
117
|
.bk-steps .bk-step.done .bk-step-description {
|
118
118
|
color: #63656e;
|
119
119
|
}
|
120
|
+
.bk-steps .bk-step.done .bk-steps-icon {
|
121
|
+
font-size: 22px;
|
122
|
+
}
|
120
123
|
.bk-steps .bk-step.current .bk-step-number,
|
121
124
|
.bk-steps .bk-step.current .bk-step-icon,
|
122
125
|
.bk-steps .bk-step.current .bk-step-text {
|