bkui-vue 0.0.3-beta.6 → 1.0.1
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 +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +164 -170
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +310 -293
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +427 -392
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
package/lib/progress/index.d.ts
CHANGED
@@ -1,194 +1,168 @@
|
|
1
1
|
declare const BkProgress: {
|
2
|
-
new (...args: any[]): {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
4
|
+
default: string;
|
5
|
+
};
|
6
|
+
type: import("vue-types").VueTypeDef<"circle" | "line" | "dashboard"> & {
|
7
|
+
default: "circle" | "line" | "dashboard";
|
8
|
+
};
|
9
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
10
|
+
default: number;
|
11
|
+
} & {
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
15
|
+
default: "success" | "warning" | "danger" | "primary";
|
16
|
+
};
|
17
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
18
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
19
|
+
default: number;
|
20
|
+
} & {
|
21
|
+
default: number;
|
22
|
+
};
|
23
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
24
|
+
default: number;
|
25
|
+
};
|
26
|
+
strokeLinecap: import("vue-types").VueTypeDef<"round" | "butt" | "square"> & {
|
27
|
+
default: "round" | "butt" | "square";
|
28
|
+
};
|
29
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
30
|
+
default: boolean;
|
31
|
+
} & {
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
35
|
+
default: boolean;
|
36
|
+
} & {
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
40
|
+
default: string;
|
41
|
+
};
|
42
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
43
|
+
default: string;
|
44
|
+
};
|
45
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
46
|
+
default: number;
|
47
|
+
} & {
|
48
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
49
|
+
} & {
|
50
|
+
default: number;
|
51
|
+
};
|
52
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
53
|
+
default: (...args: any[]) => any;
|
54
|
+
} & {
|
55
|
+
default: (...args: any[]) => any;
|
56
|
+
};
|
57
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
58
|
+
[key: string]: any;
|
59
|
+
}> & {
|
60
|
+
default: () => {
|
18
61
|
[key: string]: any;
|
19
62
|
};
|
20
|
-
|
21
|
-
|
22
|
-
class?: unknown;
|
23
|
-
style?: unknown;
|
24
|
-
ref?: import("vue").VNodeRef;
|
25
|
-
key?: string | number | symbol;
|
26
|
-
ref_for?: boolean;
|
27
|
-
ref_key?: string;
|
28
|
-
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
29
|
-
[key: string]: any;
|
30
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
31
|
-
[key: string]: any;
|
32
|
-
}>) => void)[];
|
33
|
-
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
-
[key: string]: any;
|
35
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
36
|
-
[key: string]: any;
|
37
|
-
}>) => void)[];
|
38
|
-
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
39
|
-
[key: string]: any;
|
40
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
41
|
-
[key: string]: any;
|
42
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
-
[key: string]: any;
|
44
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
45
|
-
[key: string]: any;
|
46
|
-
}>) => void)[];
|
47
|
-
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
-
[key: string]: any;
|
49
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
50
|
-
[key: string]: any;
|
51
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
52
|
-
[key: string]: any;
|
53
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
-
[key: string]: any;
|
55
|
-
}>) => void)[];
|
56
|
-
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
57
|
-
[key: string]: any;
|
58
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
59
|
-
[key: string]: any;
|
60
|
-
}>) => void)[];
|
61
|
-
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
62
|
-
[key: string]: any;
|
63
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
63
|
+
} & {
|
64
|
+
default: () => {
|
64
65
|
[key: string]: any;
|
65
|
-
}>) => void)[];
|
66
|
-
readonly size?: "default" | "small" | "large" | "huge";
|
67
|
-
};
|
68
|
-
$attrs: {
|
69
|
-
[x: string]: unknown;
|
70
|
-
};
|
71
|
-
$refs: {
|
72
|
-
[x: string]: unknown;
|
73
|
-
};
|
74
|
-
$slots: Readonly<{
|
75
|
-
[name: string]: import("vue").Slot<any>;
|
76
|
-
}>;
|
77
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
78
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
79
|
-
$emit: (event: string, ...args: any[]) => void;
|
80
|
-
$el: any;
|
81
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
82
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
-
default: string;
|
84
|
-
};
|
85
|
-
type: import("vue-types").VueTypeDef<"circle" | "line" | "dashboard"> & {
|
86
|
-
default: "circle" | "line" | "dashboard";
|
87
|
-
};
|
88
|
-
percent: import("vue-types").VueTypeValidableDef<number> & {
|
89
|
-
default: number;
|
90
|
-
} & {
|
91
|
-
default: number;
|
92
|
-
};
|
93
|
-
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
94
|
-
default: "success" | "warning" | "danger" | "primary";
|
95
|
-
};
|
96
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
97
|
-
width: import("vue-types").VueTypeValidableDef<number> & {
|
98
|
-
default: number;
|
99
|
-
} & {
|
100
|
-
default: number;
|
101
|
-
};
|
102
|
-
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
103
|
-
default: number;
|
104
|
-
};
|
105
|
-
strokeLinecap: import("vue-types").VueTypeDef<"round" | "butt" | "square"> & {
|
106
|
-
default: "round" | "butt" | "square";
|
107
|
-
};
|
108
|
-
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
109
|
-
default: boolean;
|
110
|
-
} & {
|
111
|
-
default: boolean;
|
112
66
|
};
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
67
|
+
};
|
68
|
+
}>>, {
|
69
|
+
resolveClassName: (cls: string) => string;
|
70
|
+
}, unknown, {}, {
|
71
|
+
validPercent(percent?: number): number;
|
72
|
+
renderProcessInfo(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
73
|
+
[key: string]: any;
|
74
|
+
}>[] | JSX.Element;
|
75
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
76
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
77
|
+
default: string;
|
78
|
+
};
|
79
|
+
type: import("vue-types").VueTypeDef<"circle" | "line" | "dashboard"> & {
|
80
|
+
default: "circle" | "line" | "dashboard";
|
81
|
+
};
|
82
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
83
|
+
default: number;
|
84
|
+
} & {
|
85
|
+
default: number;
|
86
|
+
};
|
87
|
+
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
88
|
+
default: "success" | "warning" | "danger" | "primary";
|
89
|
+
};
|
90
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
91
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
92
|
+
default: number;
|
93
|
+
} & {
|
94
|
+
default: number;
|
95
|
+
};
|
96
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
97
|
+
default: number;
|
98
|
+
};
|
99
|
+
strokeLinecap: import("vue-types").VueTypeDef<"round" | "butt" | "square"> & {
|
100
|
+
default: "round" | "butt" | "square";
|
101
|
+
};
|
102
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
103
|
+
default: boolean;
|
104
|
+
} & {
|
105
|
+
default: boolean;
|
106
|
+
};
|
107
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
108
|
+
default: boolean;
|
109
|
+
} & {
|
110
|
+
default: boolean;
|
111
|
+
};
|
112
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
113
|
+
default: string;
|
114
|
+
};
|
115
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
116
|
+
default: string;
|
117
|
+
};
|
118
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
119
|
+
default: number;
|
120
|
+
} & {
|
121
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
122
|
+
} & {
|
123
|
+
default: number;
|
124
|
+
};
|
125
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
126
|
+
default: (...args: any[]) => any;
|
127
|
+
} & {
|
128
|
+
default: (...args: any[]) => any;
|
129
|
+
};
|
130
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
131
|
+
[key: string]: any;
|
132
|
+
}> & {
|
133
|
+
default: () => {
|
137
134
|
[key: string]: any;
|
138
|
-
}> & {
|
139
|
-
default: () => {
|
140
|
-
[key: string]: any;
|
141
|
-
};
|
142
|
-
} & {
|
143
|
-
default: () => {
|
144
|
-
[key: string]: any;
|
145
|
-
};
|
146
135
|
};
|
147
|
-
}
|
148
|
-
|
149
|
-
}, unknown, {}, {
|
150
|
-
validPercent(percent?: number): number;
|
151
|
-
renderProcessInfo(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
152
|
-
[key: string]: any;
|
153
|
-
}>[] | JSX.Element;
|
154
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
155
|
-
type: "circle" | "line" | "dashboard";
|
156
|
-
width: number;
|
157
|
-
extCls: string;
|
158
|
-
theme: "success" | "warning" | "danger" | "primary";
|
159
|
-
fixed: number;
|
160
|
-
color: string;
|
161
|
-
strokeLinecap: "round" | "butt" | "square";
|
162
|
-
strokeWidth: number;
|
163
|
-
format: (...args: any[]) => any;
|
164
|
-
percent: number;
|
165
|
-
bgColor: string;
|
166
|
-
titleStyle: {
|
136
|
+
} & {
|
137
|
+
default: () => {
|
167
138
|
[key: string]: any;
|
168
139
|
};
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
140
|
+
};
|
141
|
+
}>>, {
|
142
|
+
type: "circle" | "line" | "dashboard";
|
143
|
+
width: number;
|
144
|
+
extCls: string;
|
145
|
+
theme: "success" | "warning" | "danger" | "primary";
|
146
|
+
fixed: number;
|
147
|
+
color: string;
|
148
|
+
format: (...args: any[]) => any;
|
149
|
+
percent: number;
|
150
|
+
strokeWidth: number;
|
151
|
+
strokeLinecap: "round" | "butt" | "square";
|
152
|
+
bgColor: string;
|
153
|
+
titleStyle: {
|
154
|
+
[key: string]: any;
|
155
|
+
};
|
156
|
+
showText: boolean;
|
157
|
+
textInside: boolean;
|
158
|
+
}, true, {}, {}, {
|
159
|
+
P: {};
|
160
|
+
B: {};
|
161
|
+
D: {};
|
162
|
+
C: {};
|
163
|
+
M: {};
|
164
|
+
Defaults: {};
|
165
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
192
166
|
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
193
167
|
default: string;
|
194
168
|
};
|
@@ -254,14 +228,31 @@ declare const BkProgress: {
|
|
254
228
|
[key: string]: any;
|
255
229
|
};
|
256
230
|
};
|
257
|
-
}
|
231
|
+
}>>, {
|
258
232
|
resolveClassName: (cls: string) => string;
|
259
|
-
}
|
233
|
+
}, {}, {}, {
|
260
234
|
validPercent(percent?: number): number;
|
261
235
|
renderProcessInfo(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
262
236
|
[key: string]: any;
|
263
237
|
}>[] | JSX.Element;
|
264
|
-
}
|
238
|
+
}, {
|
239
|
+
type: "circle" | "line" | "dashboard";
|
240
|
+
width: number;
|
241
|
+
extCls: string;
|
242
|
+
theme: "success" | "warning" | "danger" | "primary";
|
243
|
+
fixed: number;
|
244
|
+
color: string;
|
245
|
+
format: (...args: any[]) => any;
|
246
|
+
percent: number;
|
247
|
+
strokeWidth: number;
|
248
|
+
strokeLinecap: "round" | "butt" | "square";
|
249
|
+
bgColor: string;
|
250
|
+
titleStyle: {
|
251
|
+
[key: string]: any;
|
252
|
+
};
|
253
|
+
showText: boolean;
|
254
|
+
textInside: boolean;
|
255
|
+
}>;
|
265
256
|
__isFragment?: never;
|
266
257
|
__isTeleport?: never;
|
267
258
|
__isSuspense?: never;
|
@@ -345,10 +336,10 @@ declare const BkProgress: {
|
|
345
336
|
theme: "success" | "warning" | "danger" | "primary";
|
346
337
|
fixed: number;
|
347
338
|
color: string;
|
348
|
-
strokeLinecap: "round" | "butt" | "square";
|
349
|
-
strokeWidth: number;
|
350
339
|
format: (...args: any[]) => any;
|
351
340
|
percent: number;
|
341
|
+
strokeWidth: number;
|
342
|
+
strokeLinecap: "round" | "butt" | "square";
|
352
343
|
bgColor: string;
|
353
344
|
titleStyle: {
|
354
345
|
[key: string]: any;
|
package/lib/progress/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import "./progress.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
/******/ // The require scope
|
5
6
|
/******/ var __webpack_require__ = {};
|
6
7
|
/******/
|
@@ -27,46 +28,46 @@ var __webpack_exports__ = {};
|
|
27
28
|
|
28
29
|
// EXPORTS
|
29
30
|
__webpack_require__.d(__webpack_exports__, {
|
30
|
-
|
31
|
+
"default": () => (/* binding */ src)
|
31
32
|
});
|
32
33
|
|
33
34
|
;// CONCATENATED MODULE: external "../shared"
|
34
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
36
|
var y = x => () => x
|
36
|
-
const
|
37
|
+
const shared_namespaceObject = x({ ["ProgressStrokeLineCapType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ProgressStrokeLineCapType, ["ProgressType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ProgressType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
37
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
38
|
-
function _typeof(
|
39
|
+
function _typeof(o) {
|
39
40
|
"@babel/helpers - typeof";
|
40
41
|
|
41
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
42
|
-
return typeof
|
43
|
-
} : function (
|
44
|
-
return
|
45
|
-
}, _typeof(
|
42
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
43
|
+
return typeof o;
|
44
|
+
} : function (o) {
|
45
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
46
|
+
}, _typeof(o);
|
46
47
|
}
|
47
48
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
48
49
|
|
49
|
-
function
|
50
|
-
if (
|
51
|
-
var
|
52
|
-
if (
|
53
|
-
var
|
54
|
-
if (
|
50
|
+
function toPrimitive(t, r) {
|
51
|
+
if ("object" != _typeof(t) || !t) return t;
|
52
|
+
var e = t[Symbol.toPrimitive];
|
53
|
+
if (void 0 !== e) {
|
54
|
+
var i = e.call(t, r || "default");
|
55
|
+
if ("object" != _typeof(i)) return i;
|
55
56
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
56
57
|
}
|
57
|
-
return (
|
58
|
+
return ("string" === r ? String : Number)(t);
|
58
59
|
}
|
59
60
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
60
61
|
|
61
62
|
|
62
|
-
function
|
63
|
-
var
|
64
|
-
return _typeof(
|
63
|
+
function toPropertyKey(t) {
|
64
|
+
var i = toPrimitive(t, "string");
|
65
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
65
66
|
}
|
66
67
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
67
68
|
|
68
69
|
function _defineProperty(obj, key, value) {
|
69
|
-
key =
|
70
|
+
key = toPropertyKey(key);
|
70
71
|
if (key in obj) {
|
71
72
|
Object.defineProperty(obj, key, {
|
72
73
|
value: value,
|
@@ -84,9 +85,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
84
85
|
var external_vue_y = x => () => x
|
85
86
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
|
86
87
|
;// CONCATENATED MODULE: external "../config-provider"
|
87
|
-
var
|
88
|
-
var
|
89
|
-
const
|
88
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
89
|
+
var config_provider_y = x => () => x
|
90
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
90
91
|
;// CONCATENATED MODULE: ../../packages/progress/src/circle.tsx
|
91
92
|
|
92
93
|
/*
|
@@ -119,7 +120,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
119
120
|
var Circle = function Circle(_, _ref) {
|
120
121
|
var attrs = _ref.attrs,
|
121
122
|
slots = _ref.slots;
|
122
|
-
var _usePrefix = (0,
|
123
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
123
124
|
resolveClassName = _usePrefix.resolveClassName;
|
124
125
|
var width = attrs.width,
|
125
126
|
percent = attrs.percent,
|
@@ -223,7 +224,7 @@ var Circle = function Circle(_, _ref) {
|
|
223
224
|
var Line = function Line(_, _ref) {
|
224
225
|
var attrs = _ref.attrs,
|
225
226
|
slots = _ref.slots;
|
226
|
-
var _usePrefix = (0,
|
227
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
227
228
|
resolveClassName = _usePrefix.resolveClassName;
|
228
229
|
var percent = attrs.percent,
|
229
230
|
strokeWidth = attrs.strokeWidth,
|
@@ -272,8 +273,8 @@ var Line = function Line(_, _ref) {
|
|
272
273
|
;// CONCATENATED MODULE: ../../packages/progress/src/progress.tsx
|
273
274
|
|
274
275
|
|
275
|
-
function ownKeys(
|
276
|
-
function _objectSpread(
|
276
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
277
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
277
278
|
/*
|
278
279
|
* Tencent is pleased to support the open source community by making
|
279
280
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -308,25 +309,25 @@ function _isSlot(s) {
|
|
308
309
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
309
310
|
}
|
310
311
|
var progressType = {
|
311
|
-
extCls:
|
312
|
-
type: (0,
|
313
|
-
percent:
|
314
|
-
theme:
|
315
|
-
size:
|
316
|
-
width:
|
317
|
-
strokeWidth:
|
318
|
-
strokeLinecap: (0,
|
319
|
-
textInside:
|
320
|
-
showText:
|
321
|
-
color:
|
322
|
-
bgColor:
|
323
|
-
fixed:
|
312
|
+
extCls: shared_namespaceObject.PropTypes.string,
|
313
|
+
type: (0,shared_namespaceObject.ProgressType)(),
|
314
|
+
percent: shared_namespaceObject.PropTypes.number.def(0),
|
315
|
+
theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
316
|
+
size: shared_namespaceObject.PropTypes.size(),
|
317
|
+
width: shared_namespaceObject.PropTypes.number.def(126),
|
318
|
+
strokeWidth: shared_namespaceObject.PropTypes.number,
|
319
|
+
strokeLinecap: (0,shared_namespaceObject.ProgressStrokeLineCapType)(),
|
320
|
+
textInside: shared_namespaceObject.PropTypes.bool.def(false),
|
321
|
+
showText: shared_namespaceObject.PropTypes.bool.def(true),
|
322
|
+
color: shared_namespaceObject.PropTypes.string,
|
323
|
+
bgColor: shared_namespaceObject.PropTypes.string,
|
324
|
+
fixed: shared_namespaceObject.PropTypes.number.validate(function (value) {
|
324
325
|
return value >= 0 && value <= 20;
|
325
326
|
}).def(0),
|
326
|
-
format:
|
327
|
+
format: shared_namespaceObject.PropTypes.func.def(function (percent) {
|
327
328
|
return "".concat(percent, "%");
|
328
329
|
}),
|
329
|
-
titleStyle:
|
330
|
+
titleStyle: shared_namespaceObject.PropTypes.object.def({
|
330
331
|
fontSize: '16px',
|
331
332
|
verticalAlign: 'middle'
|
332
333
|
})
|
@@ -336,7 +337,7 @@ var progressType = {
|
|
336
337
|
name: 'Progress',
|
337
338
|
props: progressType,
|
338
339
|
setup: function setup() {
|
339
|
-
var _usePrefix = (0,
|
340
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
340
341
|
resolveClassName = _usePrefix.resolveClassName;
|
341
342
|
return {
|
342
343
|
resolveClassName: resolveClassName
|
@@ -390,7 +391,7 @@ var progressType = {
|
|
390
391
|
});
|
391
392
|
}
|
392
393
|
var progressProps = {
|
393
|
-
"class": (0,
|
394
|
+
"class": (0,shared_namespaceObject.classes)({
|
394
395
|
extCls: !!this.extCls
|
395
396
|
}, "".concat(this.resolveClassName('progress'), " ").concat(this.resolveClassName("progress-".concat(this.type))))
|
396
397
|
};
|
@@ -425,7 +426,7 @@ var progressType = {
|
|
425
426
|
*/
|
426
427
|
|
427
428
|
|
428
|
-
var BkProgress = (0,
|
429
|
+
var BkProgress = (0,shared_namespaceObject.withInstall)(progress);
|
429
430
|
/* harmony default export */ const src = (BkProgress);
|
430
|
-
var __webpack_exports__default = __webpack_exports__
|
431
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
431
432
|
export { __webpack_exports__default as default };
|
@@ -215,10 +215,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
215
215
|
theme: "success" | "warning" | "danger" | "primary";
|
216
216
|
fixed: number;
|
217
217
|
color: string;
|
218
|
-
strokeLinecap: "round" | "butt" | "square";
|
219
|
-
strokeWidth: number;
|
220
218
|
format: (...args: any[]) => any;
|
221
219
|
percent: number;
|
220
|
+
strokeWidth: number;
|
221
|
+
strokeLinecap: "round" | "butt" | "square";
|
222
222
|
bgColor: string;
|
223
223
|
titleStyle: {
|
224
224
|
[key: string]: any;
|