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