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
package/lib/progress/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ declare const BkProgress: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
+
fixed: number;
|
6
7
|
width: number;
|
7
8
|
color: string;
|
8
9
|
theme: string;
|
@@ -12,43 +13,85 @@ declare const BkProgress: {
|
|
12
13
|
percent: number;
|
13
14
|
strokeWidth: number;
|
14
15
|
strokeLinecap: string;
|
16
|
+
bgColor: string;
|
15
17
|
titleStyle: {
|
16
18
|
[key: string]: any;
|
17
19
|
};
|
18
20
|
showText: boolean;
|
19
21
|
textInside: boolean;
|
20
|
-
}> & Omit<Readonly<{
|
21
|
-
extCls
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
22
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
23
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
27
|
+
default: string;
|
28
|
+
} & {
|
29
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
30
|
+
} & {
|
31
|
+
default: string;
|
32
|
+
};
|
33
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
34
|
+
default: number;
|
35
|
+
} & {
|
36
|
+
default: number;
|
37
|
+
};
|
38
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
39
|
+
default: string;
|
40
|
+
};
|
41
|
+
size: import("vue-types").VueTypeDef<string>;
|
42
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
43
|
+
default: number;
|
44
|
+
} & {
|
45
|
+
default: number;
|
46
|
+
};
|
47
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
48
|
+
default: number;
|
49
|
+
};
|
50
|
+
strokeLinecap: import("vue-types").VueTypeValidableDef<string> & {
|
51
|
+
default: string;
|
52
|
+
} & {
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
|
+
default: boolean;
|
57
|
+
} & {
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
61
|
+
default: boolean;
|
62
|
+
} & {
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
66
|
+
default: string;
|
67
|
+
};
|
68
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
69
|
+
default: string;
|
70
|
+
};
|
71
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
72
|
+
default: number;
|
73
|
+
} & {
|
74
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
75
|
+
} & {
|
76
|
+
default: number;
|
77
|
+
};
|
78
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
79
|
+
default: (...args: any[]) => any;
|
80
|
+
} & {
|
81
|
+
default: (...args: any[]) => any;
|
82
|
+
};
|
83
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
44
84
|
[key: string]: any;
|
85
|
+
}> & {
|
86
|
+
default: () => {
|
87
|
+
[key: string]: any;
|
88
|
+
};
|
89
|
+
} & {
|
90
|
+
default: () => {
|
91
|
+
[key: string]: any;
|
92
|
+
};
|
45
93
|
};
|
46
|
-
|
47
|
-
textInside: boolean;
|
48
|
-
} & {
|
49
|
-
size?: string;
|
50
|
-
format?: (...args: any[]) => any;
|
51
|
-
}> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "color" | "theme" | "extCls" | "type" | "format" | "percent" | "strokeWidth" | "strokeLinecap" | "titleStyle" | "showText" | "textInside">;
|
94
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "width" | "color" | "theme" | "extCls" | "type" | "format" | "percent" | "strokeWidth" | "strokeLinecap" | "bgColor" | "titleStyle" | "showText" | "textInside">;
|
52
95
|
$attrs: {
|
53
96
|
[x: string]: unknown;
|
54
97
|
};
|
@@ -62,43 +105,85 @@ declare const BkProgress: {
|
|
62
105
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
63
106
|
$emit: (event: string, ...args: any[]) => void;
|
64
107
|
$el: any;
|
65
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{
|
66
|
-
extCls
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
108
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
109
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
110
|
+
default: string;
|
111
|
+
};
|
112
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
113
|
+
default: string;
|
114
|
+
} & {
|
115
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
116
|
+
} & {
|
117
|
+
default: string;
|
118
|
+
};
|
119
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
120
|
+
default: number;
|
121
|
+
} & {
|
122
|
+
default: number;
|
123
|
+
};
|
124
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
size: import("vue-types").VueTypeDef<string>;
|
128
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
129
|
+
default: number;
|
130
|
+
} & {
|
131
|
+
default: number;
|
132
|
+
};
|
133
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
134
|
+
default: number;
|
135
|
+
};
|
136
|
+
strokeLinecap: import("vue-types").VueTypeValidableDef<string> & {
|
137
|
+
default: string;
|
138
|
+
} & {
|
139
|
+
default: string;
|
140
|
+
};
|
141
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
142
|
+
default: boolean;
|
143
|
+
} & {
|
144
|
+
default: boolean;
|
145
|
+
};
|
146
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
147
|
+
default: boolean;
|
148
|
+
} & {
|
149
|
+
default: boolean;
|
150
|
+
};
|
151
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
152
|
+
default: string;
|
153
|
+
};
|
154
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
155
|
+
default: string;
|
156
|
+
};
|
157
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
158
|
+
default: number;
|
159
|
+
} & {
|
160
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
161
|
+
} & {
|
162
|
+
default: number;
|
163
|
+
};
|
164
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
165
|
+
default: (...args: any[]) => any;
|
166
|
+
} & {
|
167
|
+
default: (...args: any[]) => any;
|
168
|
+
};
|
169
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
89
170
|
[key: string]: any;
|
171
|
+
}> & {
|
172
|
+
default: () => {
|
173
|
+
[key: string]: any;
|
174
|
+
};
|
175
|
+
} & {
|
176
|
+
default: () => {
|
177
|
+
[key: string]: any;
|
178
|
+
};
|
90
179
|
};
|
91
|
-
|
92
|
-
textInside: boolean;
|
93
|
-
} & {
|
94
|
-
size?: string;
|
95
|
-
format?: (...args: any[]) => any;
|
96
|
-
}> & {}, {}, unknown, {}, {
|
180
|
+
}>>, {}, unknown, {}, {
|
97
181
|
validPercent(percent?: number): number;
|
98
182
|
renderProcessInfo(): JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
99
183
|
[key: string]: any;
|
100
184
|
}>[];
|
101
185
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
186
|
+
fixed: number;
|
102
187
|
width: number;
|
103
188
|
color: string;
|
104
189
|
theme: string;
|
@@ -108,6 +193,7 @@ declare const BkProgress: {
|
|
108
193
|
percent: number;
|
109
194
|
strokeWidth: number;
|
110
195
|
strokeLinecap: string;
|
196
|
+
bgColor: string;
|
111
197
|
titleStyle: {
|
112
198
|
[key: string]: any;
|
113
199
|
};
|
@@ -133,38 +219,79 @@ declare const BkProgress: {
|
|
133
219
|
$forceUpdate: () => void;
|
134
220
|
$nextTick: typeof import("vue").nextTick;
|
135
221
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
136
|
-
} & Readonly<{
|
137
|
-
extCls
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
222
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
223
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
224
|
+
default: string;
|
225
|
+
};
|
226
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
227
|
+
default: string;
|
228
|
+
} & {
|
229
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
230
|
+
} & {
|
231
|
+
default: string;
|
232
|
+
};
|
233
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
234
|
+
default: number;
|
235
|
+
} & {
|
236
|
+
default: number;
|
237
|
+
};
|
238
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
239
|
+
default: string;
|
240
|
+
};
|
241
|
+
size: import("vue-types").VueTypeDef<string>;
|
242
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
243
|
+
default: number;
|
244
|
+
} & {
|
245
|
+
default: number;
|
246
|
+
};
|
247
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
248
|
+
default: number;
|
249
|
+
};
|
250
|
+
strokeLinecap: import("vue-types").VueTypeValidableDef<string> & {
|
251
|
+
default: string;
|
252
|
+
} & {
|
253
|
+
default: string;
|
254
|
+
};
|
255
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
256
|
+
default: boolean;
|
257
|
+
} & {
|
258
|
+
default: boolean;
|
259
|
+
};
|
260
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
261
|
+
default: boolean;
|
262
|
+
} & {
|
263
|
+
default: boolean;
|
264
|
+
};
|
265
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
266
|
+
default: string;
|
267
|
+
};
|
268
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
269
|
+
default: string;
|
270
|
+
};
|
271
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
272
|
+
default: number;
|
273
|
+
} & {
|
274
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
275
|
+
} & {
|
276
|
+
default: number;
|
277
|
+
};
|
278
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
279
|
+
default: (...args: any[]) => any;
|
280
|
+
} & {
|
281
|
+
default: (...args: any[]) => any;
|
282
|
+
};
|
283
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
160
284
|
[key: string]: any;
|
285
|
+
}> & {
|
286
|
+
default: () => {
|
287
|
+
[key: string]: any;
|
288
|
+
};
|
289
|
+
} & {
|
290
|
+
default: () => {
|
291
|
+
[key: string]: any;
|
292
|
+
};
|
161
293
|
};
|
162
|
-
|
163
|
-
textInside: boolean;
|
164
|
-
} & {
|
165
|
-
size?: string;
|
166
|
-
format?: (...args: any[]) => any;
|
167
|
-
}> & {} & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
|
294
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
|
168
295
|
validPercent(percent?: number): number;
|
169
296
|
renderProcessInfo(): JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
170
297
|
[key: string]: any;
|
@@ -173,43 +300,85 @@ declare const BkProgress: {
|
|
173
300
|
__isFragment?: never;
|
174
301
|
__isTeleport?: never;
|
175
302
|
__isSuspense?: never;
|
176
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
177
|
-
extCls
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
303
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
304
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
305
|
+
default: string;
|
306
|
+
};
|
307
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
308
|
+
default: string;
|
309
|
+
} & {
|
310
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
311
|
+
} & {
|
312
|
+
default: string;
|
313
|
+
};
|
314
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
315
|
+
default: number;
|
316
|
+
} & {
|
317
|
+
default: number;
|
318
|
+
};
|
319
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
320
|
+
default: string;
|
321
|
+
};
|
322
|
+
size: import("vue-types").VueTypeDef<string>;
|
323
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
324
|
+
default: number;
|
325
|
+
} & {
|
326
|
+
default: number;
|
327
|
+
};
|
328
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
329
|
+
default: number;
|
330
|
+
};
|
331
|
+
strokeLinecap: import("vue-types").VueTypeValidableDef<string> & {
|
332
|
+
default: string;
|
333
|
+
} & {
|
334
|
+
default: string;
|
335
|
+
};
|
336
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
337
|
+
default: boolean;
|
338
|
+
} & {
|
339
|
+
default: boolean;
|
340
|
+
};
|
341
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
342
|
+
default: boolean;
|
343
|
+
} & {
|
344
|
+
default: boolean;
|
345
|
+
};
|
346
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
347
|
+
default: string;
|
348
|
+
};
|
349
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
350
|
+
default: string;
|
351
|
+
};
|
352
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
353
|
+
default: number;
|
354
|
+
} & {
|
355
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
356
|
+
} & {
|
357
|
+
default: number;
|
358
|
+
};
|
359
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
360
|
+
default: (...args: any[]) => any;
|
361
|
+
} & {
|
362
|
+
default: (...args: any[]) => any;
|
363
|
+
};
|
364
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
200
365
|
[key: string]: any;
|
366
|
+
}> & {
|
367
|
+
default: () => {
|
368
|
+
[key: string]: any;
|
369
|
+
};
|
370
|
+
} & {
|
371
|
+
default: () => {
|
372
|
+
[key: string]: any;
|
373
|
+
};
|
201
374
|
};
|
202
|
-
|
203
|
-
textInside: boolean;
|
204
|
-
} & {
|
205
|
-
size?: string;
|
206
|
-
format?: (...args: any[]) => any;
|
207
|
-
}> & {}, {}, unknown, {}, {
|
375
|
+
}>>, {}, unknown, {}, {
|
208
376
|
validPercent(percent?: number): number;
|
209
377
|
renderProcessInfo(): JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
210
378
|
[key: string]: any;
|
211
379
|
}>[];
|
212
380
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
381
|
+
fixed: number;
|
213
382
|
width: number;
|
214
383
|
color: string;
|
215
384
|
theme: string;
|
@@ -219,6 +388,7 @@ declare const BkProgress: {
|
|
219
388
|
percent: number;
|
220
389
|
strokeWidth: number;
|
221
390
|
strokeLinecap: string;
|
391
|
+
bgColor: string;
|
222
392
|
titleStyle: {
|
223
393
|
[key: string]: any;
|
224
394
|
};
|
package/lib/progress/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,r){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var n=o(s.exports),c=function(e,r){var o=r.attrs,s=r.slots,c=o.percent,a=o.strokeWidth,i=o.size,l=o.color,p=o.titleStyle,d=o.showText,u=o.textInside,f=o.theme,h={height:"".concat(a,"px"),lineHeight:"".concat(a,"px")},y={width:"".concat(c,"%"),background:l,animationDuration:"3s"},b=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(d||s.default)&&(e&&u||!e&&!u)?null==s?void 0:s.default():null};return t.createVNode("div",{class:"progress-outer"},[t.createVNode("div",{class:"bk-progress-".concat(i||"normal"," progress-bar"),style:h},[t.createVNode("div",{style:y,class:n({"progress-inner":!0},"bk-".concat(f),!0)},[t.createVNode("div",{class:"inner-text",style:p},[b()])])]),b(!1)])},a=function(e,r){var o=r.attrs,s=r.slots,n=o.width,c=o.percent,a=o.strokeWidth,i=o.color,l=o.strokeLinecap,p=o.theme,d=o.type,u=o.bgColor,f=o.titleStyle,h=a||6,y=n||126,b={width:"number"==typeof y?"".concat(y,"px"):y,height:"number"==typeof y?"".concat(y,"px"):y,fontSize:"".concat(.15*y+6,"px")},x=50-h/2,v="dashboard"===d,g=2*Math.PI*x,P=v?.75:1,k="".concat(-1*g*(1-P)/2,"px"),m={strokeDasharray:"".concat(g*P,"px, ").concat(g,"px"),strokeDashoffset:k},T={strokeDasharray:"".concat(g*P*(c/100),"px, ").concat(g,"px"),strokeDashoffset:k,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"},V="\n M 50 50\n m 0 ".concat(v?"":"-").concat(x,"\n a ").concat(x," ").concat(x," 0 1 1 0 ").concat(v?"-":"").concat(2*x,"\n a ").concat(x," ").concat(x," 0 1 1 0 ").concat(v?"":"-").concat(2*x,"\n "),N={d:V,stroke:u||"#f5f5f5","stroke-linecap":l,"stroke-width":h,"fill-opacity":"0",class:"process-circle-trail",style:m},w={d:V,stroke:i||"#13ce66","stroke-linecap":l,"stroke-width":c>0&&h||0,"fill-opacity":"0",class:"process-circle-path bk-".concat(p,"-circle-trail"),style:T};return t.createVNode("div",{class:"progress-outer-circle",style:b},[t.createVNode("svg",{viewBox:"0 0 100 100"},[t.createVNode("path",N,null),t.createVNode("path",w,null)]),t.createVNode("span",{class:"progress-circle-text",style:f},[null==s?void 0:s.default()])])};function i(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}var l=t.defineComponent({name:"Progress",props:{extCls:r.PropTypes.string,type:r.PropTypes.string.validate((function(e){return["line","circle","dashboard"].includes(e)})).def("line"),percent:r.PropTypes.number.def(0),theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),width:r.PropTypes.number.def(126),strokeWidth:r.PropTypes.number,strokeLinecap:r.PropTypes.string.def("round"),textInside:r.PropTypes.bool.def(!1),showText:r.PropTypes.bool.def(!0),color:r.PropTypes.string,bgColor:r.PropTypes.string,fixed:r.PropTypes.number.validate((function(e){return e>=0&&e<=20})).def(0),format:r.PropTypes.func.def((function(e){return"".concat(e,"%")})),titleStyle:r.PropTypes.object.def({fontSize:"16px",verticalAlign:"middle"})},setup:function(){return{}},methods:{validPercent:function(e){return!e||e<0?0:e>100?100:e},renderProcessInfo:function(){var e,r=this.$props,o=r.showText,s=r.format,n=r.percent,c=r.textInside,a=r.titleStyle,i=r.fixed,l=s(null===(e=this.validPercent(n))||void 0===e?void 0:e.toFixed(i));return(o||this.$slots.default)&&c?this.$slots.default?this.$slots.default():t.createVNode("span",null,[l]):!o||c?null:t.createVNode("span",{class:"progress-text",style:"string"==typeof l?a:void 0},[this.$slots.default?this.$slots.default():l])}},render:function(){var e=this.renderProcessInfo(),o=Object.assign(Object.assign({},this.$props),{percent:this.validPercent(this.percent)}),s=t.createVNode(c,o,i(e)?e:{default:function(){return[e]}});"circle"!==this.type&&"dashboard"!==this.type||(s=t.createVNode(a,o,i(e)?e:{default:function(){return[e]}}));var n={class:r.classes({extCls:!!this.extCls},"bk-progress bk-progress-".concat(this.type))};return t.createVNode("div",n,[s])}}),p=r.withInstall(l);e.default=p,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -45,6 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
color: import("vue-types").VueTypeValidableDef<string> & {
|
46
46
|
default: string;
|
47
47
|
};
|
48
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
52
|
+
default: number;
|
53
|
+
} & {
|
54
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
55
|
+
} & {
|
56
|
+
default: number;
|
57
|
+
};
|
48
58
|
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
49
59
|
default: (...args: any[]) => any;
|
50
60
|
} & {
|
@@ -64,42 +74,84 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
74
|
}, {}, unknown, {}, {
|
65
75
|
/** 验证进度值 */
|
66
76
|
validPercent(percent?: number): number;
|
67
|
-
/** text
|
77
|
+
/** text 区域展示内容*/
|
68
78
|
renderProcessInfo(): JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
69
79
|
[key: string]: any;
|
70
80
|
}>[];
|
71
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
72
|
-
extCls
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
81
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
82
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
+
default: string;
|
84
|
+
};
|
85
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
86
|
+
default: string;
|
87
|
+
} & {
|
88
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
89
|
+
} & {
|
90
|
+
default: string;
|
91
|
+
};
|
92
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
93
|
+
default: number;
|
94
|
+
} & {
|
95
|
+
default: number;
|
96
|
+
};
|
97
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
98
|
+
default: string;
|
99
|
+
};
|
100
|
+
size: import("vue-types").VueTypeDef<string>;
|
101
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
102
|
+
default: number;
|
103
|
+
} & {
|
104
|
+
default: number;
|
105
|
+
};
|
106
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
107
|
+
default: number;
|
108
|
+
};
|
109
|
+
strokeLinecap: import("vue-types").VueTypeValidableDef<string> & {
|
110
|
+
default: string;
|
111
|
+
} & {
|
112
|
+
default: string;
|
113
|
+
};
|
114
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
115
|
+
default: boolean;
|
116
|
+
} & {
|
117
|
+
default: boolean;
|
118
|
+
};
|
119
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
120
|
+
default: boolean;
|
121
|
+
} & {
|
122
|
+
default: boolean;
|
123
|
+
};
|
124
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
128
|
+
default: string;
|
129
|
+
};
|
130
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
131
|
+
default: number;
|
132
|
+
} & {
|
133
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
134
|
+
} & {
|
135
|
+
default: number;
|
136
|
+
};
|
137
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
138
|
+
default: (...args: any[]) => any;
|
139
|
+
} & {
|
140
|
+
default: (...args: any[]) => any;
|
141
|
+
};
|
142
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
95
143
|
[key: string]: any;
|
144
|
+
}> & {
|
145
|
+
default: () => {
|
146
|
+
[key: string]: any;
|
147
|
+
};
|
148
|
+
} & {
|
149
|
+
default: () => {
|
150
|
+
[key: string]: any;
|
151
|
+
};
|
96
152
|
};
|
97
|
-
|
98
|
-
|
99
|
-
} & {
|
100
|
-
size?: string;
|
101
|
-
format?: (...args: any[]) => any;
|
102
|
-
}> & {}, {
|
153
|
+
}>>, {
|
154
|
+
fixed: number;
|
103
155
|
width: number;
|
104
156
|
color: string;
|
105
157
|
theme: string;
|
@@ -109,6 +161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
109
161
|
percent: number;
|
110
162
|
strokeWidth: number;
|
111
163
|
strokeLinecap: string;
|
164
|
+
bgColor: string;
|
112
165
|
titleStyle: {
|
113
166
|
[key: string]: any;
|
114
167
|
};
|