bkui-vue 2.0.2-beta.45 → 2.0.2-beta.47
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 +47 -42
- package/dist/index.esm.js +7204 -7010
- package/dist/index.umd.js +50 -45
- package/lib/affix/index.js +12 -14
- package/lib/alert/index.js +12 -14
- package/lib/animate-number/index.js +11 -12
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.js +12 -14
- package/lib/breadcrumb/index.js +12 -14
- package/lib/button/index.js +12 -14
- package/lib/card/index.js +12 -14
- package/lib/cascader/index.js +94 -101
- package/lib/checkbox/index.js +37 -35
- package/lib/code-diff/index.js +1171 -675
- package/lib/collapse/index.js +44 -42
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +59 -60
- package/lib/config-provider/index.js +12 -14
- package/lib/container/index.js +21 -25
- package/lib/date-picker/index.js +58 -51
- package/lib/dialog/index.js +53 -474
- package/lib/directives/index.js +37 -34
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +17 -21
- package/lib/exception/index.js +14 -17
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +37 -34
- package/lib/icon/angle-double-down-line.js +29 -36
- package/lib/icon/angle-double-left-line.js +29 -36
- package/lib/icon/angle-double-left.js +29 -36
- package/lib/icon/angle-double-right-line.js +29 -36
- package/lib/icon/angle-double-right.js +29 -36
- package/lib/icon/angle-double-up-line.js +29 -36
- package/lib/icon/angle-down-fill.js +29 -36
- package/lib/icon/angle-down-line.js +29 -36
- package/lib/icon/angle-down.js +29 -36
- package/lib/icon/angle-left.js +29 -36
- package/lib/icon/angle-right.js +29 -36
- package/lib/icon/angle-up-fill.js +29 -36
- package/lib/icon/angle-up.js +29 -36
- package/lib/icon/archive-fill.js +29 -36
- package/lib/icon/arrows-left.js +29 -36
- package/lib/icon/arrows-right.js +29 -36
- package/lib/icon/assistant.js +29 -36
- package/lib/icon/audio-fill.js +29 -36
- package/lib/icon/bk.js +29 -36
- package/lib/icon/circle.js +29 -36
- package/lib/icon/close-line.js +29 -36
- package/lib/icon/close.js +29 -36
- package/lib/icon/code.js +29 -36
- package/lib/icon/cog-shape.js +29 -36
- package/lib/icon/collapse-left.js +29 -36
- package/lib/icon/copy-shape.js +29 -36
- package/lib/icon/copy.js +29 -36
- package/lib/icon/data-shape.js +29 -36
- package/lib/icon/del.js +29 -36
- package/lib/icon/doc-fill.js +29 -36
- package/lib/icon/done.js +29 -36
- package/lib/icon/down-shape.js +29 -36
- package/lib/icon/down-small.js +29 -36
- package/lib/icon/edit-line.js +29 -36
- package/lib/icon/ellipsis.js +29 -36
- package/lib/icon/enlarge-line.js +29 -36
- package/lib/icon/error.js +29 -36
- package/lib/icon/excel-fill.js +29 -36
- package/lib/icon/exclamation-circle-shape.js +29 -36
- package/lib/icon/eye.js +29 -36
- package/lib/icon/filliscreen-line.js +29 -36
- package/lib/icon/fix-line.js +29 -36
- package/lib/icon/fix-shape.js +29 -36
- package/lib/icon/folder-open.js +29 -36
- package/lib/icon/folder-shape-open.js +29 -36
- package/lib/icon/folder-shape.js +29 -36
- package/lib/icon/folder.js +29 -36
- package/lib/icon/funnel.js +29 -36
- package/lib/icon/grag-fill.js +29 -36
- package/lib/icon/help-document-fill.js +29 -36
- package/lib/icon/help-fill.js +29 -36
- package/lib/icon/help.js +29 -36
- package/lib/icon/image-fill.js +29 -36
- package/lib/icon/img-error.js +29 -36
- package/lib/icon/img-placehoulder.js +29 -36
- package/lib/icon/info-line.js +29 -36
- package/lib/icon/info.js +29 -36
- package/lib/icon/left-shape.js +29 -36
- package/lib/icon/left-turn-line.js +29 -36
- package/lib/icon/loading.js +29 -36
- package/lib/icon/narrow-line.js +29 -36
- package/lib/icon/original.js +29 -36
- package/lib/icon/pdf-fill.js +29 -36
- package/lib/icon/play-shape.js +29 -36
- package/lib/icon/plus.js +29 -36
- package/lib/icon/ppt-fill.js +29 -36
- package/lib/icon/qq.js +29 -36
- package/lib/icon/right-shape.js +29 -36
- package/lib/icon/right-turn-line.js +29 -36
- package/lib/icon/search.js +29 -36
- package/lib/icon/share.js +29 -36
- package/lib/icon/spinner.js +29 -36
- package/lib/icon/success.js +29 -36
- package/lib/icon/switcher-loading.js +29 -36
- package/lib/icon/text-all.js +29 -36
- package/lib/icon/text-file.js +29 -36
- package/lib/icon/text-fill.js +29 -36
- package/lib/icon/transfer.js +29 -36
- package/lib/icon/tree-application-shape.js +29 -36
- package/lib/icon/unfull-screen.js +29 -36
- package/lib/icon/unvisible.js +29 -36
- package/lib/icon/up-shape.js +29 -36
- package/lib/icon/upload.js +29 -36
- package/lib/icon/video-fill.js +29 -36
- package/lib/icon/warn.js +29 -36
- package/lib/icon/weixin-pro.js +29 -36
- package/lib/icon/weixin.js +29 -36
- package/lib/image/index.js +49 -47
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +62 -461
- package/lib/input/index.js +62 -60
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +22 -25
- package/lib/menu/index.js +36 -34
- package/lib/message/index.js +34 -31
- package/lib/modal/index.js +12 -14
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +12 -14
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +32 -29
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +209 -136
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +59 -452
- package/lib/progress/index.js +16 -19
- package/lib/radio/index.js +37 -34
- package/lib/rate/index.js +12 -14
- package/lib/resize-layout/index.js +18 -20
- package/lib/scrollbar/index.js +51 -58
- package/lib/search-select/index.js +222 -595
- package/lib/select/index.js +111 -463
- package/lib/shared/index.js +83 -95
- package/lib/sideslider/index.js +43 -441
- package/lib/slider/index.js +49 -446
- package/lib/steps/index.js +60 -458
- package/lib/swiper/index.js +15 -17
- package/lib/switcher/index.js +12 -14
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +53 -45
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/table/index.js +152 -501
- package/lib/tag/index.js +12 -14
- package/lib/tag-input/index.js +47 -41
- package/lib/timeline/index.js +1 -0
- package/lib/transfer/index.js +22 -17
- package/lib/tree/index.js +73 -66
- package/lib/upload/index.js +136 -487
- package/lib/virtual-render/index.js +47 -51
- package/package.json +1 -1
package/lib/dialog/index.js
CHANGED
@@ -9,395 +9,10 @@ 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
11
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__ from "lodash/cloneDeep";
|
12
|
-
/******/
|
13
|
-
|
14
|
-
/***/ 7609:
|
15
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
16
|
-
|
17
|
-
var _typeof = (__webpack_require__(7425)["default"]);
|
18
|
-
function _regeneratorRuntime() {
|
19
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
20
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
21
|
-
return e;
|
22
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
23
|
-
var t,
|
24
|
-
e = {},
|
25
|
-
r = Object.prototype,
|
26
|
-
n = r.hasOwnProperty,
|
27
|
-
o = Object.defineProperty || function (t, e, r) {
|
28
|
-
t[e] = r.value;
|
29
|
-
},
|
30
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
31
|
-
a = i.iterator || "@@iterator",
|
32
|
-
c = i.asyncIterator || "@@asyncIterator",
|
33
|
-
u = i.toStringTag || "@@toStringTag";
|
34
|
-
function define(t, e, r) {
|
35
|
-
return Object.defineProperty(t, e, {
|
36
|
-
value: r,
|
37
|
-
enumerable: !0,
|
38
|
-
configurable: !0,
|
39
|
-
writable: !0
|
40
|
-
}), t[e];
|
41
|
-
}
|
42
|
-
try {
|
43
|
-
define({}, "");
|
44
|
-
} catch (t) {
|
45
|
-
define = function define(t, e, r) {
|
46
|
-
return t[e] = r;
|
47
|
-
};
|
48
|
-
}
|
49
|
-
function wrap(t, e, r, n) {
|
50
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
51
|
-
a = Object.create(i.prototype),
|
52
|
-
c = new Context(n || []);
|
53
|
-
return o(a, "_invoke", {
|
54
|
-
value: makeInvokeMethod(t, r, c)
|
55
|
-
}), a;
|
56
|
-
}
|
57
|
-
function tryCatch(t, e, r) {
|
58
|
-
try {
|
59
|
-
return {
|
60
|
-
type: "normal",
|
61
|
-
arg: t.call(e, r)
|
62
|
-
};
|
63
|
-
} catch (t) {
|
64
|
-
return {
|
65
|
-
type: "throw",
|
66
|
-
arg: t
|
67
|
-
};
|
68
|
-
}
|
69
|
-
}
|
70
|
-
e.wrap = wrap;
|
71
|
-
var h = "suspendedStart",
|
72
|
-
l = "suspendedYield",
|
73
|
-
f = "executing",
|
74
|
-
s = "completed",
|
75
|
-
y = {};
|
76
|
-
function Generator() {}
|
77
|
-
function GeneratorFunction() {}
|
78
|
-
function GeneratorFunctionPrototype() {}
|
79
|
-
var p = {};
|
80
|
-
define(p, a, function () {
|
81
|
-
return this;
|
82
|
-
});
|
83
|
-
var d = Object.getPrototypeOf,
|
84
|
-
v = d && d(d(values([])));
|
85
|
-
v && v !== r && n.call(v, a) && (p = v);
|
86
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
87
|
-
function defineIteratorMethods(t) {
|
88
|
-
["next", "throw", "return"].forEach(function (e) {
|
89
|
-
define(t, e, function (t) {
|
90
|
-
return this._invoke(e, t);
|
91
|
-
});
|
92
|
-
});
|
93
|
-
}
|
94
|
-
function AsyncIterator(t, e) {
|
95
|
-
function invoke(r, o, i, a) {
|
96
|
-
var c = tryCatch(t[r], t, o);
|
97
|
-
if ("throw" !== c.type) {
|
98
|
-
var u = c.arg,
|
99
|
-
h = u.value;
|
100
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
101
|
-
invoke("next", t, i, a);
|
102
|
-
}, function (t) {
|
103
|
-
invoke("throw", t, i, a);
|
104
|
-
}) : e.resolve(h).then(function (t) {
|
105
|
-
u.value = t, i(u);
|
106
|
-
}, function (t) {
|
107
|
-
return invoke("throw", t, i, a);
|
108
|
-
});
|
109
|
-
}
|
110
|
-
a(c.arg);
|
111
|
-
}
|
112
|
-
var r;
|
113
|
-
o(this, "_invoke", {
|
114
|
-
value: function value(t, n) {
|
115
|
-
function callInvokeWithMethodAndArg() {
|
116
|
-
return new e(function (e, r) {
|
117
|
-
invoke(t, n, e, r);
|
118
|
-
});
|
119
|
-
}
|
120
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
121
|
-
}
|
122
|
-
});
|
123
|
-
}
|
124
|
-
function makeInvokeMethod(e, r, n) {
|
125
|
-
var o = h;
|
126
|
-
return function (i, a) {
|
127
|
-
if (o === f) throw new Error("Generator is already running");
|
128
|
-
if (o === s) {
|
129
|
-
if ("throw" === i) throw a;
|
130
|
-
return {
|
131
|
-
value: t,
|
132
|
-
done: !0
|
133
|
-
};
|
134
|
-
}
|
135
|
-
for (n.method = i, n.arg = a;;) {
|
136
|
-
var c = n.delegate;
|
137
|
-
if (c) {
|
138
|
-
var u = maybeInvokeDelegate(c, n);
|
139
|
-
if (u) {
|
140
|
-
if (u === y) continue;
|
141
|
-
return u;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
145
|
-
if (o === h) throw o = s, n.arg;
|
146
|
-
n.dispatchException(n.arg);
|
147
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
148
|
-
o = f;
|
149
|
-
var p = tryCatch(e, r, n);
|
150
|
-
if ("normal" === p.type) {
|
151
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
152
|
-
return {
|
153
|
-
value: p.arg,
|
154
|
-
done: n.done
|
155
|
-
};
|
156
|
-
}
|
157
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
158
|
-
}
|
159
|
-
};
|
160
|
-
}
|
161
|
-
function maybeInvokeDelegate(e, r) {
|
162
|
-
var n = r.method,
|
163
|
-
o = e.iterator[n];
|
164
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
165
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
166
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
167
|
-
var a = i.arg;
|
168
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
169
|
-
}
|
170
|
-
function pushTryEntry(t) {
|
171
|
-
var e = {
|
172
|
-
tryLoc: t[0]
|
173
|
-
};
|
174
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
175
|
-
}
|
176
|
-
function resetTryEntry(t) {
|
177
|
-
var e = t.completion || {};
|
178
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
179
|
-
}
|
180
|
-
function Context(t) {
|
181
|
-
this.tryEntries = [{
|
182
|
-
tryLoc: "root"
|
183
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
184
|
-
}
|
185
|
-
function values(e) {
|
186
|
-
if (e || "" === e) {
|
187
|
-
var r = e[a];
|
188
|
-
if (r) return r.call(e);
|
189
|
-
if ("function" == typeof e.next) return e;
|
190
|
-
if (!isNaN(e.length)) {
|
191
|
-
var o = -1,
|
192
|
-
i = function next() {
|
193
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
194
|
-
return next.value = t, next.done = !0, next;
|
195
|
-
};
|
196
|
-
return i.next = i;
|
197
|
-
}
|
198
|
-
}
|
199
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
200
|
-
}
|
201
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
202
|
-
value: GeneratorFunctionPrototype,
|
203
|
-
configurable: !0
|
204
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
205
|
-
value: GeneratorFunction,
|
206
|
-
configurable: !0
|
207
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
208
|
-
var e = "function" == typeof t && t.constructor;
|
209
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
210
|
-
}, e.mark = function (t) {
|
211
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
212
|
-
}, e.awrap = function (t) {
|
213
|
-
return {
|
214
|
-
__await: t
|
215
|
-
};
|
216
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
217
|
-
return this;
|
218
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
219
|
-
void 0 === i && (i = Promise);
|
220
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
221
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
222
|
-
return t.done ? t.value : a.next();
|
223
|
-
});
|
224
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
225
|
-
return this;
|
226
|
-
}), define(g, "toString", function () {
|
227
|
-
return "[object Generator]";
|
228
|
-
}), e.keys = function (t) {
|
229
|
-
var e = Object(t),
|
230
|
-
r = [];
|
231
|
-
for (var n in e) r.push(n);
|
232
|
-
return r.reverse(), function next() {
|
233
|
-
for (; r.length;) {
|
234
|
-
var t = r.pop();
|
235
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
236
|
-
}
|
237
|
-
return next.done = !0, next;
|
238
|
-
};
|
239
|
-
}, e.values = values, Context.prototype = {
|
240
|
-
constructor: Context,
|
241
|
-
reset: function reset(e) {
|
242
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
243
|
-
},
|
244
|
-
stop: function stop() {
|
245
|
-
this.done = !0;
|
246
|
-
var t = this.tryEntries[0].completion;
|
247
|
-
if ("throw" === t.type) throw t.arg;
|
248
|
-
return this.rval;
|
249
|
-
},
|
250
|
-
dispatchException: function dispatchException(e) {
|
251
|
-
if (this.done) throw e;
|
252
|
-
var r = this;
|
253
|
-
function handle(n, o) {
|
254
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
255
|
-
}
|
256
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
257
|
-
var i = this.tryEntries[o],
|
258
|
-
a = i.completion;
|
259
|
-
if ("root" === i.tryLoc) return handle("end");
|
260
|
-
if (i.tryLoc <= this.prev) {
|
261
|
-
var c = n.call(i, "catchLoc"),
|
262
|
-
u = n.call(i, "finallyLoc");
|
263
|
-
if (c && u) {
|
264
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
265
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
266
|
-
} else if (c) {
|
267
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
268
|
-
} else {
|
269
|
-
if (!u) throw new Error("try statement without catch or finally");
|
270
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
271
|
-
}
|
272
|
-
}
|
273
|
-
}
|
274
|
-
},
|
275
|
-
abrupt: function abrupt(t, e) {
|
276
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
277
|
-
var o = this.tryEntries[r];
|
278
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
279
|
-
var i = o;
|
280
|
-
break;
|
281
|
-
}
|
282
|
-
}
|
283
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
284
|
-
var a = i ? i.completion : {};
|
285
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
286
|
-
},
|
287
|
-
complete: function complete(t, e) {
|
288
|
-
if ("throw" === t.type) throw t.arg;
|
289
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
290
|
-
},
|
291
|
-
finish: function finish(t) {
|
292
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
293
|
-
var r = this.tryEntries[e];
|
294
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
295
|
-
}
|
296
|
-
},
|
297
|
-
"catch": function _catch(t) {
|
298
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
299
|
-
var r = this.tryEntries[e];
|
300
|
-
if (r.tryLoc === t) {
|
301
|
-
var n = r.completion;
|
302
|
-
if ("throw" === n.type) {
|
303
|
-
var o = n.arg;
|
304
|
-
resetTryEntry(r);
|
305
|
-
}
|
306
|
-
return o;
|
307
|
-
}
|
308
|
-
}
|
309
|
-
throw new Error("illegal catch attempt");
|
310
|
-
},
|
311
|
-
delegateYield: function delegateYield(e, r, n) {
|
312
|
-
return this.delegate = {
|
313
|
-
iterator: values(e),
|
314
|
-
resultName: r,
|
315
|
-
nextLoc: n
|
316
|
-
}, "next" === this.method && (this.arg = t), y;
|
317
|
-
}
|
318
|
-
}, e;
|
319
|
-
}
|
320
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
321
|
-
|
322
|
-
/***/ }),
|
323
|
-
|
324
|
-
/***/ 7425:
|
325
|
-
/***/ ((module) => {
|
326
|
-
|
327
|
-
function _typeof(o) {
|
328
|
-
"@babel/helpers - typeof";
|
329
|
-
|
330
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
331
|
-
return typeof o;
|
332
|
-
} : function (o) {
|
333
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
334
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
335
|
-
}
|
336
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
337
|
-
|
338
|
-
/***/ }),
|
339
|
-
|
340
|
-
/***/ 2841:
|
341
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
342
|
-
|
343
|
-
// TODO(Babel 8): Remove this file.
|
344
|
-
|
345
|
-
var runtime = __webpack_require__(7609)();
|
346
|
-
module.exports = runtime;
|
347
|
-
|
348
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
349
|
-
try {
|
350
|
-
regeneratorRuntime = runtime;
|
351
|
-
} catch (accidentalStrictMode) {
|
352
|
-
if (typeof globalThis === "object") {
|
353
|
-
globalThis.regeneratorRuntime = runtime;
|
354
|
-
} else {
|
355
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
356
|
-
}
|
357
|
-
}
|
358
|
-
|
359
|
-
|
360
|
-
/***/ })
|
361
|
-
|
362
|
-
/******/ });
|
363
|
-
/************************************************************************/
|
364
|
-
/******/ // The module cache
|
365
|
-
/******/ var __webpack_module_cache__ = {};
|
366
|
-
/******/
|
367
|
-
/******/ // The require function
|
368
|
-
/******/ function __webpack_require__(moduleId) {
|
369
|
-
/******/ // Check if module is in cache
|
370
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
371
|
-
/******/ if (cachedModule !== undefined) {
|
372
|
-
/******/ return cachedModule.exports;
|
373
|
-
/******/ }
|
374
|
-
/******/ // Create a new module (and put it into the cache)
|
375
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
376
|
-
/******/ // no module.id needed
|
377
|
-
/******/ // no module.loaded needed
|
378
|
-
/******/ exports: {}
|
379
|
-
/******/ };
|
380
|
-
/******/
|
381
|
-
/******/ // Execute the module function
|
382
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
383
|
-
/******/
|
384
|
-
/******/ // Return the exports of the module
|
385
|
-
/******/ return module.exports;
|
386
|
-
/******/ }
|
12
|
+
/******/ // The require scope
|
13
|
+
/******/ var __webpack_require__ = {};
|
387
14
|
/******/
|
388
15
|
/************************************************************************/
|
389
|
-
/******/ /* webpack/runtime/compat get default export */
|
390
|
-
/******/ (() => {
|
391
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
392
|
-
/******/ __webpack_require__.n = (module) => {
|
393
|
-
/******/ var getter = module && module.__esModule ?
|
394
|
-
/******/ () => (module['default']) :
|
395
|
-
/******/ () => (module);
|
396
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
397
|
-
/******/ return getter;
|
398
|
-
/******/ };
|
399
|
-
/******/ })();
|
400
|
-
/******/
|
401
16
|
/******/ /* webpack/runtime/define property getters */
|
402
17
|
/******/ (() => {
|
403
18
|
/******/ // define getter functions for harmony exports
|
@@ -417,8 +32,6 @@ try {
|
|
417
32
|
/******/
|
418
33
|
/************************************************************************/
|
419
34
|
var __webpack_exports__ = {};
|
420
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
421
|
-
(() => {
|
422
35
|
|
423
36
|
// EXPORTS
|
424
37
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -439,6 +52,7 @@ function _typeof(o) {
|
|
439
52
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
440
53
|
}, _typeof(o);
|
441
54
|
}
|
55
|
+
|
442
56
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
443
57
|
|
444
58
|
function toPrimitive(t, r) {
|
@@ -451,67 +65,57 @@ function toPrimitive(t, r) {
|
|
451
65
|
}
|
452
66
|
return ("string" === r ? String : Number)(t);
|
453
67
|
}
|
68
|
+
|
454
69
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
455
70
|
|
456
71
|
|
457
72
|
function toPropertyKey(t) {
|
458
73
|
var i = toPrimitive(t, "string");
|
459
|
-
return "symbol" == _typeof(i) ? i :
|
74
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
460
75
|
}
|
76
|
+
|
461
77
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
462
78
|
|
463
|
-
function _defineProperty(
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
writable: true
|
471
|
-
});
|
472
|
-
} else {
|
473
|
-
obj[key] = value;
|
474
|
-
}
|
475
|
-
return obj;
|
79
|
+
function _defineProperty(e, r, t) {
|
80
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
81
|
+
value: t,
|
82
|
+
enumerable: !0,
|
83
|
+
configurable: !0,
|
84
|
+
writable: !0
|
85
|
+
}) : e[r] = t, e;
|
476
86
|
}
|
87
|
+
|
477
88
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
478
|
-
function asyncGeneratorStep(
|
89
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
479
90
|
try {
|
480
|
-
var
|
481
|
-
|
482
|
-
} catch (
|
483
|
-
|
484
|
-
return;
|
485
|
-
}
|
486
|
-
if (info.done) {
|
487
|
-
resolve(value);
|
488
|
-
} else {
|
489
|
-
Promise.resolve(value).then(_next, _throw);
|
91
|
+
var i = n[a](c),
|
92
|
+
u = i.value;
|
93
|
+
} catch (n) {
|
94
|
+
return void e(n);
|
490
95
|
}
|
96
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
491
97
|
}
|
492
|
-
function _asyncToGenerator(
|
98
|
+
function _asyncToGenerator(n) {
|
493
99
|
return function () {
|
494
|
-
var
|
495
|
-
|
496
|
-
return new Promise(function (
|
497
|
-
var
|
498
|
-
function _next(
|
499
|
-
asyncGeneratorStep(
|
100
|
+
var t = this,
|
101
|
+
e = arguments;
|
102
|
+
return new Promise(function (r, o) {
|
103
|
+
var a = n.apply(t, e);
|
104
|
+
function _next(n) {
|
105
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
500
106
|
}
|
501
|
-
function _throw(
|
502
|
-
asyncGeneratorStep(
|
107
|
+
function _throw(n) {
|
108
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
503
109
|
}
|
504
|
-
_next(
|
110
|
+
_next(void 0);
|
505
111
|
});
|
506
112
|
};
|
507
113
|
}
|
114
|
+
|
508
115
|
;// CONCATENATED MODULE: external "vue"
|
509
116
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
510
117
|
var external_vue_y = x => () => x
|
511
118
|
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 });
|
512
|
-
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
513
|
-
var regenerator = __webpack_require__(2841);
|
514
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
515
119
|
;// CONCATENATED MODULE: external "../button"
|
516
120
|
var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
517
121
|
var button_y = x => () => x
|
@@ -614,7 +218,8 @@ var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
|
|
614
218
|
|
615
219
|
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; }
|
616
220
|
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; }
|
617
|
-
|
221
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
222
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
|
618
223
|
/*
|
619
224
|
* Tencent is pleased to support the open source community by making
|
620
225
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -688,8 +293,6 @@ function _isSlot(s) {
|
|
688
293
|
var instance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
689
294
|
var isMoveing = (0,external_vue_namespaceObject.ref)(false);
|
690
295
|
var positionData = (0,external_vue_namespaceObject.reactive)({
|
691
|
-
positionX: 0,
|
692
|
-
positionY: 0,
|
693
296
|
moveStyle: {
|
694
297
|
top: '50%',
|
695
298
|
left: '50%'
|
@@ -721,28 +324,27 @@ function _isSlot(s) {
|
|
721
324
|
});
|
722
325
|
// 关闭弹框
|
723
326
|
var handleClose = /*#__PURE__*/function () {
|
724
|
-
var _ref2 = _asyncToGenerator(
|
327
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
725
328
|
var shouldClose;
|
726
|
-
return
|
727
|
-
while (1) switch (_context.
|
329
|
+
return _regenerator().w(function (_context) {
|
330
|
+
while (1) switch (_context.n) {
|
728
331
|
case 0:
|
729
332
|
shouldClose = true;
|
730
333
|
if (!(typeof props.beforeClose === 'function')) {
|
731
|
-
_context.
|
334
|
+
_context.n = 2;
|
732
335
|
break;
|
733
336
|
}
|
734
|
-
_context.
|
337
|
+
_context.n = 1;
|
735
338
|
return props.beforeClose();
|
736
|
-
case
|
737
|
-
shouldClose = _context.
|
738
|
-
case
|
339
|
+
case 1:
|
340
|
+
shouldClose = _context.v;
|
341
|
+
case 2:
|
739
342
|
if (shouldClose) {
|
740
343
|
emit('update:isShow', false);
|
741
344
|
emit('closed');
|
742
345
|
}
|
743
|
-
case
|
744
|
-
|
745
|
-
return _context.stop();
|
346
|
+
case 3:
|
347
|
+
return _context.a(2);
|
746
348
|
}
|
747
349
|
}, _callee);
|
748
350
|
}));
|
@@ -776,38 +378,17 @@ function _isSlot(s) {
|
|
776
378
|
if (!props.draggable) {
|
777
379
|
return false;
|
778
380
|
}
|
779
|
-
var
|
780
|
-
var
|
781
|
-
var
|
782
|
-
var disX;
|
783
|
-
var disY;
|
784
|
-
if (positionData.positionX !== 0 && positionData.positionY !== 0) {
|
785
|
-
disX = e.clientX - positionData.positionX;
|
786
|
-
disY = e.clientY - positionData.positionY;
|
787
|
-
} else {
|
788
|
-
disX = e.clientX - odiv.offsetLeft;
|
789
|
-
disY = e.clientY - odiv.offsetTop;
|
790
|
-
}
|
381
|
+
var clientRect = e.currentTarget.parentNode.parentNode.getBoundingClientRect();
|
382
|
+
var boxLeft = clientRect.left + clientRect.width / 2;
|
383
|
+
var boxTop = clientRect.top + clientRect.height / 2;
|
791
384
|
isMoveing.value = true;
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
var
|
796
|
-
var
|
797
|
-
|
798
|
-
|
799
|
-
} else if (boxLeft / 2 + left <= 0) {
|
800
|
-
left = -boxLeft / 2;
|
801
|
-
}
|
802
|
-
if (boxTop / 2 - top <= 0) {
|
803
|
-
top = boxTop / 2;
|
804
|
-
} else if (boxTop / 2 + top <= 0) {
|
805
|
-
top = -boxTop / 2;
|
806
|
-
}
|
807
|
-
positionData.positionX = left;
|
808
|
-
positionData.positionY = top;
|
809
|
-
positionData.moveStyle.left = "calc(50% + ".concat(left, "px)");
|
810
|
-
positionData.moveStyle.top = "calc(50% + ".concat(top, "px)");
|
385
|
+
var startX = e.clientX;
|
386
|
+
var startY = e.clientY;
|
387
|
+
document.onmousemove = function (evt) {
|
388
|
+
var diffX = evt.clientX - startX;
|
389
|
+
var diffY = evt.clientY - startY;
|
390
|
+
positionData.moveStyle.left = "".concat(boxLeft + diffX, "px");
|
391
|
+
positionData.moveStyle.top = "".concat(boxTop + diffY, "px");
|
811
392
|
};
|
812
393
|
document.onmouseup = function () {
|
813
394
|
document.onmousemove = null;
|
@@ -979,7 +560,5 @@ function _isSlot(s) {
|
|
979
560
|
|
980
561
|
var BkDialog = (0,shared_namespaceObject.withInstall)(dialog);
|
981
562
|
/* harmony default export */ const src = (BkDialog);
|
982
|
-
})();
|
983
|
-
|
984
563
|
var __webpack_exports__default = __webpack_exports__["default"];
|
985
564
|
export { __webpack_exports__default as default };
|