bkui-vue 2.0.1-beta.111 → 2.0.1-beta.112
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/dist/index.cjs.js +54 -54
- package/dist/index.esm.js +23106 -23099
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +8 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +121 -156
- package/lib/button/index.js +19 -20
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +20 -22
- package/lib/cascader/cascader.d.ts +5 -5
- package/lib/cascader/index.d.ts +395 -356
- package/lib/cascader/index.js +74 -805
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +381 -438
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +28 -27
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +50 -294
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +28 -26
- 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 +4 -4
- package/lib/date-picker/index.d.ts +382 -352
- package/lib/date-picker/index.js +154 -150
- 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 +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +227 -228
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +24 -22
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +21 -22
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +27 -26
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +232 -233
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +46 -48
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +32 -33
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +26 -25
- package/lib/message/index.js +24 -25
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +20 -21
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +11 -10
- package/lib/pagination/index.d.ts +185 -199
- package/lib/pagination/index.js +49 -56
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +4 -3777
- package/lib/pop-confirm/index.d.ts +119 -157
- package/lib/pop-confirm/index.js +5 -4
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +221 -123
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +22 -21
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +46 -48
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +19 -20
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +20 -21
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1380 -1221
- package/lib/select/index.js +336 -334
- package/lib/select/select.d.ts +134 -171
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +54 -56
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +227 -228
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +226 -225
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +230 -231
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +20 -22
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +20 -19
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +459 -364
- package/lib/table/index.js +336 -348
- package/lib/table/table.d.ts +3 -3
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +7 -731
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +750 -533
- package/lib/tag-input/index.js +151 -151
- package/lib/tag-input/tag-input.d.ts +9 -9
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +192 -207
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +71 -74
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +261 -264
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/collapse/index.d.ts
CHANGED
@@ -3,179 +3,148 @@ import Collapse from './collapse';
|
|
3
3
|
import CollapsePanel from './collapse-panel';
|
4
4
|
import { propsCollapse, propsCollapsePanel } from './props';
|
5
5
|
declare const BkCollapse: {
|
6
|
-
new (...args: any[]): {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
};
|
77
|
-
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
idFiled: string;
|
149
|
-
titleField: string;
|
150
|
-
contentField: string;
|
151
|
-
accordion: boolean;
|
152
|
-
hasHeaderBorder: boolean;
|
153
|
-
hasHeaderHover: boolean;
|
154
|
-
headerIcon: string;
|
155
|
-
useCardTheme: boolean;
|
156
|
-
headerIconAlign: string;
|
157
|
-
useBlockTheme: boolean;
|
158
|
-
}, {}, string, {}> & {
|
159
|
-
beforeCreate?: (() => void) | (() => void)[];
|
160
|
-
created?: (() => void) | (() => void)[];
|
161
|
-
beforeMount?: (() => void) | (() => void)[];
|
162
|
-
mounted?: (() => void) | (() => void)[];
|
163
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
164
|
-
updated?: (() => void) | (() => void)[];
|
165
|
-
activated?: (() => void) | (() => void)[];
|
166
|
-
deactivated?: (() => void) | (() => void)[];
|
167
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
168
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
169
|
-
destroyed?: (() => void) | (() => void)[];
|
170
|
-
unmounted?: (() => void) | (() => void)[];
|
171
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
172
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
173
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
174
|
-
};
|
175
|
-
$forceUpdate: () => void;
|
176
|
-
$nextTick: typeof import("vue").nextTick;
|
177
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
178
|
-
} & Readonly<ExtractPropTypes<{
|
6
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
|
7
|
+
list: import("vue-types").VueTypeDef<any[]> & {
|
8
|
+
default: () => any[];
|
9
|
+
};
|
10
|
+
idFiled: import("vue-types").VueTypeValidableDef<string> & {
|
11
|
+
default: string;
|
12
|
+
} & {
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
titleField: import("vue-types").VueTypeValidableDef<string> & {
|
16
|
+
default: string;
|
17
|
+
} & {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
contentField: import("vue-types").VueTypeValidableDef<string> & {
|
21
|
+
default: string;
|
22
|
+
} & {
|
23
|
+
default: string;
|
24
|
+
};
|
25
|
+
modelValue: import("vue-types").VueTypeDef<number | string[] | number[]>;
|
26
|
+
accordion: import("vue-types").VueTypeValidableDef<boolean> & {
|
27
|
+
default: boolean;
|
28
|
+
} & {
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
hasHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
32
|
+
default: boolean;
|
33
|
+
} & {
|
34
|
+
default: boolean;
|
35
|
+
};
|
36
|
+
hasHeaderHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
37
|
+
default: boolean;
|
38
|
+
} & {
|
39
|
+
default: boolean;
|
40
|
+
};
|
41
|
+
headerIcon: import("vue-types").VueTypeValidableDef<string> & {
|
42
|
+
default: string;
|
43
|
+
} & {
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
useCardTheme: import("vue-types").VueTypeValidableDef<boolean> & {
|
47
|
+
default: boolean;
|
48
|
+
} & {
|
49
|
+
default: boolean;
|
50
|
+
};
|
51
|
+
headerIconAlign: import("vue-types").VueTypeValidableDef<string> & {
|
52
|
+
default: string;
|
53
|
+
} & {
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
useBlockTheme: import("vue-types").VueTypeValidableDef<boolean> & {
|
57
|
+
default: boolean;
|
58
|
+
} & {
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
}>> & {
|
62
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
63
|
+
"onAfter-leave"?: (...args: any[]) => any;
|
64
|
+
"onBefore-enter"?: (...args: any[]) => any;
|
65
|
+
"onItem-click"?: (...args: any[]) => any;
|
66
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
67
|
+
[key: string]: any;
|
68
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "after-leave" | "before-enter" | "item-click")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
|
69
|
+
list: import("vue-types").VueTypeDef<any[]> & {
|
70
|
+
default: () => any[];
|
71
|
+
};
|
72
|
+
idFiled: import("vue-types").VueTypeValidableDef<string> & {
|
73
|
+
default: string;
|
74
|
+
} & {
|
75
|
+
default: string;
|
76
|
+
};
|
77
|
+
titleField: import("vue-types").VueTypeValidableDef<string> & {
|
78
|
+
default: string;
|
79
|
+
} & {
|
80
|
+
default: string;
|
81
|
+
};
|
82
|
+
contentField: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
+
default: string;
|
84
|
+
} & {
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
modelValue: import("vue-types").VueTypeDef<number | string[] | number[]>;
|
88
|
+
accordion: import("vue-types").VueTypeValidableDef<boolean> & {
|
89
|
+
default: boolean;
|
90
|
+
} & {
|
91
|
+
default: boolean;
|
92
|
+
};
|
93
|
+
hasHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
94
|
+
default: boolean;
|
95
|
+
} & {
|
96
|
+
default: boolean;
|
97
|
+
};
|
98
|
+
hasHeaderHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
99
|
+
default: boolean;
|
100
|
+
} & {
|
101
|
+
default: boolean;
|
102
|
+
};
|
103
|
+
headerIcon: import("vue-types").VueTypeValidableDef<string> & {
|
104
|
+
default: string;
|
105
|
+
} & {
|
106
|
+
default: string;
|
107
|
+
};
|
108
|
+
useCardTheme: import("vue-types").VueTypeValidableDef<boolean> & {
|
109
|
+
default: boolean;
|
110
|
+
} & {
|
111
|
+
default: boolean;
|
112
|
+
};
|
113
|
+
headerIconAlign: import("vue-types").VueTypeValidableDef<string> & {
|
114
|
+
default: string;
|
115
|
+
} & {
|
116
|
+
default: string;
|
117
|
+
};
|
118
|
+
useBlockTheme: import("vue-types").VueTypeValidableDef<boolean> & {
|
119
|
+
default: boolean;
|
120
|
+
} & {
|
121
|
+
default: boolean;
|
122
|
+
};
|
123
|
+
}>> & {
|
124
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
125
|
+
"onAfter-leave"?: (...args: any[]) => any;
|
126
|
+
"onBefore-enter"?: (...args: any[]) => any;
|
127
|
+
"onItem-click"?: (...args: any[]) => any;
|
128
|
+
}, {
|
129
|
+
list: any[];
|
130
|
+
idFiled: string;
|
131
|
+
titleField: string;
|
132
|
+
contentField: string;
|
133
|
+
accordion: boolean;
|
134
|
+
hasHeaderBorder: boolean;
|
135
|
+
hasHeaderHover: boolean;
|
136
|
+
headerIcon: string;
|
137
|
+
useCardTheme: boolean;
|
138
|
+
headerIconAlign: string;
|
139
|
+
useBlockTheme: boolean;
|
140
|
+
}, true, {}, {}, {
|
141
|
+
P: {};
|
142
|
+
B: {};
|
143
|
+
D: {};
|
144
|
+
C: {};
|
145
|
+
M: {};
|
146
|
+
Defaults: {};
|
147
|
+
}, Readonly<ExtractPropTypes<{
|
179
148
|
list: import("vue-types").VueTypeDef<any[]> & {
|
180
149
|
default: () => any[];
|
181
150
|
};
|
@@ -235,9 +204,21 @@ declare const BkCollapse: {
|
|
235
204
|
"onAfter-leave"?: (...args: any[]) => any;
|
236
205
|
"onBefore-enter"?: (...args: any[]) => any;
|
237
206
|
"onItem-click"?: (...args: any[]) => any;
|
238
|
-
}
|
207
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
239
208
|
[key: string]: any;
|
240
|
-
}
|
209
|
+
}>, {}, {}, {}, {
|
210
|
+
list: any[];
|
211
|
+
idFiled: string;
|
212
|
+
titleField: string;
|
213
|
+
contentField: string;
|
214
|
+
accordion: boolean;
|
215
|
+
hasHeaderBorder: boolean;
|
216
|
+
hasHeaderHover: boolean;
|
217
|
+
headerIcon: string;
|
218
|
+
useCardTheme: boolean;
|
219
|
+
headerIconAlign: string;
|
220
|
+
useBlockTheme: boolean;
|
221
|
+
}>;
|
241
222
|
__isFragment?: never;
|
242
223
|
__isTeleport?: never;
|
243
224
|
__isSuspense?: never;
|
package/lib/collapse/index.js
CHANGED
@@ -41,38 +41,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
41
41
|
var y = x => () => x
|
42
42
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
43
43
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
44
|
-
function _typeof(
|
44
|
+
function _typeof(o) {
|
45
45
|
"@babel/helpers - typeof";
|
46
46
|
|
47
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
48
|
-
return typeof
|
49
|
-
} : function (
|
50
|
-
return
|
51
|
-
}, _typeof(
|
47
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
48
|
+
return typeof o;
|
49
|
+
} : function (o) {
|
50
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
51
|
+
}, _typeof(o);
|
52
52
|
}
|
53
53
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
54
54
|
|
55
|
-
function
|
56
|
-
if (
|
57
|
-
var
|
58
|
-
if (
|
59
|
-
var
|
60
|
-
if (
|
55
|
+
function toPrimitive(t, r) {
|
56
|
+
if ("object" != _typeof(t) || !t) return t;
|
57
|
+
var e = t[Symbol.toPrimitive];
|
58
|
+
if (void 0 !== e) {
|
59
|
+
var i = e.call(t, r || "default");
|
60
|
+
if ("object" != _typeof(i)) return i;
|
61
61
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
62
62
|
}
|
63
|
-
return (
|
63
|
+
return ("string" === r ? String : Number)(t);
|
64
64
|
}
|
65
65
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
66
66
|
|
67
67
|
|
68
|
-
function
|
69
|
-
var
|
70
|
-
return _typeof(
|
68
|
+
function toPropertyKey(t) {
|
69
|
+
var i = toPrimitive(t, "string");
|
70
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
71
71
|
}
|
72
72
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
73
73
|
|
74
74
|
function _defineProperty(obj, key, value) {
|
75
|
-
key =
|
75
|
+
key = toPropertyKey(key);
|
76
76
|
if (key in obj) {
|
77
77
|
Object.defineProperty(obj, key, {
|
78
78
|
value: value,
|
@@ -125,7 +125,7 @@ function _toConsumableArray(arr) {
|
|
125
125
|
;// CONCATENATED MODULE: external "vue"
|
126
126
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
127
127
|
var external_vue_y = x => () => x
|
128
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
128
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
129
129
|
;// CONCATENATED MODULE: external "../config-provider"
|
130
130
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
131
131
|
var config_provider_y = x => () => x
|
@@ -267,10 +267,11 @@ var propsCollapsePanel = _objectSpread({
|
|
267
267
|
|
268
268
|
|
269
269
|
|
270
|
+
|
270
271
|
function _isSlot(s) {
|
271
272
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
272
273
|
}
|
273
|
-
/* harmony default export */ const collapse_panel = (defineComponent({
|
274
|
+
/* harmony default export */ const collapse_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
274
275
|
name: 'CollapsePanel',
|
275
276
|
props: propsCollapsePanel,
|
276
277
|
emits: ['change', 'update:modelValue', 'after-leave', 'before-enter'],
|
@@ -279,17 +280,17 @@ function _isSlot(s) {
|
|
279
280
|
slots = _ref.slots;
|
280
281
|
var localActiveItems = null;
|
281
282
|
var handleItemClick = null;
|
282
|
-
var isActive = ref(props.modelValue);
|
283
|
-
watch(function () {
|
283
|
+
var isActive = (0,external_vue_namespaceObject.ref)(props.modelValue);
|
284
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
284
285
|
return props.modelValue;
|
285
286
|
}, function (newVal) {
|
286
287
|
isActive.value = newVal;
|
287
288
|
});
|
288
289
|
// 如果单独使用,避免报 injection "*" not found. 相比getCurrentInstance()?.parent.type.name 方法简洁
|
289
290
|
if (!props.alone) {
|
290
|
-
localActiveItems = inject('localActiveItems');
|
291
|
-
handleItemClick = inject('handleItemClick');
|
292
|
-
watch(localActiveItems, function (newVal) {
|
291
|
+
localActiveItems = (0,external_vue_namespaceObject.inject)('localActiveItems');
|
292
|
+
handleItemClick = (0,external_vue_namespaceObject.inject)('handleItemClick');
|
293
|
+
(0,external_vue_namespaceObject.watch)(localActiveItems, function (newVal) {
|
293
294
|
if (newVal !== null && newVal !== void 0 && newVal.length) {
|
294
295
|
isActive.value = newVal.includes(props.name);
|
295
296
|
} else {
|
@@ -329,7 +330,7 @@ function _isSlot(s) {
|
|
329
330
|
}
|
330
331
|
function getContent() {
|
331
332
|
if (slots.content) {
|
332
|
-
return slots.content(h);
|
333
|
+
return slots.content(external_vue_namespaceObject.h);
|
333
334
|
}
|
334
335
|
return props.content;
|
335
336
|
}
|
@@ -344,14 +345,14 @@ function _isSlot(s) {
|
|
344
345
|
function renderHeader(icon) {
|
345
346
|
if (slots.header) {
|
346
347
|
if (typeof slots.header === 'function') {
|
347
|
-
return slots.header(h);
|
348
|
+
return slots.header(external_vue_namespaceObject.h);
|
348
349
|
}
|
349
350
|
return slots.header;
|
350
351
|
}
|
351
352
|
var title;
|
352
353
|
if (slots["default"]) {
|
353
354
|
if (typeof slots["default"] === 'function') {
|
354
|
-
title = slots["default"](h);
|
355
|
+
title = slots["default"](external_vue_namespaceObject.h);
|
355
356
|
} else {
|
356
357
|
title = slots["default"];
|
357
358
|
}
|
@@ -1,100 +1,25 @@
|
|
1
1
|
declare const BKCollapseTransition: {
|
2
|
-
new (...args: any[]): {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
ref_for?: boolean;
|
11
|
-
ref_key?: string;
|
12
|
-
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
13
|
-
[key: string]: any;
|
14
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
15
|
-
[key: string]: any;
|
16
|
-
}>) => void)[];
|
17
|
-
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
18
|
-
[key: string]: any;
|
19
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
20
|
-
[key: string]: any;
|
21
|
-
}>) => void)[];
|
22
|
-
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
23
|
-
[key: string]: any;
|
24
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
25
|
-
[key: string]: any;
|
26
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
27
|
-
[key: string]: any;
|
28
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
29
|
-
[key: string]: any;
|
30
|
-
}>) => void)[];
|
31
|
-
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
32
|
-
[key: string]: any;
|
33
|
-
}>, oldVNode: 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
|
-
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
38
|
-
[key: string]: any;
|
39
|
-
}>) => void)[];
|
40
|
-
onVnodeBeforeUnmount?: ((vnode: 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
|
-
}>) => void)[];
|
45
|
-
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
46
|
-
[key: string]: any;
|
47
|
-
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
-
[key: string]: any;
|
49
|
-
}>) => void)[];
|
50
|
-
};
|
51
|
-
$attrs: {
|
52
|
-
[x: string]: unknown;
|
53
|
-
};
|
54
|
-
$refs: {
|
55
|
-
[x: string]: unknown;
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
3
|
+
on: {
|
4
|
+
onBeforeEnter(el: import("vue").RendererElement): void;
|
5
|
+
onEnter(el: import("vue").RendererElement): void;
|
6
|
+
onAfterEnter(el: import("vue").RendererElement): void;
|
7
|
+
onBeforeLeave(el: import("vue").RendererElement): void;
|
8
|
+
onLeave(el: import("vue").RendererElement): void;
|
9
|
+
onAfterLeave(el: import("vue").RendererElement): void;
|
56
10
|
};
|
57
|
-
|
11
|
+
slots: Readonly<{
|
58
12
|
[name: string]: import("vue").Slot<any>;
|
59
13
|
}>;
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
onBeforeLeave(el: import("vue").RendererElement): void;
|
70
|
-
onLeave(el: import("vue").RendererElement): void;
|
71
|
-
onAfterLeave(el: import("vue").RendererElement): void;
|
72
|
-
};
|
73
|
-
slots: Readonly<{
|
74
|
-
[name: string]: import("vue").Slot<any>;
|
75
|
-
}>;
|
76
|
-
resolveClassName: (cls: string) => string;
|
77
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
78
|
-
beforeCreate?: (() => void) | (() => void)[];
|
79
|
-
created?: (() => void) | (() => void)[];
|
80
|
-
beforeMount?: (() => void) | (() => void)[];
|
81
|
-
mounted?: (() => void) | (() => void)[];
|
82
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
83
|
-
updated?: (() => void) | (() => void)[];
|
84
|
-
activated?: (() => void) | (() => void)[];
|
85
|
-
deactivated?: (() => void) | (() => void)[];
|
86
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
87
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
88
|
-
destroyed?: (() => void) | (() => void)[];
|
89
|
-
unmounted?: (() => void) | (() => void)[];
|
90
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
91
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
92
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
93
|
-
};
|
94
|
-
$forceUpdate: () => void;
|
95
|
-
$nextTick: typeof import("vue").nextTick;
|
96
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
97
|
-
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
14
|
+
resolveClassName: (cls: string) => string;
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
|
16
|
+
P: {};
|
17
|
+
B: {};
|
18
|
+
D: {};
|
19
|
+
C: {};
|
20
|
+
M: {};
|
21
|
+
Defaults: {};
|
22
|
+
}, Readonly<import("vue").ExtractPropTypes<{}>>, {
|
98
23
|
on: {
|
99
24
|
onBeforeEnter(el: import("vue").RendererElement): void;
|
100
25
|
onEnter(el: import("vue").RendererElement): void;
|
@@ -107,7 +32,7 @@ declare const BKCollapseTransition: {
|
|
107
32
|
[name: string]: import("vue").Slot<any>;
|
108
33
|
}>;
|
109
34
|
resolveClassName: (cls: string) => string;
|
110
|
-
}
|
35
|
+
}, {}, {}, {}, {}>;
|
111
36
|
__isFragment?: never;
|
112
37
|
__isTeleport?: never;
|
113
38
|
__isSuspense?: never;
|