bkui-vue 1.0.3-beta.9 → 2.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +71 -73
- package/dist/index.esm.js +20956 -18684
- package/dist/index.umd.js +71 -73
- 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.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +9 -1
- package/lib/collapse/props.d.ts +8 -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 +2 -0
- package/lib/components.js +3 -1
- 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 +176 -150
- package/lib/dialog/dialog.d.ts +40 -109
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +179 -150
- package/lib/dialog/index.d.ts +99 -263
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +10 -35
- package/lib/directives/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/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/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +18 -16
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.js +7 -1
- 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 +41 -309
- package/lib/modal/index.js +285 -671
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +155 -76
- package/lib/modal/modal.d.ts +18 -116
- package/lib/modal/modal.less +107 -55
- package/lib/modal/modal.variable.css +158 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/index.js +46 -52
- 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/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -26
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- 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/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18763 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/scrollbar/scrollbar.variable.css +204 -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 +124 -6
- package/lib/select/index.js +1336 -72
- 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 +50 -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.d.ts +0 -1
- package/lib/shared/index.js +70 -50
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +5 -0
- package/lib/sideslider/index.d.ts +55 -185
- package/lib/sideslider/index.js +81 -55
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +25 -87
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +45 -5
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -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-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +7 -17
- package/lib/table/const.d.ts +4 -4
- package/lib/table/index.d.ts +29 -64
- package/lib/table/index.js +18068 -613
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +11 -0
- package/lib/table/props.d.ts +17 -7
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +11 -0
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +6 -43
- package/lib/table/use-column.d.ts +9 -10
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +1 -1
- package/lib/table-column/index.d.ts +92 -266
- package/lib/table-column/index.js +24 -98
- 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/constant.d.ts +3 -1
- package/lib/tree/index.d.ts +44 -0
- package/lib/tree/index.js +17548 -25
- package/lib/tree/props.d.ts +18 -0
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +28 -2
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-attribute.d.ts +9 -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 +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +1 -1
- package/lib/shared/mask.d.ts +0 -11
package/lib/dialog/index.js
CHANGED
@@ -8,6 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ fr
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
|
10
10
|
import "../modal/modal.less";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__ from "lodash/cloneDeep";
|
11
12
|
/******/ var __webpack_modules__ = ({
|
12
13
|
|
13
14
|
/***/ 7609:
|
@@ -428,6 +429,51 @@ __webpack_require__.d(__webpack_exports__, {
|
|
428
429
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
429
430
|
var y = x => () => x
|
430
431
|
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 });
|
432
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
433
|
+
function _typeof(o) {
|
434
|
+
"@babel/helpers - typeof";
|
435
|
+
|
436
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
437
|
+
return typeof o;
|
438
|
+
} : function (o) {
|
439
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
440
|
+
}, _typeof(o);
|
441
|
+
}
|
442
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
443
|
+
|
444
|
+
function toPrimitive(t, r) {
|
445
|
+
if ("object" != _typeof(t) || !t) return t;
|
446
|
+
var e = t[Symbol.toPrimitive];
|
447
|
+
if (void 0 !== e) {
|
448
|
+
var i = e.call(t, r || "default");
|
449
|
+
if ("object" != _typeof(i)) return i;
|
450
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
451
|
+
}
|
452
|
+
return ("string" === r ? String : Number)(t);
|
453
|
+
}
|
454
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
455
|
+
|
456
|
+
|
457
|
+
function toPropertyKey(t) {
|
458
|
+
var i = toPrimitive(t, "string");
|
459
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
460
|
+
}
|
461
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
462
|
+
|
463
|
+
function _defineProperty(obj, key, value) {
|
464
|
+
key = toPropertyKey(key);
|
465
|
+
if (key in obj) {
|
466
|
+
Object.defineProperty(obj, key, {
|
467
|
+
value: value,
|
468
|
+
enumerable: true,
|
469
|
+
configurable: true,
|
470
|
+
writable: true
|
471
|
+
});
|
472
|
+
} else {
|
473
|
+
obj[key] = value;
|
474
|
+
}
|
475
|
+
return obj;
|
476
|
+
}
|
431
477
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
432
478
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
433
479
|
try {
|
@@ -462,7 +508,7 @@ function _asyncToGenerator(fn) {
|
|
462
508
|
;// CONCATENATED MODULE: external "vue"
|
463
509
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
464
510
|
var external_vue_y = x => () => x
|
465
|
-
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, ["
|
511
|
+
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, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["useAttrs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots });
|
466
512
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
467
513
|
var regenerator = __webpack_require__(2841);
|
468
514
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
@@ -481,7 +527,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
481
527
|
;// CONCATENATED MODULE: external "../icon"
|
482
528
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
483
529
|
var icon_y = x => () => x
|
484
|
-
const icon_namespaceObject = icon_x({ ["
|
530
|
+
const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
|
485
531
|
;// CONCATENATED MODULE: external "../modal"
|
486
532
|
var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
487
533
|
var modal_y = x => () => x
|
@@ -490,51 +536,10 @@ const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
490
536
|
var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
491
537
|
var modal_less_y = x => () => x
|
492
538
|
const modal_less_namespaceObject = modal_less_x({ });
|
493
|
-
;// CONCATENATED MODULE:
|
494
|
-
|
495
|
-
|
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
|
-
}
|
539
|
+
;// CONCATENATED MODULE: external "lodash/cloneDeep"
|
540
|
+
var cloneDeep_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
541
|
+
var cloneDeep_y = x => () => x
|
542
|
+
const cloneDeep_namespaceObject = cloneDeep_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__["default"] });
|
538
543
|
;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
|
539
544
|
|
540
545
|
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; }
|
@@ -566,9 +571,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
566
571
|
*/
|
567
572
|
|
568
573
|
|
569
|
-
|
570
|
-
|
571
|
-
|
574
|
+
|
575
|
+
var dialogProps = (0,cloneDeep_namespaceObject["default"])(modal_namespaceObject.propsMixin);
|
576
|
+
dialogProps.width["default"] = '480';
|
577
|
+
var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
|
578
|
+
// 是否可拖拽
|
579
|
+
draggable: shared_namespaceObject.PropTypes.bool.def(false),
|
572
580
|
// 确认按钮文字
|
573
581
|
// confirmText: PropTypes.string.def('确定'),
|
574
582
|
confirmText: shared_namespaceObject.PropTypes.string,
|
@@ -585,13 +593,13 @@ var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {
|
|
585
593
|
// 总步数
|
586
594
|
totalStep: shared_namespaceObject.PropTypes.number,
|
587
595
|
// 弹框的标题
|
588
|
-
title: shared_namespaceObject.PropTypes.string.def('
|
596
|
+
title: shared_namespaceObject.PropTypes.string.def(''),
|
589
597
|
// 显示 header 的位置
|
590
598
|
headerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.LEFT),
|
591
599
|
// 显示 footer 的位置
|
592
600
|
footerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.RIGHT),
|
593
601
|
// 颜色 按钮类型
|
594
|
-
|
602
|
+
confirmButtonTheme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
595
603
|
// 对话框类型
|
596
604
|
dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
|
597
605
|
// 按钮loading
|
@@ -602,6 +610,9 @@ var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {
|
|
602
610
|
|
603
611
|
|
604
612
|
|
613
|
+
function dialog_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; }
|
614
|
+
function dialog_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? dialog_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : dialog_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
615
|
+
|
605
616
|
/*
|
606
617
|
* Tencent is pleased to support the open source community by making
|
607
618
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -639,13 +650,49 @@ function _isSlot(s) {
|
|
639
650
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
640
651
|
}
|
641
652
|
/* harmony default export */ const dialog = ((0,external_vue_namespaceObject.defineComponent)({
|
642
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
643
653
|
name: 'Dialog',
|
654
|
+
inheritAttrs: false,
|
644
655
|
props: src_props,
|
645
|
-
emits:
|
656
|
+
emits: {
|
657
|
+
closed: function closed() {
|
658
|
+
return true;
|
659
|
+
},
|
660
|
+
shown: function shown() {
|
661
|
+
return true;
|
662
|
+
},
|
663
|
+
hidden: function hidden() {
|
664
|
+
return true;
|
665
|
+
},
|
666
|
+
'update:isShow': function updateIsShow(value) {
|
667
|
+
return value !== undefined;
|
668
|
+
},
|
669
|
+
confirm: function confirm() {
|
670
|
+
return true;
|
671
|
+
},
|
672
|
+
prev: function prev() {
|
673
|
+
return true;
|
674
|
+
},
|
675
|
+
next: function next() {
|
676
|
+
return true;
|
677
|
+
}
|
678
|
+
},
|
646
679
|
setup: function setup(props, _ref) {
|
647
680
|
var emit = _ref.emit;
|
648
681
|
var t = (0,config_provider_namespaceObject.useLocale)('dialog');
|
682
|
+
var attrs = (0,external_vue_namespaceObject.useAttrs)();
|
683
|
+
var slots = (0,external_vue_namespaceObject.useSlots)();
|
684
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
685
|
+
resolveClassName = _usePrefix.resolveClassName;
|
686
|
+
var instance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
687
|
+
var isMoveing = (0,external_vue_namespaceObject.ref)(false);
|
688
|
+
var positionData = (0,external_vue_namespaceObject.reactive)({
|
689
|
+
positionX: 0,
|
690
|
+
positionY: 0,
|
691
|
+
moveStyle: {
|
692
|
+
top: '50%',
|
693
|
+
left: '50%'
|
694
|
+
}
|
695
|
+
});
|
649
696
|
var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
|
650
697
|
if (props.confirmText === undefined) {
|
651
698
|
return t.value.ok;
|
@@ -670,43 +717,6 @@ function _isSlot(s) {
|
|
670
717
|
}
|
671
718
|
return props.nextText;
|
672
719
|
});
|
673
|
-
var data = (0,external_vue_namespaceObject.reactive)({
|
674
|
-
positionX: 0,
|
675
|
-
positionY: 0,
|
676
|
-
moveStyle: {
|
677
|
-
top: '50%',
|
678
|
-
left: '50%'
|
679
|
-
}
|
680
|
-
});
|
681
|
-
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
|
-
(0,external_vue_namespaceObject.watch)(function () {
|
693
|
-
return props.isShow;
|
694
|
-
}, function (val) {
|
695
|
-
if (!val) {
|
696
|
-
setTimeout(function () {
|
697
|
-
data.moveStyle = {
|
698
|
-
top: '50%',
|
699
|
-
left: '50%'
|
700
|
-
};
|
701
|
-
data.positionX = 0;
|
702
|
-
data.positionY = 0;
|
703
|
-
isModalShow.value = false;
|
704
|
-
}, 250);
|
705
|
-
} else {
|
706
|
-
isModalShow.value = true;
|
707
|
-
}
|
708
|
-
emit('value-change', val);
|
709
|
-
});
|
710
720
|
// 关闭弹框
|
711
721
|
var handleClose = /*#__PURE__*/function () {
|
712
722
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
@@ -727,7 +737,6 @@ function _isSlot(s) {
|
|
727
737
|
if (shouldClose) {
|
728
738
|
emit('update:isShow', false);
|
729
739
|
emit('closed');
|
730
|
-
isModalShow.value = false;
|
731
740
|
}
|
732
741
|
case 6:
|
733
742
|
case "end":
|
@@ -742,18 +751,12 @@ function _isSlot(s) {
|
|
742
751
|
var handleConfirm = function handleConfirm() {
|
743
752
|
emit('update:isShow', false);
|
744
753
|
emit('confirm');
|
745
|
-
// isModalShow.value = false; 影响异步关闭
|
746
754
|
};
|
747
|
-
var
|
748
|
-
|
749
|
-
}
|
750
|
-
|
751
|
-
|
752
|
-
if (props.isShow && props.closeIcon) {
|
753
|
-
if (e.keyCode === 27) {
|
754
|
-
handleClose();
|
755
|
-
}
|
756
|
-
}
|
755
|
+
var handleShown = function handleShown() {
|
756
|
+
emit('shown');
|
757
|
+
};
|
758
|
+
var handleHidden = function handleHidden() {
|
759
|
+
emit('hidden');
|
757
760
|
};
|
758
761
|
// 上一步
|
759
762
|
var handlePrevStep = function handlePrevStep() {
|
@@ -764,7 +767,7 @@ function _isSlot(s) {
|
|
764
767
|
emit('next');
|
765
768
|
};
|
766
769
|
// 拖拽事件
|
767
|
-
var
|
770
|
+
var handleMousedown = function handleMousedown(e) {
|
768
771
|
if (props.fullscreen) {
|
769
772
|
return false;
|
770
773
|
}
|
@@ -776,13 +779,14 @@ function _isSlot(s) {
|
|
776
779
|
var parentWidth = e.currentTarget.parentNode.parentNode.offsetWidth;
|
777
780
|
var disX;
|
778
781
|
var disY;
|
779
|
-
if (
|
780
|
-
disX = e.clientX -
|
781
|
-
disY = e.clientY -
|
782
|
+
if (positionData.positionX !== 0 && positionData.positionY !== 0) {
|
783
|
+
disX = e.clientX - positionData.positionX;
|
784
|
+
disY = e.clientY - positionData.positionY;
|
782
785
|
} else {
|
783
786
|
disX = e.clientX - odiv.offsetLeft;
|
784
787
|
disY = e.clientY - odiv.offsetTop;
|
785
788
|
}
|
789
|
+
isMoveing.value = true;
|
786
790
|
document.onmousemove = function (e) {
|
787
791
|
var boxLeft = window.innerWidth - parentWidth;
|
788
792
|
var boxTop = window.innerHeight - parentHeight;
|
@@ -798,155 +802,149 @@ function _isSlot(s) {
|
|
798
802
|
} else if (boxTop / 2 + top <= 0) {
|
799
803
|
top = -boxTop / 2;
|
800
804
|
}
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
+
positionData.positionX = left;
|
806
|
+
positionData.positionY = top;
|
807
|
+
positionData.moveStyle.left = "calc(50% + ".concat(left, "px)");
|
808
|
+
positionData.moveStyle.top = "calc(50% + ".concat(top, "px)");
|
805
809
|
};
|
806
810
|
document.onmouseup = function () {
|
807
811
|
document.onmousemove = null;
|
808
812
|
document.onmouseup = null;
|
813
|
+
isMoveing.value = false;
|
809
814
|
};
|
810
815
|
};
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
}, null),
|
837
|
-
warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, {
|
838
|
-
"class": [_this.resolveClassName('info-icon'), 'warning']
|
839
|
-
}, null),
|
840
|
-
success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, {
|
841
|
-
"class": [_this.resolveClassName('info-icon'), 'success']
|
842
|
-
}, null),
|
843
|
-
danger: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
844
|
-
"class": [_this.resolveClassName('info-icon'), 'danger']
|
845
|
-
}, null)
|
846
|
-
};
|
847
|
-
return iconMap[_this.infoType];
|
848
|
-
};
|
849
|
-
var dialogSlot = {
|
850
|
-
header: function header() {
|
851
|
-
var _this$$slots$tools, _this$$slots$tools2, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
|
852
|
-
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
853
|
-
"class": [_this.resolveClassName('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
|
854
|
-
"onMousedown": _this.moveHandler
|
855
|
-
}, [(_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
|
-
"class": _this.resolveClassName('dialog-header')
|
857
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
858
|
-
"class": _this.resolveClassName('header-icon')
|
859
|
-
}, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
|
860
|
-
"name": "info-icon"
|
861
|
-
}, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
|
862
|
-
"class": _this.resolveClassName('dialog-title'),
|
863
|
-
"style": "text-align: ".concat(_this.headerAlign)
|
864
|
-
}, [(_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
|
-
},
|
866
|
-
"default": function _default() {
|
867
|
-
var _this$$slots$default, _this$$slots$default2, _this$$slots3;
|
868
|
-
return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : 'default';
|
869
|
-
},
|
870
|
-
footer: function footer() {
|
871
|
-
var _this$$slots$footer, _this$$slots$footer2, _this$$slots4, _this$$slots$footer3, _this$$slots$footer4, _this$$slots5, _this$$slots$footer5, _this$$slots$footer6, _this$$slots6;
|
872
|
-
return (0,external_vue_namespaceObject.createVNode)("div", {
|
873
|
-
"class": _this.resolveClassName('dialog-footer'),
|
874
|
-
"style": "text-align: ".concat(_this.footerAlign)
|
875
|
-
}, [_this.dialogType === 'process' ? (_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
876
|
-
"class": _this.resolveClassName('dialog-perv'),
|
877
|
-
"onClick": _this.handlePrevStep
|
878
|
-
}, {
|
879
|
-
"default": function _default() {
|
880
|
-
return [_this.localPrevText];
|
881
|
-
}
|
882
|
-
}), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
883
|
-
"class": _this.resolveClassName('dialog-next'),
|
884
|
-
"onClick": _this.handleNextStep
|
885
|
-
}, {
|
886
|
-
"default": function _default() {
|
887
|
-
return [_this.localNextText];
|
888
|
-
}
|
889
|
-
}), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
890
|
-
"onClick": _this.handleConfirm,
|
891
|
-
"theme": _this.theme,
|
892
|
-
"loading": _this.isLoading
|
893
|
-
}, {
|
894
|
-
"default": function _default() {
|
895
|
-
return [_this.localConfirmText];
|
896
|
-
}
|
897
|
-
}) : '', (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
898
|
-
"class": _this.resolveClassName('dialog-cancel'),
|
899
|
-
"onClick": _this.handleClose,
|
900
|
-
"disabled": _this.isLoading
|
901
|
-
}, {
|
902
|
-
"default": function _default() {
|
903
|
-
return [_this.localCancelText];
|
816
|
+
return function () {
|
817
|
+
var dialogSlot = {
|
818
|
+
header: function header() {
|
819
|
+
var _slots$tools, _slots$header, _slots$header2;
|
820
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!props.fullscreen && props.draggable && (0,external_vue_namespaceObject.createVNode)("div", {
|
821
|
+
"class": resolveClassName('dialog-tool'),
|
822
|
+
"onMousedown": handleMousedown
|
823
|
+
}, [(_slots$tools = slots.tools) === null || _slots$tools === void 0 ? void 0 : _slots$tools.call(slots)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
824
|
+
"class": resolveClassName('dialog-header')
|
825
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
826
|
+
"class": resolveClassName('dialog-title'),
|
827
|
+
"style": "text-align: ".concat(props.headerAlign)
|
828
|
+
}, [(_slots$header = (_slots$header2 = slots.header) === null || _slots$header2 === void 0 ? void 0 : _slots$header2.call(slots)) !== null && _slots$header !== void 0 ? _slots$header : props.title])])]);
|
829
|
+
},
|
830
|
+
"default": function _default() {
|
831
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
832
|
+
"class": resolveClassName('dialog-content')
|
833
|
+
}, [slots["default"]()]);
|
834
|
+
},
|
835
|
+
footer: function footer() {
|
836
|
+
if (slots.footer) {
|
837
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
838
|
+
"class": resolveClassName('dialog-footer'),
|
839
|
+
"style": "text-align: ".concat(props.footerAlign)
|
840
|
+
}, [slots.footer()]);
|
904
841
|
}
|
905
|
-
|
906
|
-
|
907
|
-
"theme": _this.theme,
|
908
|
-
"loading": _this.isLoading
|
909
|
-
}, {
|
910
|
-
"default": function _default() {
|
911
|
-
return [_this.localConfirmText];
|
842
|
+
if (!['process', 'operation', 'confirm'].includes(props.dialogType)) {
|
843
|
+
return null;
|
912
844
|
}
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
845
|
+
var renderFooterAction = function renderFooterAction() {
|
846
|
+
if (props.dialogType === 'operation') {
|
847
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
848
|
+
"onClick": handleConfirm,
|
849
|
+
"theme": props.confirmButtonTheme,
|
850
|
+
"loading": props.isLoading
|
851
|
+
}, {
|
852
|
+
"default": function _default() {
|
853
|
+
return [localConfirmText.value];
|
854
|
+
}
|
855
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
856
|
+
"class": resolveClassName('dialog-cancel'),
|
857
|
+
"onClick": handleClose,
|
858
|
+
"disabled": props.isLoading
|
859
|
+
}, {
|
860
|
+
"default": function _default() {
|
861
|
+
return [localCancelText.value];
|
862
|
+
}
|
863
|
+
})]);
|
864
|
+
}
|
865
|
+
if (props.dialogType === 'confirm') {
|
866
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
867
|
+
"onClick": handleConfirm,
|
868
|
+
"theme": props.confirmButtonTheme,
|
869
|
+
"loading": props.isLoading
|
870
|
+
}, {
|
871
|
+
"default": function _default() {
|
872
|
+
return [localConfirmText.value];
|
873
|
+
}
|
874
|
+
});
|
875
|
+
}
|
876
|
+
if (props.dialogType === 'process') {
|
877
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [props.current > 1 && (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
878
|
+
"class": resolveClassName('dialog-perv'),
|
879
|
+
"onClick": handlePrevStep
|
880
|
+
}, {
|
881
|
+
"default": function _default() {
|
882
|
+
return [localPrevText.value];
|
883
|
+
}
|
884
|
+
}), props.current >= 1 && props.current < props.totalStep && (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
885
|
+
"class": resolveClassName('dialog-next'),
|
886
|
+
"onClick": handleNextStep
|
887
|
+
}, {
|
888
|
+
"default": function _default() {
|
889
|
+
return [localNextText.value];
|
890
|
+
}
|
891
|
+
}), props.current >= 1 && props.current === props.totalStep && (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
892
|
+
"onClick": handleConfirm,
|
893
|
+
"theme": props.confirmButtonTheme,
|
894
|
+
"loading": props.isLoading
|
895
|
+
}, {
|
896
|
+
"default": function _default() {
|
897
|
+
return [localConfirmText.value];
|
898
|
+
}
|
899
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
900
|
+
"class": resolveClassName('dialog-cancel'),
|
901
|
+
"onClick": handleClose,
|
902
|
+
"disabled": props.isLoading
|
903
|
+
}, {
|
904
|
+
"default": function _default() {
|
905
|
+
return [localCancelText.value];
|
906
|
+
}
|
907
|
+
})]);
|
908
|
+
}
|
909
|
+
};
|
910
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
911
|
+
"class": resolveClassName('dialog-footer'),
|
912
|
+
"style": "text-align: ".concat(props.footerAlign)
|
913
|
+
}, [renderFooterAction()]);
|
914
|
+
},
|
915
|
+
close: function close() {
|
916
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, null, null);
|
917
|
+
}
|
918
|
+
};
|
919
|
+
var inheritAttrs = dialog_objectSpread({}, attrs);
|
920
|
+
if (instance.vnode.scopeId) {
|
921
|
+
inheritAttrs[instance.vnode.scopeId] = '';
|
936
922
|
}
|
923
|
+
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(inheritAttrs, {
|
924
|
+
"class": _defineProperty(_defineProperty({}, resolveClassName('dialog'), true), 'is-fullscreen', props.fullscreen),
|
925
|
+
"isShow": props.isShow,
|
926
|
+
"fullscreen": props.fullscreen,
|
927
|
+
"width": props.fullscreen ? 'auto' : props.width,
|
928
|
+
"animateType": "fadein",
|
929
|
+
"beforeClose": props.beforeClose,
|
930
|
+
"closeIcon": props.closeIcon,
|
931
|
+
"escClose": props.escClose,
|
932
|
+
"quickClose": props.quickClose,
|
933
|
+
"showMask": props.showMask,
|
934
|
+
"transfer": props.transfer,
|
935
|
+
"renderDirective": props.renderDirective,
|
936
|
+
"left": props.fullscreen ? '0px' : positionData.moveStyle.left,
|
937
|
+
"top": props.fullscreen ? '0px' : positionData.moveStyle.top,
|
938
|
+
"zIndex": props.zIndex,
|
939
|
+
"onClose": handleClose,
|
940
|
+
"onHidden": handleHidden,
|
941
|
+
"onShown": handleShown
|
942
|
+
}), _isSlot(dialogSlot) ? dialogSlot : {
|
943
|
+
"default": function _default() {
|
944
|
+
return [dialogSlot];
|
945
|
+
}
|
946
|
+
});
|
937
947
|
};
|
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
|
-
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
|
940
|
-
"class": className,
|
941
|
-
"onClose": this.handleClose,
|
942
|
-
"isShow": this.isModalShow,
|
943
|
-
"left": this.data.moveStyle.left,
|
944
|
-
"top": this.data.moveStyle.top
|
945
|
-
}), _isSlot(dialogSlot) ? dialogSlot : {
|
946
|
-
"default": function _default() {
|
947
|
-
return [dialogSlot];
|
948
|
-
}
|
949
|
-
});
|
950
948
|
}
|
951
949
|
}));
|
952
950
|
;// CONCATENATED MODULE: ../../packages/dialog/src/index.ts
|