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/popover/index.d.ts
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
declare const BkPopover: {
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
|
-
$data: {
|
5
|
-
popoverInstance: any;
|
6
|
-
isPopInstance: boolean;
|
7
|
-
};
|
4
|
+
$data: {};
|
8
5
|
$props: Partial<{
|
9
6
|
placement: string;
|
10
7
|
modifiers: unknown[];
|
@@ -15,30 +12,61 @@ declare const BkPopover: {
|
|
15
12
|
trigger: string;
|
16
13
|
arrow: boolean;
|
17
14
|
isShow: boolean;
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
15
|
+
transition: string;
|
16
|
+
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
17
|
+
fixOnBoundary: boolean;
|
18
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
19
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
20
|
+
default: boolean;
|
21
|
+
};
|
22
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
23
|
+
default: string | number;
|
24
|
+
};
|
25
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
26
|
+
default: string | number;
|
27
|
+
};
|
28
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
29
|
+
default: string | number;
|
30
|
+
};
|
31
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
32
|
+
default: string;
|
33
|
+
} & {
|
34
|
+
default: string;
|
35
|
+
};
|
36
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
40
|
+
default: string;
|
41
|
+
} & {
|
42
|
+
default: string;
|
43
|
+
};
|
44
|
+
handleFirstUpdate: {
|
45
|
+
type: import("vue").PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
46
|
+
default: () => void;
|
47
|
+
};
|
48
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
} & {
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
54
|
+
default: boolean;
|
55
|
+
} & {
|
56
|
+
default: boolean;
|
57
|
+
};
|
58
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
59
|
+
default: () => unknown[];
|
60
|
+
} & {
|
61
|
+
default: () => unknown[];
|
62
|
+
};
|
63
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
64
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
|
+
default: boolean;
|
66
|
+
} & {
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "width" | "height" | "theme" | "content" | "trigger" | "arrow" | "isShow" | "transition" | "handleFirstUpdate" | "fixOnBoundary">;
|
42
70
|
$attrs: {
|
43
71
|
[x: string]: unknown;
|
44
72
|
};
|
@@ -50,43 +78,60 @@ declare const BkPopover: {
|
|
50
78
|
}>;
|
51
79
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
52
80
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
53
|
-
$emit: (event: string, ...args: any[]) => void;
|
81
|
+
$emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
54
82
|
$el: any;
|
55
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{
|
56
|
-
isShow
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
83
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
84
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
|
+
default: boolean;
|
86
|
+
};
|
87
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
88
|
+
default: string | number;
|
89
|
+
};
|
90
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
91
|
+
default: string | number;
|
92
|
+
};
|
93
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
94
|
+
default: string | number;
|
95
|
+
};
|
96
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
97
|
+
default: string;
|
98
|
+
} & {
|
99
|
+
default: string;
|
100
|
+
};
|
101
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
102
|
+
default: string;
|
103
|
+
};
|
104
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
105
|
+
default: string;
|
106
|
+
} & {
|
107
|
+
default: string;
|
108
|
+
};
|
109
|
+
handleFirstUpdate: {
|
110
|
+
type: import("vue").PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
111
|
+
default: () => void;
|
112
|
+
};
|
113
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
114
|
+
default: string;
|
115
|
+
} & {
|
116
|
+
default: string;
|
117
|
+
};
|
118
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
119
|
+
default: boolean;
|
120
|
+
} & {
|
121
|
+
default: boolean;
|
122
|
+
};
|
123
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
124
|
+
default: () => unknown[];
|
125
|
+
} & {
|
126
|
+
default: () => unknown[];
|
127
|
+
};
|
128
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
129
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
130
|
+
default: boolean;
|
131
|
+
} & {
|
132
|
+
default: boolean;
|
133
|
+
};
|
134
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
|
90
135
|
placement: string;
|
91
136
|
modifiers: unknown[];
|
92
137
|
width: string | number;
|
@@ -96,6 +141,9 @@ declare const BkPopover: {
|
|
96
141
|
trigger: string;
|
97
142
|
arrow: boolean;
|
98
143
|
isShow: boolean;
|
144
|
+
transition: string;
|
145
|
+
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
146
|
+
fixOnBoundary: boolean;
|
99
147
|
}> & {
|
100
148
|
beforeCreate?: (() => void) | (() => void)[];
|
101
149
|
created?: (() => void) | (() => void)[];
|
@@ -116,79 +164,113 @@ declare const BkPopover: {
|
|
116
164
|
$forceUpdate: () => void;
|
117
165
|
$nextTick: typeof import("vue").nextTick;
|
118
166
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
119
|
-
} & Readonly<{
|
120
|
-
isShow
|
121
|
-
|
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
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
167
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
168
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
169
|
+
default: boolean;
|
170
|
+
};
|
171
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
172
|
+
default: string | number;
|
173
|
+
};
|
174
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
175
|
+
default: string | number;
|
176
|
+
};
|
177
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
178
|
+
default: string | number;
|
179
|
+
};
|
180
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
181
|
+
default: string;
|
182
|
+
} & {
|
183
|
+
default: string;
|
184
|
+
};
|
185
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
186
|
+
default: string;
|
187
|
+
};
|
188
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
189
|
+
default: string;
|
190
|
+
} & {
|
191
|
+
default: string;
|
192
|
+
};
|
193
|
+
handleFirstUpdate: {
|
194
|
+
type: import("vue").PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
195
|
+
default: () => void;
|
196
|
+
};
|
197
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
198
|
+
default: string;
|
199
|
+
} & {
|
200
|
+
default: string;
|
201
|
+
};
|
202
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
203
|
+
default: boolean;
|
204
|
+
} & {
|
205
|
+
default: boolean;
|
206
|
+
};
|
207
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
208
|
+
default: () => unknown[];
|
209
|
+
} & {
|
210
|
+
default: () => unknown[];
|
211
|
+
};
|
212
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
213
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
214
|
+
default: boolean;
|
215
|
+
} & {
|
216
|
+
default: boolean;
|
217
|
+
};
|
218
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
154
219
|
__isFragment?: never;
|
155
220
|
__isTeleport?: never;
|
156
221
|
__isSuspense?: never;
|
157
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
158
|
-
isShow
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
}
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
}
|
187
|
-
|
188
|
-
|
189
|
-
}
|
190
|
-
|
191
|
-
}
|
222
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
223
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
224
|
+
default: boolean;
|
225
|
+
};
|
226
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
227
|
+
default: string | number;
|
228
|
+
};
|
229
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
230
|
+
default: string | number;
|
231
|
+
};
|
232
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
233
|
+
default: string | number;
|
234
|
+
};
|
235
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
236
|
+
default: string;
|
237
|
+
} & {
|
238
|
+
default: string;
|
239
|
+
};
|
240
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
241
|
+
default: string;
|
242
|
+
};
|
243
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
244
|
+
default: string;
|
245
|
+
} & {
|
246
|
+
default: string;
|
247
|
+
};
|
248
|
+
handleFirstUpdate: {
|
249
|
+
type: import("vue").PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
250
|
+
default: () => void;
|
251
|
+
};
|
252
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
253
|
+
default: string;
|
254
|
+
} & {
|
255
|
+
default: string;
|
256
|
+
};
|
257
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
258
|
+
default: boolean;
|
259
|
+
} & {
|
260
|
+
default: boolean;
|
261
|
+
};
|
262
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
263
|
+
default: () => unknown[];
|
264
|
+
} & {
|
265
|
+
default: () => unknown[];
|
266
|
+
};
|
267
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
268
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
269
|
+
default: boolean;
|
270
|
+
} & {
|
271
|
+
default: boolean;
|
272
|
+
};
|
273
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
|
192
274
|
placement: string;
|
193
275
|
modifiers: unknown[];
|
194
276
|
width: string | number;
|
@@ -198,5 +280,8 @@ declare const BkPopover: {
|
|
198
280
|
trigger: string;
|
199
281
|
arrow: boolean;
|
200
282
|
isShow: boolean;
|
283
|
+
transition: string;
|
284
|
+
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
285
|
+
fixOnBoundary: boolean;
|
201
286
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
202
287
|
export default BkPopover;
|
package/lib/popover/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,o){"use strict";var
|
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,o){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){e.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var a=n(r.exports),i={isShow:o.PropTypes.bool,width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),content:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def(""),transition:o.PropTypes.string.def("fade-in"),placement:o.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:o.PropTypes.string.def("light"),handleFirstUpdate:{type:Function,default:function(){}},trigger:o.PropTypes.string.def("hover"),arrow:o.PropTypes.bool.def(!0),modifiers:o.PropTypes.array.def([{name:"offset",options:{offset:[0,8]}}]),boundary:o.PropTypes.oneOfType([o.PropTypes.string.def("parent"),o.PropTypes.instanceOf(HTMLElement)]),fixOnBoundary:o.PropTypes.bool.def(!1)},u=t.defineComponent({name:"Popover",props:i,setup:function(e,n){var r=!1,i=Object.create(null),u=t.toRefs(e),s=u.width,p=u.height,d=u.theme,f=u.trigger,l=u.isShow,c=u.placement,m=u.modifiers,v=u.arrow,h=u.content,y=t.ref(),T=t.ref(),b=t.computed((function(){return{width:/^\d+$/.test(String(s.value))?"".concat(s.value,"px"):s.value,height:/^\d+$/.test(String(p.value))?"".concat(p.value,"px"):p.value,zIndex:o.bkZIndexManager.getModalNextIndex()}})),g=["dark","light"],P=t.computed((function(){var e=d.value.split(/\s+/);return e.sort((function(e,t){return Number(g.includes(t))-Number(g.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!g.includes(e)}))}})),w=function(e){"manual"===f.value&&r&&(e?i.show():i.hide())};t.watch((function(){return e.isShow}),(function(e){w(e)}),{immediate:!0});var x=function(){n.emit("update:isShow",!1)},O=function(){n.emit("update:isShow",!0)},S=function(){var e=i;e.constructor&&(e.isShow&&e.hide(),e.destroy(),i=Object.create(null))},j=function(){i=new o.BKPopover(y.value,T.value,{theme:P.value.systemThemes.join(" "),placement:c.value,trigger:f.value,modifiers:m.value,onFirstUpdate:e.handleFirstUpdate,afterShow:O,afterHidden:x,appendTo:e.boundary,fixOnBoundary:e.fixOnBoundary}),r=!0,w(l.value)},k=function(){S(),t.nextTick(j)};n.expose({update:k}),t.onMounted(k),t.onBeforeUnmount(S);var N=function(){n.emit("after-enter")},M=function(){n.emit("after-leave")},V=P.value.customThemes.join(" "),_=P.value.customThemes.reduce((function(e,t){return Object.assign(a({},"data-".concat(t,"-theme"),!0),e)}),{}),B="bk-popover-content ".concat(V);return function(){var o,r,a,i,u;return t.createVNode("div",{class:"bk-popover","data-bk-pop-container":!0},[t.createVNode("div",{ref:y,class:"bk-popover-reference"},[null===(r=(o=n.slots).default)||void 0===r?void 0:r.call(o)]),t.createVNode(t.Transition,{name:e.transition,onAfterEnter:N,onAfterLeave:M},{default:function(){return[t.createVNode("div",t.mergeProps({ref:T,class:B,style:b.value},_),[null!==(u=null===(i=(a=n.slots).content)||void 0===i?void 0:i.call(a))&&void 0!==u?u:h.value,v&&t.createVNode("div",{class:"arrow","data-popper-arrow":!0},null)])]}})])}}}),s=o.withInstall(u);e.default=s,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/popover/popover.css
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
.bk-popover .bk-popover-reference {
|
2
2
|
display: inline-block;
|
3
3
|
}
|
4
|
-
.bk-popover .
|
4
|
+
.bk-popover .fade-in-enter-active,
|
5
|
+
.bk-popover .fade-in-linear-leave-active {
|
6
|
+
transition: opacity 200ms linear;
|
7
|
+
}
|
8
|
+
.bk-popover .fade-in-enter,
|
9
|
+
.bk-popover .fade-in-leave,
|
10
|
+
.bk-popover .fade-in-leave-active {
|
11
|
+
opacity: 0;
|
12
|
+
}
|
13
|
+
.bk-popover-content {
|
5
14
|
display: none;
|
6
15
|
padding: 7px 14px;
|
7
16
|
font-size: 12px;
|
@@ -10,29 +19,29 @@
|
|
10
19
|
border-radius: 4px;
|
11
20
|
box-sizing: border-box;
|
12
21
|
}
|
13
|
-
.bk-popover
|
22
|
+
.bk-popover-content[data-theme^='dark'] {
|
14
23
|
color: #fff;
|
15
24
|
background: #26323d;
|
16
25
|
}
|
17
|
-
.bk-popover
|
26
|
+
.bk-popover-content[data-theme^='light'] {
|
18
27
|
color: #26323d;
|
19
28
|
background-color: #fff;
|
20
29
|
box-shadow: 0 0 6px 0 #dcdee5;
|
21
30
|
}
|
22
|
-
.bk-popover
|
31
|
+
.bk-popover-content[data-theme^='light'][data-show] {
|
23
32
|
box-shadow: 0 0 6px 0 #dcdee5;
|
24
33
|
}
|
25
|
-
.bk-popover
|
34
|
+
.bk-popover-content[data-show] {
|
26
35
|
display: block;
|
27
36
|
}
|
28
|
-
.bk-popover
|
37
|
+
.bk-popover-content .arrow {
|
29
38
|
position: absolute;
|
30
39
|
width: 8px;
|
31
40
|
height: 8px;
|
32
41
|
background: inherit;
|
33
42
|
visibility: hidden;
|
34
43
|
}
|
35
|
-
.bk-popover
|
44
|
+
.bk-popover-content .arrow::before {
|
36
45
|
position: absolute;
|
37
46
|
width: 8px;
|
38
47
|
height: 8px;
|
@@ -41,15 +50,15 @@
|
|
41
50
|
visibility: visible;
|
42
51
|
transform: rotate(45deg);
|
43
52
|
}
|
44
|
-
.bk-popover
|
53
|
+
.bk-popover-content[data-popper-placement^='top'] > .arrow {
|
45
54
|
bottom: -4px;
|
46
55
|
}
|
47
|
-
.bk-popover
|
56
|
+
.bk-popover-content[data-popper-placement^='bottom'] > .arrow {
|
48
57
|
top: -4px;
|
49
58
|
}
|
50
|
-
.bk-popover
|
51
|
-
right:
|
59
|
+
.bk-popover-content[data-popper-placement^='left'] > .arrow {
|
60
|
+
right: -4px;
|
52
61
|
}
|
53
|
-
.bk-popover
|
54
|
-
left: -
|
62
|
+
.bk-popover-content[data-popper-placement^='right'] > .arrow {
|
63
|
+
left: -4px;
|
55
64
|
}
|
package/lib/popover/popover.d.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
|
-
import { OnFirstUpdateFnType } from '@bkui-vue/shared';
|
3
1
|
declare const _default: import("vue").DefineComponent<{
|
4
2
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
5
3
|
default: boolean;
|
@@ -13,18 +11,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
13
11
|
content: import("vue-types").VueTypeDef<string | number> & {
|
14
12
|
default: string | number;
|
15
13
|
};
|
14
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
15
|
+
default: string;
|
16
|
+
} & {
|
17
|
+
default: string;
|
18
|
+
};
|
16
19
|
placement: import("vue-types").VueTypeDef<string> & {
|
17
20
|
default: string;
|
18
21
|
};
|
19
|
-
theme: import("vue-types").
|
22
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
23
|
+
default: string;
|
24
|
+
} & {
|
20
25
|
default: string;
|
21
26
|
};
|
22
|
-
handleFirstUpdate:
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
* manual: 通过isShow控制显示、隐藏
|
27
|
-
*/
|
27
|
+
handleFirstUpdate: {
|
28
|
+
type: import("vue").PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
29
|
+
default: () => void;
|
30
|
+
};
|
28
31
|
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
29
32
|
default: string;
|
30
33
|
} & {
|
@@ -40,41 +43,64 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
43
|
} & {
|
41
44
|
default: () => unknown[];
|
42
45
|
};
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
49
|
-
}, {
|
50
|
-
|
51
|
-
|
52
|
-
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
theme: string
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
46
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
47
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
|
+
default: boolean;
|
49
|
+
} & {
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
53
|
+
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
54
|
+
default: boolean;
|
55
|
+
};
|
56
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
57
|
+
default: string | number;
|
58
|
+
};
|
59
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
60
|
+
default: string | number;
|
61
|
+
};
|
62
|
+
content: import("vue-types").VueTypeDef<string | number> & {
|
63
|
+
default: string | number;
|
64
|
+
};
|
65
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
66
|
+
default: string;
|
67
|
+
} & {
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
placement: import("vue-types").VueTypeDef<string> & {
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
theme: import("vue-types").VueTypeValidableDef<string> & {
|
74
|
+
default: string;
|
75
|
+
} & {
|
76
|
+
default: string;
|
77
|
+
};
|
78
|
+
handleFirstUpdate: {
|
79
|
+
type: import("vue").PropType<import("@bkui-vue/shared").OnFirstUpdateFnType>;
|
80
|
+
default: () => void;
|
81
|
+
};
|
82
|
+
trigger: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
+
default: string;
|
84
|
+
} & {
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
88
|
+
default: boolean;
|
89
|
+
} & {
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
93
|
+
default: () => unknown[];
|
94
|
+
} & {
|
95
|
+
default: () => unknown[];
|
96
|
+
};
|
97
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
98
|
+
fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
|
99
|
+
default: boolean;
|
100
|
+
} & {
|
101
|
+
default: boolean;
|
102
|
+
};
|
103
|
+
}>>, {
|
78
104
|
placement: string;
|
79
105
|
modifiers: unknown[];
|
80
106
|
width: string | number;
|
@@ -84,5 +110,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
84
110
|
trigger: string;
|
85
111
|
arrow: boolean;
|
86
112
|
isShow: boolean;
|
113
|
+
transition: string;
|
114
|
+
handleFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
|
115
|
+
fixOnBoundary: boolean;
|
87
116
|
}>;
|
88
117
|
export default _default;
|