bkui-vue 1.0.3-beta.7 → 1.0.3-beta.70
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 +148 -150
- package/dist/index.esm.js +17965 -16537
- package/dist/index.umd.js +148 -150
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +4 -4
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/components.d.ts +1 -0
- package/lib/components.js +2 -5
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +4 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/base/month-table.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +70 -32
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +4 -0
- package/lib/dialog/dialog.css +93 -122
- package/lib/dialog/dialog.d.ts +39 -14
- package/lib/dialog/dialog.less +92 -98
- package/lib/dialog/dialog.variable.css +96 -122
- package/lib/dialog/index.d.ts +81 -30
- package/lib/dialog/index.js +146 -124
- package/lib/dialog/props.d.ts +18 -6
- package/lib/directives/index.js +0 -1
- package/lib/dist.index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +3 -1
- package/lib/hooks.js +1 -8
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +5 -2
- package/lib/index.js +0 -1
- package/lib/info-box/index.js +41 -455
- package/lib/info-box/info-box.css +6 -32
- package/lib/info-box/info-box.d.ts +1 -1
- package/lib/info-box/info-box.less +16 -47
- package/lib/info-box/info-box.variable.css +9 -32
- package/lib/input/index.js +5 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +100 -52
- package/lib/modal/index.js +173 -74
- package/lib/modal/modal.css +41 -65
- package/lib/modal/modal.d.ts +40 -17
- package/lib/modal/modal.less +50 -57
- package/lib/modal/modal.variable.css +44 -65
- package/lib/modal/props.mixin.d.ts +12 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +45 -26
- package/lib/pop-confirm/index.js +8 -5
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +45 -26
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +14 -20
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.js +5 -5
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +701 -366
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +116 -6
- package/lib/search-select/utils.d.ts +19 -6
- package/lib/select/index.d.ts +143 -6
- package/lib/select/index.js +1355 -78
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +55 -12
- package/lib/select/select.d.ts +59 -2
- package/lib/select/select.less +69 -19
- package/lib/select/select.variable.css +58 -12
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.js +67 -3
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +5 -0
- package/lib/sideslider/index.d.ts +55 -9
- package/lib/sideslider/index.js +26 -25
- package/lib/sideslider/sideslider.css +51 -46
- package/lib/sideslider/sideslider.d.ts +25 -3
- package/lib/sideslider/sideslider.less +108 -104
- package/lib/sideslider/sideslider.variable.css +54 -46
- package/lib/slider/slider.variable.css +3 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-column.d.ts +111 -5
- package/lib/table/index.d.ts +51 -5
- package/lib/table/index.js +504 -261
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/props.d.ts +6 -4
- package/lib/table/table.css +6 -12
- package/lib/table/table.less +12 -9
- package/lib/table/table.variable.css +9 -12
- package/lib/table/use-attributes.d.ts +4 -42
- package/lib/table/utils.d.ts +2 -2
- package/lib/table-column/index.d.ts +235 -119
- package/lib/table-column/index.js +217 -30
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +54 -65
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +9 -9
- package/lib/virtual-render/virtual-render.d.ts +3 -3
- package/lib/virtual-render/virtual-render.variable.css +3 -0
- package/package.json +3 -2
package/lib/dialog/index.d.ts
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
declare const BkDialog: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
width: import("vue-types").VueTypeDef<string | number> & {
|
4
|
-
default: string | number;
|
5
|
-
};
|
6
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
7
|
-
default: string | number;
|
8
|
-
};
|
9
3
|
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
10
4
|
default: string;
|
11
5
|
};
|
@@ -51,6 +45,12 @@ declare const BkDialog: {
|
|
51
45
|
} & {
|
52
46
|
default: boolean;
|
53
47
|
};
|
48
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
49
|
+
default: string | number;
|
50
|
+
};
|
51
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
52
|
+
default: string | number;
|
53
|
+
};
|
54
54
|
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
55
55
|
default: string;
|
56
56
|
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -101,6 +101,8 @@ declare const BkDialog: {
|
|
101
101
|
};
|
102
102
|
direction: import("vue-types").VueTypeValidableDef<string> & {
|
103
103
|
default: string;
|
104
|
+
} & {
|
105
|
+
default: string;
|
104
106
|
};
|
105
107
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
106
108
|
default: string;
|
@@ -117,12 +119,22 @@ declare const BkDialog: {
|
|
117
119
|
default: boolean;
|
118
120
|
};
|
119
121
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
122
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
123
|
+
default: string;
|
124
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
125
|
+
default: () => unknown[];
|
126
|
+
});
|
120
127
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
121
128
|
default: string;
|
122
129
|
};
|
123
130
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
124
131
|
default: string;
|
125
132
|
};
|
133
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
134
|
+
default: number;
|
135
|
+
} & {
|
136
|
+
default: number;
|
137
|
+
};
|
126
138
|
}>> & {
|
127
139
|
onConfirm?: (...args: any[]) => any;
|
128
140
|
onPrev?: (...args: any[]) => any;
|
@@ -145,7 +157,6 @@ declare const BkDialog: {
|
|
145
157
|
moveHandler: (e: any) => boolean;
|
146
158
|
handlePrevStep: () => void;
|
147
159
|
handleNextStep: () => void;
|
148
|
-
hasFooter: import("vue").ComputedRef<boolean>;
|
149
160
|
isModalShow: import("vue").Ref<boolean>;
|
150
161
|
localConfirmText: import("vue").ComputedRef<string>;
|
151
162
|
localCancelText: import("vue").ComputedRef<string>;
|
@@ -153,12 +164,6 @@ declare const BkDialog: {
|
|
153
164
|
localNextText: import("vue").ComputedRef<string>;
|
154
165
|
resolveClassName: (cls: string) => string;
|
155
166
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
156
|
-
width: import("vue-types").VueTypeDef<string | number> & {
|
157
|
-
default: string | number;
|
158
|
-
};
|
159
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
160
|
-
default: string | number;
|
161
|
-
};
|
162
167
|
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
163
168
|
default: string;
|
164
169
|
};
|
@@ -204,6 +209,12 @@ declare const BkDialog: {
|
|
204
209
|
} & {
|
205
210
|
default: boolean;
|
206
211
|
};
|
212
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
213
|
+
default: string | number;
|
214
|
+
};
|
215
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
216
|
+
default: string | number;
|
217
|
+
};
|
207
218
|
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
208
219
|
default: string;
|
209
220
|
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -254,6 +265,8 @@ declare const BkDialog: {
|
|
254
265
|
};
|
255
266
|
direction: import("vue-types").VueTypeValidableDef<string> & {
|
256
267
|
default: string;
|
268
|
+
} & {
|
269
|
+
default: string;
|
257
270
|
};
|
258
271
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
259
272
|
default: string;
|
@@ -270,12 +283,22 @@ declare const BkDialog: {
|
|
270
283
|
default: boolean;
|
271
284
|
};
|
272
285
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
286
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
287
|
+
default: string;
|
288
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
289
|
+
default: () => unknown[];
|
290
|
+
});
|
273
291
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
274
292
|
default: string;
|
275
293
|
};
|
276
294
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
277
295
|
default: string;
|
278
296
|
};
|
297
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
298
|
+
default: number;
|
299
|
+
} & {
|
300
|
+
default: number;
|
301
|
+
};
|
279
302
|
}>> & {
|
280
303
|
onConfirm?: (...args: any[]) => any;
|
281
304
|
onPrev?: (...args: any[]) => any;
|
@@ -297,14 +320,16 @@ declare const BkDialog: {
|
|
297
320
|
transfer: string | boolean | HTMLElement;
|
298
321
|
direction: string;
|
299
322
|
renderDirective: "show" | "if";
|
300
|
-
quickClose: boolean;
|
301
323
|
scrollable: boolean;
|
302
324
|
showMask: boolean;
|
303
325
|
closeIcon: boolean;
|
304
326
|
escClose: boolean;
|
305
327
|
fullscreen: boolean;
|
328
|
+
quickClose: boolean;
|
306
329
|
animateType: string;
|
307
330
|
multiInstance: boolean;
|
331
|
+
bodyClass: string | unknown[];
|
332
|
+
hiddenDelay: number;
|
308
333
|
confirmText: string;
|
309
334
|
cancelText: string;
|
310
335
|
prevText: string;
|
@@ -322,12 +347,6 @@ declare const BkDialog: {
|
|
322
347
|
M: {};
|
323
348
|
Defaults: {};
|
324
349
|
}, Readonly<import("vue").ExtractPropTypes<{
|
325
|
-
width: import("vue-types").VueTypeDef<string | number> & {
|
326
|
-
default: string | number;
|
327
|
-
};
|
328
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
329
|
-
default: string | number;
|
330
|
-
};
|
331
350
|
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
332
351
|
default: string;
|
333
352
|
};
|
@@ -373,6 +392,12 @@ declare const BkDialog: {
|
|
373
392
|
} & {
|
374
393
|
default: boolean;
|
375
394
|
};
|
395
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
396
|
+
default: string | number;
|
397
|
+
};
|
398
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
399
|
+
default: string | number;
|
400
|
+
};
|
376
401
|
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
377
402
|
default: string;
|
378
403
|
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -423,6 +448,8 @@ declare const BkDialog: {
|
|
423
448
|
};
|
424
449
|
direction: import("vue-types").VueTypeValidableDef<string> & {
|
425
450
|
default: string;
|
451
|
+
} & {
|
452
|
+
default: string;
|
426
453
|
};
|
427
454
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
428
455
|
default: string;
|
@@ -439,12 +466,22 @@ declare const BkDialog: {
|
|
439
466
|
default: boolean;
|
440
467
|
};
|
441
468
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
469
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
470
|
+
default: string;
|
471
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
472
|
+
default: () => unknown[];
|
473
|
+
});
|
442
474
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
443
475
|
default: string;
|
444
476
|
};
|
445
477
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
446
478
|
default: string;
|
447
479
|
};
|
480
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
481
|
+
default: number;
|
482
|
+
} & {
|
483
|
+
default: number;
|
484
|
+
};
|
448
485
|
}>> & {
|
449
486
|
onConfirm?: (...args: any[]) => any;
|
450
487
|
onPrev?: (...args: any[]) => any;
|
@@ -467,7 +504,6 @@ declare const BkDialog: {
|
|
467
504
|
moveHandler: (e: any) => boolean;
|
468
505
|
handlePrevStep: () => void;
|
469
506
|
handleNextStep: () => void;
|
470
|
-
hasFooter: import("vue").ComputedRef<boolean>;
|
471
507
|
isModalShow: import("vue").Ref<boolean>;
|
472
508
|
localConfirmText: import("vue").ComputedRef<string>;
|
473
509
|
localCancelText: import("vue").ComputedRef<string>;
|
@@ -488,14 +524,16 @@ declare const BkDialog: {
|
|
488
524
|
transfer: string | boolean | HTMLElement;
|
489
525
|
direction: string;
|
490
526
|
renderDirective: "show" | "if";
|
491
|
-
quickClose: boolean;
|
492
527
|
scrollable: boolean;
|
493
528
|
showMask: boolean;
|
494
529
|
closeIcon: boolean;
|
495
530
|
escClose: boolean;
|
496
531
|
fullscreen: boolean;
|
532
|
+
quickClose: boolean;
|
497
533
|
animateType: string;
|
498
534
|
multiInstance: boolean;
|
535
|
+
bodyClass: string | unknown[];
|
536
|
+
hiddenDelay: number;
|
499
537
|
confirmText: string;
|
500
538
|
cancelText: string;
|
501
539
|
prevText: string;
|
@@ -510,12 +548,6 @@ declare const BkDialog: {
|
|
510
548
|
__isTeleport?: never;
|
511
549
|
__isSuspense?: never;
|
512
550
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
513
|
-
width: import("vue-types").VueTypeDef<string | number> & {
|
514
|
-
default: string | number;
|
515
|
-
};
|
516
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
517
|
-
default: string | number;
|
518
|
-
};
|
519
551
|
confirmText: import("vue-types").VueTypeValidableDef<string> & {
|
520
552
|
default: string;
|
521
553
|
};
|
@@ -561,6 +593,12 @@ declare const BkDialog: {
|
|
561
593
|
} & {
|
562
594
|
default: boolean;
|
563
595
|
};
|
596
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
597
|
+
default: string | number;
|
598
|
+
};
|
599
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
600
|
+
default: string | number;
|
601
|
+
};
|
564
602
|
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
565
603
|
default: string;
|
566
604
|
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -611,6 +649,8 @@ declare const BkDialog: {
|
|
611
649
|
};
|
612
650
|
direction: import("vue-types").VueTypeValidableDef<string> & {
|
613
651
|
default: string;
|
652
|
+
} & {
|
653
|
+
default: string;
|
614
654
|
};
|
615
655
|
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
616
656
|
default: string;
|
@@ -627,12 +667,22 @@ declare const BkDialog: {
|
|
627
667
|
default: boolean;
|
628
668
|
};
|
629
669
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
670
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
671
|
+
default: string;
|
672
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
673
|
+
default: () => unknown[];
|
674
|
+
});
|
630
675
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
631
676
|
default: string;
|
632
677
|
};
|
633
678
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
634
679
|
default: string;
|
635
680
|
};
|
681
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
682
|
+
default: number;
|
683
|
+
} & {
|
684
|
+
default: number;
|
685
|
+
};
|
636
686
|
}>> & {
|
637
687
|
onConfirm?: (...args: any[]) => any;
|
638
688
|
onPrev?: (...args: any[]) => any;
|
@@ -655,7 +705,6 @@ declare const BkDialog: {
|
|
655
705
|
moveHandler: (e: any) => boolean;
|
656
706
|
handlePrevStep: () => void;
|
657
707
|
handleNextStep: () => void;
|
658
|
-
hasFooter: import("vue").ComputedRef<boolean>;
|
659
708
|
isModalShow: import("vue").Ref<boolean>;
|
660
709
|
localConfirmText: import("vue").ComputedRef<string>;
|
661
710
|
localCancelText: import("vue").ComputedRef<string>;
|
@@ -676,14 +725,16 @@ declare const BkDialog: {
|
|
676
725
|
transfer: string | boolean | HTMLElement;
|
677
726
|
direction: string;
|
678
727
|
renderDirective: "show" | "if";
|
679
|
-
quickClose: boolean;
|
680
728
|
scrollable: boolean;
|
681
729
|
showMask: boolean;
|
682
730
|
closeIcon: boolean;
|
683
731
|
escClose: boolean;
|
684
732
|
fullscreen: boolean;
|
733
|
+
quickClose: boolean;
|
685
734
|
animateType: string;
|
686
735
|
multiInstance: boolean;
|
736
|
+
bodyClass: string | unknown[];
|
737
|
+
hiddenDelay: number;
|
687
738
|
confirmText: string;
|
688
739
|
cancelText: string;
|
689
740
|
prevText: string;
|
package/lib/dialog/index.js
CHANGED
@@ -428,6 +428,51 @@ __webpack_require__.d(__webpack_exports__, {
|
|
428
428
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
429
429
|
var y = x => () => x
|
430
430
|
const shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
431
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
432
|
+
function _typeof(o) {
|
433
|
+
"@babel/helpers - typeof";
|
434
|
+
|
435
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
436
|
+
return typeof o;
|
437
|
+
} : function (o) {
|
438
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
439
|
+
}, _typeof(o);
|
440
|
+
}
|
441
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
442
|
+
|
443
|
+
function toPrimitive(t, r) {
|
444
|
+
if ("object" != _typeof(t) || !t) return t;
|
445
|
+
var e = t[Symbol.toPrimitive];
|
446
|
+
if (void 0 !== e) {
|
447
|
+
var i = e.call(t, r || "default");
|
448
|
+
if ("object" != _typeof(i)) return i;
|
449
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
450
|
+
}
|
451
|
+
return ("string" === r ? String : Number)(t);
|
452
|
+
}
|
453
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
454
|
+
|
455
|
+
|
456
|
+
function toPropertyKey(t) {
|
457
|
+
var i = toPrimitive(t, "string");
|
458
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
459
|
+
}
|
460
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
461
|
+
|
462
|
+
function _defineProperty(obj, key, value) {
|
463
|
+
key = toPropertyKey(key);
|
464
|
+
if (key in obj) {
|
465
|
+
Object.defineProperty(obj, key, {
|
466
|
+
value: value,
|
467
|
+
enumerable: true,
|
468
|
+
configurable: true,
|
469
|
+
writable: true
|
470
|
+
});
|
471
|
+
} else {
|
472
|
+
obj[key] = value;
|
473
|
+
}
|
474
|
+
return obj;
|
475
|
+
}
|
431
476
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
432
477
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
433
478
|
try {
|
@@ -490,51 +535,6 @@ const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
490
535
|
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
491
536
|
var modal_less_y = x => () => x
|
492
537
|
const modal_less_namespaceObject = modal_less_x({ });
|
493
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
494
|
-
function _typeof(o) {
|
495
|
-
"@babel/helpers - typeof";
|
496
|
-
|
497
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
498
|
-
return typeof o;
|
499
|
-
} : function (o) {
|
500
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
501
|
-
}, _typeof(o);
|
502
|
-
}
|
503
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
504
|
-
|
505
|
-
function toPrimitive(t, r) {
|
506
|
-
if ("object" != _typeof(t) || !t) return t;
|
507
|
-
var e = t[Symbol.toPrimitive];
|
508
|
-
if (void 0 !== e) {
|
509
|
-
var i = e.call(t, r || "default");
|
510
|
-
if ("object" != _typeof(i)) return i;
|
511
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
512
|
-
}
|
513
|
-
return ("string" === r ? String : Number)(t);
|
514
|
-
}
|
515
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
516
|
-
|
517
|
-
|
518
|
-
function toPropertyKey(t) {
|
519
|
-
var i = toPrimitive(t, "string");
|
520
|
-
return "symbol" == _typeof(i) ? i : String(i);
|
521
|
-
}
|
522
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
523
|
-
|
524
|
-
function _defineProperty(obj, key, value) {
|
525
|
-
key = toPropertyKey(key);
|
526
|
-
if (key in obj) {
|
527
|
-
Object.defineProperty(obj, key, {
|
528
|
-
value: value,
|
529
|
-
enumerable: true,
|
530
|
-
configurable: true,
|
531
|
-
writable: true
|
532
|
-
});
|
533
|
-
} else {
|
534
|
-
obj[key] = value;
|
535
|
-
}
|
536
|
-
return obj;
|
537
|
-
}
|
538
538
|
;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
|
539
539
|
|
540
540
|
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; }
|
@@ -567,8 +567,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
567
567
|
|
568
568
|
|
569
569
|
var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {}, {
|
570
|
-
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
571
|
-
height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
572
570
|
// 确认按钮文字
|
573
571
|
// confirmText: PropTypes.string.def('确定'),
|
574
572
|
confirmText: shared_namespaceObject.PropTypes.string,
|
@@ -602,6 +600,7 @@ var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {
|
|
602
600
|
|
603
601
|
|
604
602
|
|
603
|
+
|
605
604
|
/*
|
606
605
|
* Tencent is pleased to support the open source community by making
|
607
606
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -679,16 +678,6 @@ function _isSlot(s) {
|
|
679
678
|
}
|
680
679
|
});
|
681
680
|
var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
|
682
|
-
(0,external_vue_namespaceObject.onMounted)(function () {
|
683
|
-
if (props.escClose) {
|
684
|
-
addEventListener('keydown', escCloseHandler);
|
685
|
-
}
|
686
|
-
});
|
687
|
-
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
688
|
-
if (props.escClose) {
|
689
|
-
removeEventListener('keydown', escCloseHandler);
|
690
|
-
}
|
691
|
-
});
|
692
681
|
(0,external_vue_namespaceObject.watch)(function () {
|
693
682
|
return props.isShow;
|
694
683
|
}, function (val) {
|
@@ -742,11 +731,7 @@ function _isSlot(s) {
|
|
742
731
|
var handleConfirm = function handleConfirm() {
|
743
732
|
emit('update:isShow', false);
|
744
733
|
emit('confirm');
|
745
|
-
// isModalShow.value = false; 影响异步关闭
|
746
734
|
};
|
747
|
-
var hasFooter = (0,external_vue_namespaceObject.computed)(function () {
|
748
|
-
return ['process', 'operation', 'confirm'].includes(props.dialogType);
|
749
|
-
});
|
750
735
|
// 按 esc 关闭弹框
|
751
736
|
var escCloseHandler = function escCloseHandler(e) {
|
752
737
|
if (props.isShow && props.closeIcon) {
|
@@ -810,6 +795,16 @@ function _isSlot(s) {
|
|
810
795
|
};
|
811
796
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
812
797
|
resolveClassName = _usePrefix.resolveClassName;
|
798
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
799
|
+
if (props.escClose) {
|
800
|
+
addEventListener('keydown', escCloseHandler);
|
801
|
+
}
|
802
|
+
});
|
803
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
804
|
+
if (props.escClose) {
|
805
|
+
removeEventListener('keydown', escCloseHandler);
|
806
|
+
}
|
807
|
+
});
|
813
808
|
return {
|
814
809
|
data: data,
|
815
810
|
handleClose: handleClose,
|
@@ -818,7 +813,6 @@ function _isSlot(s) {
|
|
818
813
|
moveHandler: moveHandler,
|
819
814
|
handlePrevStep: handlePrevStep,
|
820
815
|
handleNextStep: handleNextStep,
|
821
|
-
hasFooter: hasFooter,
|
822
816
|
isModalShow: isModalShow,
|
823
817
|
localConfirmText: localConfirmText,
|
824
818
|
localCancelText: localCancelText,
|
@@ -855,7 +849,7 @@ function _isSlot(s) {
|
|
855
849
|
}, [(_this$$slots$tools = (_this$$slots$tools2 = (_this$$slots = _this.$slots).tools) === null || _this$$slots$tools2 === void 0 ? void 0 : _this$$slots$tools2.call(_this$$slots)) !== null && _this$$slots$tools !== void 0 ? _this$$slots$tools : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
856
850
|
"class": _this.resolveClassName('dialog-header')
|
857
851
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
858
|
-
"class": _this.resolveClassName('header-icon')
|
852
|
+
"class": _this.resolveClassName('dialog-header-icon')
|
859
853
|
}, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
|
860
854
|
"name": "info-icon"
|
861
855
|
}, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -864,80 +858,108 @@ function _isSlot(s) {
|
|
864
858
|
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots2 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots2)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : _this.title])])];
|
865
859
|
},
|
866
860
|
"default": function _default() {
|
867
|
-
|
868
|
-
|
861
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
862
|
+
"class": _this.resolveClassName('dialog-content')
|
863
|
+
}, [_this.$slots["default"]()]);
|
869
864
|
},
|
870
865
|
footer: function footer() {
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
"onClick": _this.handleClose,
|
900
|
-
"disabled": _this.isLoading
|
901
|
-
}, {
|
902
|
-
"default": function _default() {
|
903
|
-
return [_this.localCancelText];
|
904
|
-
}
|
905
|
-
})]) : '', _this.dialogType === 'operation' ? (_this$$slots$footer3 = (_this$$slots$footer4 = (_this$$slots5 = _this.$slots).footer) === null || _this$$slots$footer4 === void 0 ? void 0 : _this$$slots$footer4.call(_this$$slots5)) !== null && _this$$slots$footer3 !== void 0 ? _this$$slots$footer3 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
906
|
-
"onClick": _this.handleConfirm,
|
907
|
-
"theme": _this.theme,
|
908
|
-
"loading": _this.isLoading
|
909
|
-
}, {
|
910
|
-
"default": function _default() {
|
911
|
-
return [_this.localConfirmText];
|
866
|
+
if (_this.$slots.footer) {
|
867
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
868
|
+
"class": _this.resolveClassName('dialog-footer'),
|
869
|
+
"style": "text-align: ".concat(_this.footerAlign)
|
870
|
+
}, [_this.$slots.footer()]);
|
871
|
+
}
|
872
|
+
if (!['process', 'operation', 'confirm'].includes(_this.dialogType)) {
|
873
|
+
return null;
|
874
|
+
}
|
875
|
+
var renderFooterAction = function renderFooterAction() {
|
876
|
+
if (_this.dialogType === 'operation') {
|
877
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
878
|
+
"onClick": _this.handleConfirm,
|
879
|
+
"theme": _this.theme,
|
880
|
+
"loading": _this.isLoading
|
881
|
+
}, {
|
882
|
+
"default": function _default() {
|
883
|
+
return [_this.localConfirmText];
|
884
|
+
}
|
885
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
886
|
+
"class": _this.resolveClassName('dialog-cancel'),
|
887
|
+
"onClick": _this.handleClose,
|
888
|
+
"disabled": _this.isLoading
|
889
|
+
}, {
|
890
|
+
"default": function _default() {
|
891
|
+
return [_this.localCancelText];
|
892
|
+
}
|
893
|
+
})]);
|
912
894
|
}
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
895
|
+
if (_this.dialogType === 'confirm') {
|
896
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
897
|
+
"onClick": _this.handleConfirm,
|
898
|
+
"theme": _this.theme,
|
899
|
+
"loading": _this.isLoading
|
900
|
+
}, {
|
901
|
+
"default": function _default() {
|
902
|
+
return [_this.localConfirmText];
|
903
|
+
}
|
904
|
+
});
|
920
905
|
}
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
906
|
+
if (_this.dialogType === 'process') {
|
907
|
+
var renderFirstStepBtn = function renderFirstStepBtn() {
|
908
|
+
if (_this.current === 1) {
|
909
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
910
|
+
"class": _this.resolveClassName('dialog-perv'),
|
911
|
+
"onClick": _this.handlePrevStep
|
912
|
+
}, {
|
913
|
+
"default": function _default() {
|
914
|
+
return [_this.localPrevText];
|
915
|
+
}
|
916
|
+
});
|
917
|
+
}
|
918
|
+
};
|
919
|
+
var renderStepBtn = function renderStepBtn() {
|
920
|
+
if (_this.current === _this.totalStep) {
|
921
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
922
|
+
"class": _this.resolveClassName('dialog-next'),
|
923
|
+
"onClick": _this.handleNextStep
|
924
|
+
}, {
|
925
|
+
"default": function _default() {
|
926
|
+
return [_this.localNextText];
|
927
|
+
}
|
928
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
929
|
+
"onClick": _this.handleConfirm,
|
930
|
+
"theme": _this.theme,
|
931
|
+
"loading": _this.isLoading
|
932
|
+
}, {
|
933
|
+
"default": function _default() {
|
934
|
+
return [_this.localConfirmText];
|
935
|
+
}
|
936
|
+
})]);
|
937
|
+
}
|
938
|
+
};
|
939
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [renderFirstStepBtn(), renderStepBtn(), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
940
|
+
"class": _this.resolveClassName('dialog-cancel'),
|
941
|
+
"onClick": _this.handleClose,
|
942
|
+
"disabled": _this.isLoading
|
943
|
+
}, {
|
944
|
+
"default": function _default() {
|
945
|
+
return [_this.localCancelText];
|
946
|
+
}
|
947
|
+
})]);
|
928
948
|
}
|
929
|
-
}
|
949
|
+
};
|
950
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
951
|
+
"class": _this.resolveClassName('dialog-footer'),
|
952
|
+
"style": "text-align: ".concat(_this.footerAlign)
|
953
|
+
}, [renderFooterAction()]);
|
930
954
|
},
|
931
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
932
955
|
close: function close() {
|
933
956
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
934
957
|
"onClick": _this.handleClose
|
935
958
|
}, null);
|
936
959
|
}
|
937
960
|
};
|
938
|
-
var className = "".concat(this.resolveClassName('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
|
939
961
|
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
940
|
-
"class":
|
962
|
+
"class": _defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('dialog'), true), this.resolveClassName('dialog-wrapper'), true), 'is-fullscreen', this.fullscreen),
|
941
963
|
"onClose": this.handleClose,
|
942
964
|
"isShow": this.isModalShow,
|
943
965
|
"left": this.data.moveStyle.left,
|