bkui-vue 0.0.1-beta.389 → 0.0.1-beta.390
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/lib/affix/index.js +60 -128
- package/lib/alert/index.js +56 -124
- package/lib/animate-number/index.js +42 -106
- package/lib/backtop/index.js +61 -133
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +4 -4
- package/lib/badge/index.js +50 -114
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +67 -133
- package/lib/button/index.js +68 -147
- package/lib/card/index.js +69 -154
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +168 -242
- package/lib/checkbox/index.js +77 -139
- package/lib/code-diff/index.js +79 -121
- package/lib/collapse/index.js +84 -150
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/color-picker/index.js +193 -245
- package/lib/components.js +434 -671
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/container/index.js +64 -125
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/index.js +462 -563
- package/lib/date-picker/panel/time-range.d.ts +3 -3
- package/lib/date-picker/panel/time.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +108 -198
- package/lib/directives/index.d.ts +0 -2
- package/lib/directives/index.js +86 -140
- package/lib/dist.index.js +48 -133
- package/lib/divider/index.js +50 -118
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +73 -155
- package/lib/exception/index.js +97 -145
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +4 -4
- package/lib/fixed-navbar/index.js +43 -107
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +107 -193
- package/lib/icon/angle-double-down-line.js +30 -90
- package/lib/icon/angle-double-left-line.js +30 -90
- package/lib/icon/angle-double-left.js +30 -90
- package/lib/icon/angle-double-right-line.js +30 -90
- package/lib/icon/angle-double-right.js +30 -90
- package/lib/icon/angle-double-up-line.js +30 -90
- package/lib/icon/angle-down-fill.js +30 -90
- package/lib/icon/angle-down-line.js +30 -90
- package/lib/icon/angle-down.js +30 -90
- package/lib/icon/angle-left.js +30 -90
- package/lib/icon/angle-right.js +30 -90
- package/lib/icon/angle-up-fill.js +30 -90
- package/lib/icon/angle-up.js +30 -90
- package/lib/icon/archive-fill.js +30 -90
- package/lib/icon/arrows-left.js +30 -90
- package/lib/icon/arrows-right.js +30 -90
- package/lib/icon/audio-fill.js +30 -90
- package/lib/icon/bk.js +30 -90
- package/lib/icon/circle.js +30 -90
- package/lib/icon/close-line.js +30 -90
- package/lib/icon/close.js +30 -90
- package/lib/icon/code.js +30 -90
- package/lib/icon/cog-shape.js +30 -90
- package/lib/icon/collapse-left.js +30 -90
- package/lib/icon/copy.js +30 -90
- package/lib/icon/data-shape.js +30 -90
- package/lib/icon/del.js +30 -90
- package/lib/icon/doc-fill.js +30 -90
- package/lib/icon/done.js +30 -90
- package/lib/icon/down-shape.js +30 -90
- package/lib/icon/down-small.js +30 -90
- package/lib/icon/edit-line.js +30 -90
- package/lib/icon/ellipsis.js +30 -90
- package/lib/icon/enlarge-line.js +30 -90
- package/lib/icon/error.js +30 -90
- package/lib/icon/excel-fill.js +30 -90
- package/lib/icon/exclamation-circle-shape.js +30 -90
- package/lib/icon/eye.js +30 -90
- package/lib/icon/filliscreen-line.js +30 -90
- package/lib/icon/folder-open.js +30 -90
- package/lib/icon/folder-shape-open.js +30 -90
- package/lib/icon/folder-shape.js +30 -90
- package/lib/icon/folder.js +30 -90
- package/lib/icon/funnel.js +30 -90
- package/lib/icon/help-document-fill.js +30 -90
- package/lib/icon/help-fill.js +30 -90
- package/lib/icon/help.js +30 -90
- package/lib/icon/image-fill.js +30 -90
- package/lib/icon/img-placehoulder.js +52 -88
- package/lib/icon/index.js +267 -255
- package/lib/icon/info-line.js +52 -88
- package/lib/icon/info.js +52 -88
- package/lib/icon/left-shape.js +52 -88
- package/lib/icon/left-turn-line.js +52 -88
- package/lib/icon/narrow-line.js +52 -88
- package/lib/icon/original.js +52 -88
- package/lib/icon/pdf-fill.js +52 -88
- package/lib/icon/play-shape.js +52 -88
- package/lib/icon/plus.js +52 -88
- package/lib/icon/ppt-fill.js +52 -88
- package/lib/icon/qq.js +52 -88
- package/lib/icon/right-shape.js +52 -88
- package/lib/icon/right-turn-line.js +52 -88
- package/lib/icon/search.js +52 -88
- package/lib/icon/share.js +52 -88
- package/lib/icon/spinner.js +52 -88
- package/lib/icon/success.js +52 -88
- package/lib/icon/switcher-loading.js +52 -88
- package/lib/icon/text-file.js +52 -88
- package/lib/icon/text-fill.js +52 -88
- package/lib/icon/transfer.js +52 -88
- package/lib/icon/tree-application-shape.js +52 -88
- package/lib/icon/unfull-screen.js +52 -88
- package/lib/icon/unvisible.js +52 -88
- package/lib/icon/up-shape.js +52 -88
- package/lib/icon/upload.js +52 -88
- package/lib/icon/video-fill.js +52 -88
- package/lib/icon/warn.js +52 -88
- package/lib/icon/weixin.js +52 -88
- package/lib/image/index.js +164 -213
- package/lib/index.js +50 -134
- package/lib/info-box/index.js +152 -206
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +99 -167
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +47 -115
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +67 -127
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.js +92 -156
- package/lib/message/index.js +76 -148
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/index.js +85 -151
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +66 -134
- package/lib/notify/index.js +81 -153
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.js +92 -128
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +131 -220
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.js +143 -191
- package/lib/plugins/index.js +33 -100
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/index.js +148 -194
- package/lib/popover/popover.d.ts +3 -3
- package/lib/popover2/index.js +35 -99
- package/lib/preset.js +37 -104
- package/lib/process/index.d.ts +4 -4
- package/lib/process/index.js +92 -134
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +63 -127
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.js +81 -142
- package/lib/rate/index.js +63 -127
- package/lib/resize-layout/index.js +79 -147
- package/lib/search-select/index.js +168 -220
- package/lib/select/index.d.ts +10 -10
- package/lib/select/index.js +315 -394
- package/lib/select/select.d.ts +3 -3
- package/lib/shared/index.js +228 -203
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/index.js +88 -137
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.d.ts +7 -7
- package/lib/slider/index.js +147 -196
- package/lib/slider/slider.d.ts +2 -2
- package/lib/steps/index.js +105 -152
- package/lib/swiper/index.js +62 -126
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +65 -133
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +118 -188
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/index.js +457 -572
- package/lib/table-column/index.js +129 -197
- package/lib/tag/index.js +58 -130
- package/lib/tag-input/index.d.ts +7 -7
- package/lib/tag-input/index.js +175 -277
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/time-picker/index.js +40 -111
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +50 -114
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.js +89 -174
- package/lib/tree/index.js +158 -235
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/index.js +173 -227
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.js +86 -154
- package/package.json +1 -1
@@ -455,13 +455,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
455
455
|
options: Record<string, any>;
|
456
456
|
behavior: "simplicity" | "normal";
|
457
457
|
type: import("../interface").PickerTypeType;
|
458
|
-
width: number;
|
459
458
|
disabled: boolean;
|
460
|
-
|
459
|
+
width: number;
|
460
|
+
placeholder: string;
|
461
461
|
open: boolean;
|
462
462
|
multiple: boolean;
|
463
|
-
placeholder: string;
|
464
463
|
transfer: boolean;
|
464
|
+
fontSize: "normal" | "large" | "medium";
|
465
465
|
clearable: boolean;
|
466
466
|
readonly: boolean;
|
467
467
|
withValidate: boolean;
|
@@ -413,13 +413,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
413
413
|
confirm: boolean;
|
414
414
|
behavior: "simplicity" | "normal";
|
415
415
|
type: import("../interface").PickerTypeType;
|
416
|
-
width: number;
|
417
416
|
disabled: boolean;
|
418
|
-
|
417
|
+
width: number;
|
418
|
+
placeholder: string;
|
419
419
|
open: boolean;
|
420
420
|
multiple: boolean;
|
421
|
-
placeholder: string;
|
422
421
|
transfer: boolean;
|
422
|
+
fontSize: "normal" | "large" | "medium";
|
423
423
|
clearable: boolean;
|
424
424
|
readonly: boolean;
|
425
425
|
withValidate: boolean;
|
@@ -349,13 +349,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
349
349
|
options: Record<string, any>;
|
350
350
|
behavior: "simplicity" | "normal";
|
351
351
|
type: import("./interface").PickerTypeType;
|
352
|
-
width: number;
|
353
352
|
disabled: boolean;
|
354
|
-
|
353
|
+
width: number;
|
354
|
+
placeholder: string;
|
355
355
|
open: boolean;
|
356
356
|
multiple: boolean;
|
357
|
-
placeholder: string;
|
358
357
|
transfer: boolean;
|
358
|
+
fontSize: "normal" | "large" | "medium";
|
359
359
|
clearable: boolean;
|
360
360
|
readonly: boolean;
|
361
361
|
withValidate: boolean;
|
package/lib/dialog/dialog.d.ts
CHANGED
@@ -284,12 +284,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
284
284
|
zIndex: string | number;
|
285
285
|
showMask: boolean;
|
286
286
|
direction: string;
|
287
|
+
theme: "success" | "warning" | "danger" | "primary";
|
288
|
+
extCls: string | unknown[];
|
287
289
|
width: string | number;
|
288
290
|
height: string | number;
|
289
291
|
maxHeight: string;
|
290
292
|
isShow: boolean;
|
291
|
-
theme: "success" | "warning" | "danger" | "primary";
|
292
|
-
extCls: string | unknown[];
|
293
293
|
draggable: boolean;
|
294
294
|
transfer: boolean;
|
295
295
|
quickClose: boolean;
|
package/lib/dialog/index.d.ts
CHANGED
@@ -8,12 +8,12 @@ declare const BkDialog: {
|
|
8
8
|
zIndex: string | number;
|
9
9
|
showMask: boolean;
|
10
10
|
direction: string;
|
11
|
+
theme: "success" | "warning" | "danger" | "primary";
|
12
|
+
extCls: string | unknown[];
|
11
13
|
width: string | number;
|
12
14
|
height: string | number;
|
13
15
|
maxHeight: string;
|
14
16
|
isShow: boolean;
|
15
|
-
theme: "success" | "warning" | "danger" | "primary";
|
16
|
-
extCls: string | unknown[];
|
17
17
|
draggable: boolean;
|
18
18
|
transfer: boolean;
|
19
19
|
quickClose: boolean;
|
@@ -166,7 +166,7 @@ declare const BkDialog: {
|
|
166
166
|
onClosed?: (...args: any[]) => any;
|
167
167
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
168
168
|
"onValue-change"?: (...args: any[]) => any;
|
169
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "direction" | "
|
169
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "direction" | "theme" | "extCls" | "width" | "height" | "maxHeight" | "isShow" | "draggable" | "transfer" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType" | "confirmText" | "cancelText" | "prevText" | "nextText" | "current" | "totalStep" | "headerAlign" | "footerAlign" | "isLoading">;
|
170
170
|
$attrs: {
|
171
171
|
[x: string]: unknown;
|
172
172
|
};
|
@@ -338,12 +338,12 @@ declare const BkDialog: {
|
|
338
338
|
zIndex: string | number;
|
339
339
|
showMask: boolean;
|
340
340
|
direction: string;
|
341
|
+
theme: "success" | "warning" | "danger" | "primary";
|
342
|
+
extCls: string | unknown[];
|
341
343
|
width: string | number;
|
342
344
|
height: string | number;
|
343
345
|
maxHeight: string;
|
344
346
|
isShow: boolean;
|
345
|
-
theme: "success" | "warning" | "danger" | "primary";
|
346
|
-
extCls: string | unknown[];
|
347
347
|
draggable: boolean;
|
348
348
|
transfer: boolean;
|
349
349
|
quickClose: boolean;
|
@@ -695,12 +695,12 @@ declare const BkDialog: {
|
|
695
695
|
zIndex: string | number;
|
696
696
|
showMask: boolean;
|
697
697
|
direction: string;
|
698
|
+
theme: "success" | "warning" | "danger" | "primary";
|
699
|
+
extCls: string | unknown[];
|
698
700
|
width: string | number;
|
699
701
|
height: string | number;
|
700
702
|
maxHeight: string;
|
701
703
|
isShow: boolean;
|
702
|
-
theme: "success" | "warning" | "danger" | "primary";
|
703
|
-
extCls: string | unknown[];
|
704
704
|
draggable: boolean;
|
705
705
|
transfer: boolean;
|
706
706
|
quickClose: boolean;
|
package/lib/dialog/index.js
CHANGED
@@ -1,143 +1,57 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__6870__, __WEBPACK_EXTERNAL_MODULE__8014__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 4976:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 6870:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
|
26
|
-
|
27
|
-
/***/ }),
|
28
|
-
|
29
|
-
/***/ 8014:
|
30
|
-
/***/ ((module) => {
|
31
|
-
|
32
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__8014__;
|
33
|
-
|
34
|
-
/***/ }),
|
35
|
-
|
36
|
-
/***/ 4212:
|
37
|
-
/***/ ((module) => {
|
38
|
-
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
40
|
-
|
41
|
-
/***/ }),
|
42
|
-
|
43
|
-
/***/ 748:
|
44
|
-
/***/ ((module) => {
|
45
|
-
|
46
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
47
|
-
|
48
|
-
/***/ })
|
49
|
-
|
50
|
-
/******/ });
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__button_59c00871__ from "../button";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__ from "../modal";
|
6
|
+
/******/ // The require scope
|
7
|
+
/******/ var __webpack_require__ = {};
|
8
|
+
/******/
|
51
9
|
/************************************************************************/
|
52
|
-
/******/
|
53
|
-
/******/
|
54
|
-
/******/
|
55
|
-
/******/
|
56
|
-
/******/
|
57
|
-
/******/
|
58
|
-
/******/
|
59
|
-
/******/ if (cachedModule !== undefined) {
|
60
|
-
/******/ return cachedModule.exports;
|
61
|
-
/******/ }
|
62
|
-
/******/ // Create a new module (and put it into the cache)
|
63
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
64
|
-
/******/ // no module.id needed
|
65
|
-
/******/ // no module.loaded needed
|
66
|
-
/******/ exports: {}
|
67
|
-
/******/ };
|
68
|
-
/******/
|
69
|
-
/******/ // Execute the module function
|
70
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
71
|
-
/******/
|
72
|
-
/******/ // Return the exports of the module
|
73
|
-
/******/ return module.exports;
|
74
|
-
/******/ }
|
75
|
-
/******/
|
76
|
-
/************************************************************************/
|
77
|
-
/******/ /* webpack/runtime/compat get default export */
|
78
|
-
/******/ (() => {
|
79
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
80
|
-
/******/ __webpack_require__.n = (module) => {
|
81
|
-
/******/ var getter = module && module.__esModule ?
|
82
|
-
/******/ () => (module['default']) :
|
83
|
-
/******/ () => (module);
|
84
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
85
|
-
/******/ return getter;
|
86
|
-
/******/ };
|
87
|
-
/******/ })();
|
88
|
-
/******/
|
89
|
-
/******/ /* webpack/runtime/define property getters */
|
90
|
-
/******/ (() => {
|
91
|
-
/******/ // define getter functions for harmony exports
|
92
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
93
|
-
/******/ for(var key in definition) {
|
94
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
95
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
96
|
-
/******/ }
|
97
|
-
/******/ }
|
98
|
-
/******/ };
|
99
|
-
/******/ })();
|
100
|
-
/******/
|
101
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
102
|
-
/******/ (() => {
|
103
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
104
|
-
/******/ })();
|
105
|
-
/******/
|
106
|
-
/******/ /* webpack/runtime/make namespace object */
|
107
|
-
/******/ (() => {
|
108
|
-
/******/ // define __esModule on exports
|
109
|
-
/******/ __webpack_require__.r = (exports) => {
|
110
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
111
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
10
|
+
/******/ /* webpack/runtime/define property getters */
|
11
|
+
/******/ (() => {
|
12
|
+
/******/ // define getter functions for harmony exports
|
13
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
14
|
+
/******/ for(var key in definition) {
|
15
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
16
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
112
17
|
/******/ }
|
113
|
-
/******/
|
114
|
-
/******/
|
115
|
-
/******/
|
116
|
-
/******/
|
18
|
+
/******/ }
|
19
|
+
/******/ };
|
20
|
+
/******/ })();
|
21
|
+
/******/
|
22
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
23
|
+
/******/ (() => {
|
24
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
25
|
+
/******/ })();
|
26
|
+
/******/
|
117
27
|
/************************************************************************/
|
118
28
|
var __webpack_exports__ = {};
|
119
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
120
|
-
(() => {
|
121
|
-
// ESM COMPAT FLAG
|
122
|
-
__webpack_require__.r(__webpack_exports__);
|
123
29
|
|
124
30
|
// EXPORTS
|
125
31
|
__webpack_require__.d(__webpack_exports__, {
|
126
|
-
"
|
32
|
+
"Z": () => (/* binding */ src)
|
127
33
|
});
|
128
34
|
|
129
|
-
|
130
|
-
var
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
var
|
135
|
-
var
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
var
|
140
|
-
|
35
|
+
;// CONCATENATED MODULE: external "../shared"
|
36
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
|
+
var y = x => () => x
|
38
|
+
const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
39
|
+
;// CONCATENATED MODULE: external "vue"
|
40
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
|
+
var external_vue_y = x => () => x
|
42
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
43
|
+
;// CONCATENATED MODULE: external "../button"
|
44
|
+
var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
|
+
var external_button_y = x => () => x
|
46
|
+
const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
|
47
|
+
;// CONCATENATED MODULE: external "../icon"
|
48
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
49
|
+
var external_icon_y = x => () => x
|
50
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
|
51
|
+
;// CONCATENATED MODULE: external "../modal"
|
52
|
+
var external_modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
53
|
+
var external_modal_y = x => () => x
|
54
|
+
const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__.propsMixin });
|
141
55
|
;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
|
142
56
|
/*
|
143
57
|
* Tencent is pleased to support the open source community by making
|
@@ -166,32 +80,32 @@ var external_modal_default = /*#__PURE__*/__webpack_require__.n(external_modal_)
|
|
166
80
|
*/
|
167
81
|
|
168
82
|
|
169
|
-
var props = Object.assign(Object.assign({},
|
170
|
-
width:
|
171
|
-
height:
|
83
|
+
var props = Object.assign(Object.assign({}, external_modal_namespaceObject.propsMixin), {
|
84
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
85
|
+
height: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
|
172
86
|
// 确认按钮文字
|
173
|
-
confirmText:
|
87
|
+
confirmText: external_shared_namespaceObject.PropTypes.string.def('确定'),
|
174
88
|
// 取消按钮文字
|
175
|
-
cancelText:
|
89
|
+
cancelText: external_shared_namespaceObject.PropTypes.string.def('取消'),
|
176
90
|
// 步骤按钮文字
|
177
|
-
prevText:
|
178
|
-
nextText:
|
91
|
+
prevText: external_shared_namespaceObject.PropTypes.string.def('上一步'),
|
92
|
+
nextText: external_shared_namespaceObject.PropTypes.string.def('下一步'),
|
179
93
|
// 当前步骤
|
180
|
-
current:
|
94
|
+
current: external_shared_namespaceObject.PropTypes.number.def(1),
|
181
95
|
// 总步数
|
182
|
-
totalStep:
|
96
|
+
totalStep: external_shared_namespaceObject.PropTypes.number,
|
183
97
|
// 弹框的标题
|
184
|
-
title:
|
98
|
+
title: external_shared_namespaceObject.PropTypes.string.def('title'),
|
185
99
|
// 显示 header 的位置
|
186
|
-
headerAlign: (0,
|
100
|
+
headerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.LEFT),
|
187
101
|
// 显示 footer 的位置
|
188
|
-
footerAlign: (0,
|
102
|
+
footerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.RIGHT),
|
189
103
|
// 颜色 按钮类型
|
190
|
-
theme:
|
104
|
+
theme: external_shared_namespaceObject.PropTypes.theme().def(external_shared_namespaceObject.ThemeEnum.PRIMARY),
|
191
105
|
// 对话框类型
|
192
|
-
dialogType: (0,
|
106
|
+
dialogType: (0,external_shared_namespaceObject.dialogTypeUnion)(),
|
193
107
|
// 按钮loading
|
194
|
-
isLoading:
|
108
|
+
isLoading: external_shared_namespaceObject.PropTypes.bool.def(false)
|
195
109
|
});
|
196
110
|
/* harmony default export */ const src_props = (props);
|
197
111
|
;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
|
@@ -230,20 +144,20 @@ var props = Object.assign(Object.assign({}, external_modal_.propsMixin), {
|
|
230
144
|
|
231
145
|
|
232
146
|
function _isSlot(s) {
|
233
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,
|
147
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
234
148
|
}
|
235
149
|
|
236
|
-
/* harmony default export */ const dialog = ((0,
|
150
|
+
/* harmony default export */ const dialog = ((0,external_vue_namespaceObject.defineComponent)({
|
237
151
|
name: 'Dialog',
|
238
152
|
components: {
|
239
|
-
BkModal:
|
240
|
-
BkButton:
|
153
|
+
BkModal: external_modal_namespaceObject["default"],
|
154
|
+
BkButton: external_button_namespaceObject["default"]
|
241
155
|
},
|
242
156
|
props: src_props,
|
243
157
|
emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
|
244
158
|
setup: function setup(props, _ref) {
|
245
159
|
var emit = _ref.emit;
|
246
|
-
var data = (0,
|
160
|
+
var data = (0,external_vue_namespaceObject.reactive)({
|
247
161
|
positionX: 0,
|
248
162
|
positionY: 0,
|
249
163
|
moveStyle: {
|
@@ -251,18 +165,18 @@ function _isSlot(s) {
|
|
251
165
|
left: ''
|
252
166
|
}
|
253
167
|
});
|
254
|
-
var isModalShow = (0,
|
255
|
-
(0,
|
168
|
+
var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
|
169
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
256
170
|
if (props.escClose) {
|
257
171
|
addEventListener('keydown', escCloseHandler);
|
258
172
|
}
|
259
173
|
});
|
260
|
-
(0,
|
174
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
261
175
|
if (props.escClose) {
|
262
176
|
removeEventListener('keydown', escCloseHandler);
|
263
177
|
}
|
264
178
|
});
|
265
|
-
(0,
|
179
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
266
180
|
return props.isShow;
|
267
181
|
}, function (val) {
|
268
182
|
if (!val) {
|
@@ -293,7 +207,7 @@ function _isSlot(s) {
|
|
293
207
|
emit('confirm'); // isModalShow.value = false; 影响异步关闭
|
294
208
|
};
|
295
209
|
|
296
|
-
var hasFooter = (0,
|
210
|
+
var hasFooter = (0,external_vue_namespaceObject.computed)(function () {
|
297
211
|
return ['process', 'operation', 'confirm'].includes(props.dialogType);
|
298
212
|
}); // 按 esc 关闭弹框
|
299
213
|
|
@@ -386,17 +300,17 @@ function _isSlot(s) {
|
|
386
300
|
|
387
301
|
var renderIcon = function renderIcon() {
|
388
302
|
var iconMap = {
|
389
|
-
loading: (0,
|
390
|
-
"class": [(0,
|
303
|
+
loading: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, {
|
304
|
+
"class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'primary']
|
391
305
|
}, null),
|
392
|
-
warning: (0,
|
393
|
-
"class": [(0,
|
306
|
+
warning: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Warn, {
|
307
|
+
"class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'warning']
|
394
308
|
}, null),
|
395
|
-
success: (0,
|
396
|
-
"class": [(0,
|
309
|
+
success: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Success, {
|
310
|
+
"class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'success']
|
397
311
|
}, null),
|
398
|
-
danger: (0,
|
399
|
-
"class": [(0,
|
312
|
+
danger: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
313
|
+
"class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'danger']
|
400
314
|
}, null)
|
401
315
|
};
|
402
316
|
return iconMap[_this.infoType];
|
@@ -406,17 +320,17 @@ function _isSlot(s) {
|
|
406
320
|
header: function header() {
|
407
321
|
var _a, _b, _c, _d, _e, _f;
|
408
322
|
|
409
|
-
return [(0,
|
410
|
-
"class": [(0,
|
323
|
+
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
324
|
+
"class": [(0,external_shared_namespaceObject.resolveClassName)('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
|
411
325
|
"onMousedown": _this.moveHandler
|
412
|
-
}, [(_c = (_b = (_a = _this.$slots).tools) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']), (0,
|
413
|
-
"class": (0,
|
414
|
-
}, [(0,
|
415
|
-
"class": (0,
|
416
|
-
}, [_this.infoType ? renderIcon() : (0,
|
326
|
+
}, [(_c = (_b = (_a = _this.$slots).tools) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
327
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-header')
|
328
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
329
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('header-icon')
|
330
|
+
}, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
|
417
331
|
"name": "info-icon"
|
418
|
-
}, null)]), (0,
|
419
|
-
"class": (0,
|
332
|
+
}, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
|
333
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-title'),
|
420
334
|
"style": "text-align: ".concat(_this.headerAlign)
|
421
335
|
}, [(_f = (_e = (_d = _this.$slots).header) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : _this.title])])];
|
422
336
|
},
|
@@ -428,24 +342,24 @@ function _isSlot(s) {
|
|
428
342
|
footer: function footer() {
|
429
343
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
430
344
|
|
431
|
-
return (0,
|
432
|
-
"class": (0,
|
345
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
346
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-footer'),
|
433
347
|
"style": "text-align: ".concat(_this.footerAlign)
|
434
|
-
}, [_this.dialogType === 'process' ? (_c = (_b = (_a = _this.$slots).footer) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,
|
435
|
-
"class": (0,
|
348
|
+
}, [_this.dialogType === 'process' ? (_c = (_b = (_a = _this.$slots).footer) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
349
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-perv'),
|
436
350
|
"onClick": _this.handlePrevStep
|
437
351
|
}, {
|
438
352
|
"default": function _default() {
|
439
353
|
return [_this.prevText];
|
440
354
|
}
|
441
|
-
}), _this.current === _this.totalStep ? '' : (0,
|
442
|
-
"class": (0,
|
355
|
+
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
356
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-next'),
|
443
357
|
"onClick": _this.handleNextStep
|
444
358
|
}, {
|
445
359
|
"default": function _default() {
|
446
360
|
return [_this.nextText];
|
447
361
|
}
|
448
|
-
}), _this.current === _this.totalStep ? (0,
|
362
|
+
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
449
363
|
"onClick": _this.handleConfirm,
|
450
364
|
"theme": _this.theme,
|
451
365
|
"loading": _this.isLoading
|
@@ -453,15 +367,15 @@ function _isSlot(s) {
|
|
453
367
|
"default": function _default() {
|
454
368
|
return [_this.confirmText];
|
455
369
|
}
|
456
|
-
}) : '', (0,
|
457
|
-
"class": (0,
|
370
|
+
}) : '', (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
371
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-cancel'),
|
458
372
|
"onClick": _this.handleClose,
|
459
373
|
"disabled": _this.isLoading
|
460
374
|
}, {
|
461
375
|
"default": function _default() {
|
462
376
|
return [_this.cancelText];
|
463
377
|
}
|
464
|
-
})]) : '', _this.dialogType === 'operation' ? (_f = (_e = (_d = _this.$slots).footer) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : (0,
|
378
|
+
})]) : '', _this.dialogType === 'operation' ? (_f = (_e = (_d = _this.$slots).footer) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
465
379
|
"onClick": _this.handleConfirm,
|
466
380
|
"theme": _this.theme,
|
467
381
|
"loading": _this.isLoading
|
@@ -469,15 +383,15 @@ function _isSlot(s) {
|
|
469
383
|
"default": function _default() {
|
470
384
|
return [_this.confirmText];
|
471
385
|
}
|
472
|
-
}), (0,
|
473
|
-
"class": (0,
|
386
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
387
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-cancel'),
|
474
388
|
"onClick": _this.handleClose,
|
475
389
|
"disabled": _this.isLoading
|
476
390
|
}, {
|
477
391
|
"default": function _default() {
|
478
392
|
return [_this.cancelText];
|
479
393
|
}
|
480
|
-
})]) : '', _this.dialogType === 'confirm' ? (_j = (_h = (_g = _this.$slots).footer) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : (0,
|
394
|
+
})]) : '', _this.dialogType === 'confirm' ? (_j = (_h = (_g = _this.$slots).footer) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
481
395
|
"onClick": _this.handleConfirm,
|
482
396
|
"theme": _this.theme,
|
483
397
|
"loading": _this.isLoading
|
@@ -488,14 +402,14 @@ function _isSlot(s) {
|
|
488
402
|
})]) : '']);
|
489
403
|
},
|
490
404
|
close: function close() {
|
491
|
-
return (0,
|
492
|
-
"class": (0,
|
405
|
+
return (0,external_vue_namespaceObject.createVNode)("span", {
|
406
|
+
"class": (0,external_shared_namespaceObject.resolveClassName)('dialog-close'),
|
493
407
|
"onClick": _this.handleClose
|
494
|
-
}, [(0,
|
408
|
+
}, [(0,external_vue_namespaceObject.createTextVNode)("+")]);
|
495
409
|
}
|
496
410
|
};
|
497
|
-
var className = "".concat((0,
|
498
|
-
return (0,
|
411
|
+
var className = "".concat((0,external_shared_namespaceObject.resolveClassName)('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
|
412
|
+
return (0,external_vue_namespaceObject.createVNode)(external_modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
499
413
|
"class": className,
|
500
414
|
"onClose": this.handleClose,
|
501
415
|
"isShow": this.isModalShow,
|
@@ -535,11 +449,7 @@ function _isSlot(s) {
|
|
535
449
|
*/
|
536
450
|
|
537
451
|
|
538
|
-
var BkDialog = (0,
|
452
|
+
var BkDialog = (0,external_shared_namespaceObject.withInstall)(dialog);
|
539
453
|
/* harmony default export */ const src = (BkDialog);
|
540
|
-
|
541
|
-
|
542
|
-
/******/ return __webpack_exports__;
|
543
|
-
/******/ })()
|
544
|
-
;
|
545
|
-
});
|
454
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
455
|
+
export { __webpack_exports__default as default };
|