bkui-vue 2.0.2-beta.47 → 2.0.2-beta.49
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 +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
package/lib/steps/index.js
CHANGED
@@ -5,10 +5,395 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
8
|
-
/******/
|
9
|
-
|
8
|
+
/******/ var __webpack_modules__ = ({
|
9
|
+
|
10
|
+
/***/ 7609:
|
11
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
12
|
+
|
13
|
+
var _typeof = (__webpack_require__(7425)["default"]);
|
14
|
+
function _regeneratorRuntime() {
|
15
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
16
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
17
|
+
return e;
|
18
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
19
|
+
var t,
|
20
|
+
e = {},
|
21
|
+
r = Object.prototype,
|
22
|
+
n = r.hasOwnProperty,
|
23
|
+
o = Object.defineProperty || function (t, e, r) {
|
24
|
+
t[e] = r.value;
|
25
|
+
},
|
26
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
27
|
+
a = i.iterator || "@@iterator",
|
28
|
+
c = i.asyncIterator || "@@asyncIterator",
|
29
|
+
u = i.toStringTag || "@@toStringTag";
|
30
|
+
function define(t, e, r) {
|
31
|
+
return Object.defineProperty(t, e, {
|
32
|
+
value: r,
|
33
|
+
enumerable: !0,
|
34
|
+
configurable: !0,
|
35
|
+
writable: !0
|
36
|
+
}), t[e];
|
37
|
+
}
|
38
|
+
try {
|
39
|
+
define({}, "");
|
40
|
+
} catch (t) {
|
41
|
+
define = function define(t, e, r) {
|
42
|
+
return t[e] = r;
|
43
|
+
};
|
44
|
+
}
|
45
|
+
function wrap(t, e, r, n) {
|
46
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
47
|
+
a = Object.create(i.prototype),
|
48
|
+
c = new Context(n || []);
|
49
|
+
return o(a, "_invoke", {
|
50
|
+
value: makeInvokeMethod(t, r, c)
|
51
|
+
}), a;
|
52
|
+
}
|
53
|
+
function tryCatch(t, e, r) {
|
54
|
+
try {
|
55
|
+
return {
|
56
|
+
type: "normal",
|
57
|
+
arg: t.call(e, r)
|
58
|
+
};
|
59
|
+
} catch (t) {
|
60
|
+
return {
|
61
|
+
type: "throw",
|
62
|
+
arg: t
|
63
|
+
};
|
64
|
+
}
|
65
|
+
}
|
66
|
+
e.wrap = wrap;
|
67
|
+
var h = "suspendedStart",
|
68
|
+
l = "suspendedYield",
|
69
|
+
f = "executing",
|
70
|
+
s = "completed",
|
71
|
+
y = {};
|
72
|
+
function Generator() {}
|
73
|
+
function GeneratorFunction() {}
|
74
|
+
function GeneratorFunctionPrototype() {}
|
75
|
+
var p = {};
|
76
|
+
define(p, a, function () {
|
77
|
+
return this;
|
78
|
+
});
|
79
|
+
var d = Object.getPrototypeOf,
|
80
|
+
v = d && d(d(values([])));
|
81
|
+
v && v !== r && n.call(v, a) && (p = v);
|
82
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
83
|
+
function defineIteratorMethods(t) {
|
84
|
+
["next", "throw", "return"].forEach(function (e) {
|
85
|
+
define(t, e, function (t) {
|
86
|
+
return this._invoke(e, t);
|
87
|
+
});
|
88
|
+
});
|
89
|
+
}
|
90
|
+
function AsyncIterator(t, e) {
|
91
|
+
function invoke(r, o, i, a) {
|
92
|
+
var c = tryCatch(t[r], t, o);
|
93
|
+
if ("throw" !== c.type) {
|
94
|
+
var u = c.arg,
|
95
|
+
h = u.value;
|
96
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
97
|
+
invoke("next", t, i, a);
|
98
|
+
}, function (t) {
|
99
|
+
invoke("throw", t, i, a);
|
100
|
+
}) : e.resolve(h).then(function (t) {
|
101
|
+
u.value = t, i(u);
|
102
|
+
}, function (t) {
|
103
|
+
return invoke("throw", t, i, a);
|
104
|
+
});
|
105
|
+
}
|
106
|
+
a(c.arg);
|
107
|
+
}
|
108
|
+
var r;
|
109
|
+
o(this, "_invoke", {
|
110
|
+
value: function value(t, n) {
|
111
|
+
function callInvokeWithMethodAndArg() {
|
112
|
+
return new e(function (e, r) {
|
113
|
+
invoke(t, n, e, r);
|
114
|
+
});
|
115
|
+
}
|
116
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
117
|
+
}
|
118
|
+
});
|
119
|
+
}
|
120
|
+
function makeInvokeMethod(e, r, n) {
|
121
|
+
var o = h;
|
122
|
+
return function (i, a) {
|
123
|
+
if (o === f) throw new Error("Generator is already running");
|
124
|
+
if (o === s) {
|
125
|
+
if ("throw" === i) throw a;
|
126
|
+
return {
|
127
|
+
value: t,
|
128
|
+
done: !0
|
129
|
+
};
|
130
|
+
}
|
131
|
+
for (n.method = i, n.arg = a;;) {
|
132
|
+
var c = n.delegate;
|
133
|
+
if (c) {
|
134
|
+
var u = maybeInvokeDelegate(c, n);
|
135
|
+
if (u) {
|
136
|
+
if (u === y) continue;
|
137
|
+
return u;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
141
|
+
if (o === h) throw o = s, n.arg;
|
142
|
+
n.dispatchException(n.arg);
|
143
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
144
|
+
o = f;
|
145
|
+
var p = tryCatch(e, r, n);
|
146
|
+
if ("normal" === p.type) {
|
147
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
148
|
+
return {
|
149
|
+
value: p.arg,
|
150
|
+
done: n.done
|
151
|
+
};
|
152
|
+
}
|
153
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
154
|
+
}
|
155
|
+
};
|
156
|
+
}
|
157
|
+
function maybeInvokeDelegate(e, r) {
|
158
|
+
var n = r.method,
|
159
|
+
o = e.iterator[n];
|
160
|
+
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;
|
161
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
162
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
163
|
+
var a = i.arg;
|
164
|
+
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);
|
165
|
+
}
|
166
|
+
function pushTryEntry(t) {
|
167
|
+
var e = {
|
168
|
+
tryLoc: t[0]
|
169
|
+
};
|
170
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
171
|
+
}
|
172
|
+
function resetTryEntry(t) {
|
173
|
+
var e = t.completion || {};
|
174
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
175
|
+
}
|
176
|
+
function Context(t) {
|
177
|
+
this.tryEntries = [{
|
178
|
+
tryLoc: "root"
|
179
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
180
|
+
}
|
181
|
+
function values(e) {
|
182
|
+
if (e || "" === e) {
|
183
|
+
var r = e[a];
|
184
|
+
if (r) return r.call(e);
|
185
|
+
if ("function" == typeof e.next) return e;
|
186
|
+
if (!isNaN(e.length)) {
|
187
|
+
var o = -1,
|
188
|
+
i = function next() {
|
189
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
190
|
+
return next.value = t, next.done = !0, next;
|
191
|
+
};
|
192
|
+
return i.next = i;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
196
|
+
}
|
197
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
198
|
+
value: GeneratorFunctionPrototype,
|
199
|
+
configurable: !0
|
200
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
201
|
+
value: GeneratorFunction,
|
202
|
+
configurable: !0
|
203
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
204
|
+
var e = "function" == typeof t && t.constructor;
|
205
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
206
|
+
}, e.mark = function (t) {
|
207
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
208
|
+
}, e.awrap = function (t) {
|
209
|
+
return {
|
210
|
+
__await: t
|
211
|
+
};
|
212
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
213
|
+
return this;
|
214
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
215
|
+
void 0 === i && (i = Promise);
|
216
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
217
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
218
|
+
return t.done ? t.value : a.next();
|
219
|
+
});
|
220
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
221
|
+
return this;
|
222
|
+
}), define(g, "toString", function () {
|
223
|
+
return "[object Generator]";
|
224
|
+
}), e.keys = function (t) {
|
225
|
+
var e = Object(t),
|
226
|
+
r = [];
|
227
|
+
for (var n in e) r.push(n);
|
228
|
+
return r.reverse(), function next() {
|
229
|
+
for (; r.length;) {
|
230
|
+
var t = r.pop();
|
231
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
232
|
+
}
|
233
|
+
return next.done = !0, next;
|
234
|
+
};
|
235
|
+
}, e.values = values, Context.prototype = {
|
236
|
+
constructor: Context,
|
237
|
+
reset: function reset(e) {
|
238
|
+
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);
|
239
|
+
},
|
240
|
+
stop: function stop() {
|
241
|
+
this.done = !0;
|
242
|
+
var t = this.tryEntries[0].completion;
|
243
|
+
if ("throw" === t.type) throw t.arg;
|
244
|
+
return this.rval;
|
245
|
+
},
|
246
|
+
dispatchException: function dispatchException(e) {
|
247
|
+
if (this.done) throw e;
|
248
|
+
var r = this;
|
249
|
+
function handle(n, o) {
|
250
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
251
|
+
}
|
252
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
253
|
+
var i = this.tryEntries[o],
|
254
|
+
a = i.completion;
|
255
|
+
if ("root" === i.tryLoc) return handle("end");
|
256
|
+
if (i.tryLoc <= this.prev) {
|
257
|
+
var c = n.call(i, "catchLoc"),
|
258
|
+
u = n.call(i, "finallyLoc");
|
259
|
+
if (c && u) {
|
260
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
261
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
262
|
+
} else if (c) {
|
263
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
|
+
} else {
|
265
|
+
if (!u) throw new Error("try statement without catch or finally");
|
266
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
},
|
271
|
+
abrupt: function abrupt(t, e) {
|
272
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
273
|
+
var o = this.tryEntries[r];
|
274
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
275
|
+
var i = o;
|
276
|
+
break;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
280
|
+
var a = i ? i.completion : {};
|
281
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
282
|
+
},
|
283
|
+
complete: function complete(t, e) {
|
284
|
+
if ("throw" === t.type) throw t.arg;
|
285
|
+
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;
|
286
|
+
},
|
287
|
+
finish: function finish(t) {
|
288
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
289
|
+
var r = this.tryEntries[e];
|
290
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"catch": function _catch(t) {
|
294
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
295
|
+
var r = this.tryEntries[e];
|
296
|
+
if (r.tryLoc === t) {
|
297
|
+
var n = r.completion;
|
298
|
+
if ("throw" === n.type) {
|
299
|
+
var o = n.arg;
|
300
|
+
resetTryEntry(r);
|
301
|
+
}
|
302
|
+
return o;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
throw new Error("illegal catch attempt");
|
306
|
+
},
|
307
|
+
delegateYield: function delegateYield(e, r, n) {
|
308
|
+
return this.delegate = {
|
309
|
+
iterator: values(e),
|
310
|
+
resultName: r,
|
311
|
+
nextLoc: n
|
312
|
+
}, "next" === this.method && (this.arg = t), y;
|
313
|
+
}
|
314
|
+
}, e;
|
315
|
+
}
|
316
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
317
|
+
|
318
|
+
/***/ }),
|
319
|
+
|
320
|
+
/***/ 7425:
|
321
|
+
/***/ ((module) => {
|
322
|
+
|
323
|
+
function _typeof(o) {
|
324
|
+
"@babel/helpers - typeof";
|
325
|
+
|
326
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
327
|
+
return typeof o;
|
328
|
+
} : function (o) {
|
329
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
330
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
331
|
+
}
|
332
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
333
|
+
|
334
|
+
/***/ }),
|
335
|
+
|
336
|
+
/***/ 2841:
|
337
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
338
|
+
|
339
|
+
// TODO(Babel 8): Remove this file.
|
340
|
+
|
341
|
+
var runtime = __webpack_require__(7609)();
|
342
|
+
module.exports = runtime;
|
343
|
+
|
344
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
345
|
+
try {
|
346
|
+
regeneratorRuntime = runtime;
|
347
|
+
} catch (accidentalStrictMode) {
|
348
|
+
if (typeof globalThis === "object") {
|
349
|
+
globalThis.regeneratorRuntime = runtime;
|
350
|
+
} else {
|
351
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
|
356
|
+
/***/ })
|
357
|
+
|
358
|
+
/******/ });
|
359
|
+
/************************************************************************/
|
360
|
+
/******/ // The module cache
|
361
|
+
/******/ var __webpack_module_cache__ = {};
|
362
|
+
/******/
|
363
|
+
/******/ // The require function
|
364
|
+
/******/ function __webpack_require__(moduleId) {
|
365
|
+
/******/ // Check if module is in cache
|
366
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
367
|
+
/******/ if (cachedModule !== undefined) {
|
368
|
+
/******/ return cachedModule.exports;
|
369
|
+
/******/ }
|
370
|
+
/******/ // Create a new module (and put it into the cache)
|
371
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
372
|
+
/******/ // no module.id needed
|
373
|
+
/******/ // no module.loaded needed
|
374
|
+
/******/ exports: {}
|
375
|
+
/******/ };
|
376
|
+
/******/
|
377
|
+
/******/ // Execute the module function
|
378
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
379
|
+
/******/
|
380
|
+
/******/ // Return the exports of the module
|
381
|
+
/******/ return module.exports;
|
382
|
+
/******/ }
|
10
383
|
/******/
|
11
384
|
/************************************************************************/
|
385
|
+
/******/ /* webpack/runtime/compat get default export */
|
386
|
+
/******/ (() => {
|
387
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
388
|
+
/******/ __webpack_require__.n = (module) => {
|
389
|
+
/******/ var getter = module && module.__esModule ?
|
390
|
+
/******/ () => (module['default']) :
|
391
|
+
/******/ () => (module);
|
392
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
393
|
+
/******/ return getter;
|
394
|
+
/******/ };
|
395
|
+
/******/ })();
|
396
|
+
/******/
|
12
397
|
/******/ /* webpack/runtime/define property getters */
|
13
398
|
/******/ (() => {
|
14
399
|
/******/ // define getter functions for harmony exports
|
@@ -28,6 +413,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon
|
|
28
413
|
/******/
|
29
414
|
/************************************************************************/
|
30
415
|
var __webpack_exports__ = {};
|
416
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
417
|
+
(() => {
|
31
418
|
|
32
419
|
// EXPORTS
|
33
420
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -48,7 +435,6 @@ function _typeof(o) {
|
|
48
435
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
49
436
|
}, _typeof(o);
|
50
437
|
}
|
51
|
-
|
52
438
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
53
439
|
|
54
440
|
function toPrimitive(t, r) {
|
@@ -61,57 +447,67 @@ function toPrimitive(t, r) {
|
|
61
447
|
}
|
62
448
|
return ("string" === r ? String : Number)(t);
|
63
449
|
}
|
64
|
-
|
65
450
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
66
451
|
|
67
452
|
|
68
453
|
function toPropertyKey(t) {
|
69
454
|
var i = toPrimitive(t, "string");
|
70
|
-
return "symbol" == _typeof(i) ? i : i
|
455
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
71
456
|
}
|
72
|
-
|
73
457
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
74
458
|
|
75
|
-
function _defineProperty(
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
459
|
+
function _defineProperty(obj, key, value) {
|
460
|
+
key = toPropertyKey(key);
|
461
|
+
if (key in obj) {
|
462
|
+
Object.defineProperty(obj, key, {
|
463
|
+
value: value,
|
464
|
+
enumerable: true,
|
465
|
+
configurable: true,
|
466
|
+
writable: true
|
467
|
+
});
|
468
|
+
} else {
|
469
|
+
obj[key] = value;
|
470
|
+
}
|
471
|
+
return obj;
|
82
472
|
}
|
83
|
-
|
84
473
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
85
|
-
function asyncGeneratorStep(
|
474
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
86
475
|
try {
|
87
|
-
var
|
88
|
-
|
89
|
-
} catch (
|
90
|
-
|
476
|
+
var info = gen[key](arg);
|
477
|
+
var value = info.value;
|
478
|
+
} catch (error) {
|
479
|
+
reject(error);
|
480
|
+
return;
|
481
|
+
}
|
482
|
+
if (info.done) {
|
483
|
+
resolve(value);
|
484
|
+
} else {
|
485
|
+
Promise.resolve(value).then(_next, _throw);
|
91
486
|
}
|
92
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
93
487
|
}
|
94
|
-
function _asyncToGenerator(
|
488
|
+
function _asyncToGenerator(fn) {
|
95
489
|
return function () {
|
96
|
-
var
|
97
|
-
|
98
|
-
return new Promise(function (
|
99
|
-
var
|
100
|
-
function _next(
|
101
|
-
asyncGeneratorStep(
|
490
|
+
var self = this,
|
491
|
+
args = arguments;
|
492
|
+
return new Promise(function (resolve, reject) {
|
493
|
+
var gen = fn.apply(self, args);
|
494
|
+
function _next(value) {
|
495
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
102
496
|
}
|
103
|
-
function _throw(
|
104
|
-
asyncGeneratorStep(
|
497
|
+
function _throw(err) {
|
498
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
105
499
|
}
|
106
|
-
_next(
|
500
|
+
_next(undefined);
|
107
501
|
});
|
108
502
|
};
|
109
503
|
}
|
110
|
-
|
111
504
|
;// CONCATENATED MODULE: external "vue"
|
112
505
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
113
506
|
var external_vue_y = x => () => x
|
114
507
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
508
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
509
|
+
var regenerator = __webpack_require__(2841);
|
510
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
115
511
|
;// CONCATENATED MODULE: external "vue-types"
|
116
512
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
117
513
|
var external_vue_types_y = x => () => x
|
@@ -128,8 +524,7 @@ const icon_namespaceObject = icon_x({ ["Circle"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
128
524
|
|
129
525
|
|
130
526
|
|
131
|
-
|
132
|
-
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); }
|
527
|
+
|
133
528
|
/**
|
134
529
|
* Tencent is pleased to support the open source community by making
|
135
530
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -235,34 +630,34 @@ var stepsProps = {
|
|
235
630
|
// init();
|
236
631
|
// }, { deep: true });
|
237
632
|
var jumpTo = /*#__PURE__*/function () {
|
238
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
239
|
-
|
240
|
-
|
241
|
-
while (1) switch (_context2.n) {
|
633
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(index) {
|
634
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
635
|
+
while (1) switch (_context2.prev = _context2.next) {
|
242
636
|
case 0:
|
243
|
-
_context2.
|
637
|
+
_context2.prev = 0;
|
244
638
|
if (!(props.controllable && index !== props.curStep)) {
|
245
|
-
_context2.
|
639
|
+
_context2.next = 7;
|
246
640
|
break;
|
247
641
|
}
|
248
642
|
if (!(typeof props.beforeChange === 'function')) {
|
249
|
-
_context2.
|
643
|
+
_context2.next = 5;
|
250
644
|
break;
|
251
645
|
}
|
252
|
-
_context2.
|
253
|
-
return new Promise(/*#__PURE__*/function () {
|
254
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
646
|
+
_context2.next = 5;
|
647
|
+
return new Promise( /*#__PURE__*/function () {
|
648
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
255
649
|
var confirmed;
|
256
|
-
return
|
257
|
-
while (1) switch (_context.
|
650
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
651
|
+
while (1) switch (_context.prev = _context.next) {
|
258
652
|
case 0:
|
259
|
-
_context.
|
653
|
+
_context.next = 2;
|
260
654
|
return props.beforeChange(index);
|
261
|
-
case 1:
|
262
|
-
confirmed = _context.v;
|
263
|
-
confirmed ? resolve(confirmed) : reject(confirmed);
|
264
655
|
case 2:
|
265
|
-
|
656
|
+
confirmed = _context.sent;
|
657
|
+
confirmed ? resolve(confirmed) : reject(confirmed);
|
658
|
+
case 4:
|
659
|
+
case "end":
|
660
|
+
return _context.stop();
|
266
661
|
}
|
267
662
|
}, _callee);
|
268
663
|
}));
|
@@ -270,20 +665,21 @@ var stepsProps = {
|
|
270
665
|
return _ref3.apply(this, arguments);
|
271
666
|
};
|
272
667
|
}());
|
273
|
-
case
|
668
|
+
case 5:
|
274
669
|
emit('update:curStep', index);
|
275
670
|
emit('click', index);
|
276
|
-
case
|
277
|
-
_context2.
|
671
|
+
case 7:
|
672
|
+
_context2.next = 12;
|
278
673
|
break;
|
279
|
-
case
|
280
|
-
_context2.
|
281
|
-
|
282
|
-
console.warn(
|
283
|
-
case
|
284
|
-
|
674
|
+
case 9:
|
675
|
+
_context2.prev = 9;
|
676
|
+
_context2.t0 = _context2["catch"](0);
|
677
|
+
console.warn(_context2.t0);
|
678
|
+
case 12:
|
679
|
+
case "end":
|
680
|
+
return _context2.stop();
|
285
681
|
}
|
286
|
-
}, _callee2, null, [[0,
|
682
|
+
}, _callee2, null, [[0, 9]]);
|
287
683
|
}));
|
288
684
|
return function jumpTo(_x) {
|
289
685
|
return _ref2.apply(this, arguments);
|
@@ -423,5 +819,7 @@ var stepsProps = {
|
|
423
819
|
|
424
820
|
var BkSteps = (0,shared_namespaceObject.withInstall)(steps);
|
425
821
|
/* harmony default export */ const src = (BkSteps);
|
822
|
+
})();
|
823
|
+
|
426
824
|
var __webpack_exports__default = __webpack_exports__["default"];
|
427
825
|
export { __webpack_exports__default as default };
|
package/lib/swiper/index.js
CHANGED
@@ -46,7 +46,6 @@ function _typeof(o) {
|
|
46
46
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
47
47
|
}, _typeof(o);
|
48
48
|
}
|
49
|
-
|
50
49
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
51
50
|
|
52
51
|
function toPrimitive(t, r) {
|
@@ -59,26 +58,29 @@ function toPrimitive(t, r) {
|
|
59
58
|
}
|
60
59
|
return ("string" === r ? String : Number)(t);
|
61
60
|
}
|
62
|
-
|
63
61
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
64
62
|
|
65
63
|
|
66
64
|
function toPropertyKey(t) {
|
67
65
|
var i = toPrimitive(t, "string");
|
68
|
-
return "symbol" == _typeof(i) ? i : i
|
66
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
69
67
|
}
|
70
|
-
|
71
68
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
72
69
|
|
73
|
-
function _defineProperty(
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
70
|
+
function _defineProperty(obj, key, value) {
|
71
|
+
key = toPropertyKey(key);
|
72
|
+
if (key in obj) {
|
73
|
+
Object.defineProperty(obj, key, {
|
74
|
+
value: value,
|
75
|
+
enumerable: true,
|
76
|
+
configurable: true,
|
77
|
+
writable: true
|
78
|
+
});
|
79
|
+
} else {
|
80
|
+
obj[key] = value;
|
81
|
+
}
|
82
|
+
return obj;
|
80
83
|
}
|
81
|
-
|
82
84
|
;// CONCATENATED MODULE: external "vue"
|
83
85
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
84
86
|
var external_vue_y = x => () => x
|
@@ -195,11 +197,11 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
195
197
|
var getRenderIndexStyle = function getRenderIndexStyle(index) {
|
196
198
|
return _defineProperty({}, "".concat(resolveClassName('current-index')), swiperIndex.value === index);
|
197
199
|
};
|
198
|
-
var
|
200
|
+
var startLoop = function startLoop() {
|
199
201
|
if (isLoop.value) {
|
200
202
|
loopId.value = window.setTimeout(function () {
|
201
203
|
changeIndex(swiperIndex.value + 1);
|
202
|
-
|
204
|
+
startLoop();
|
203
205
|
}, loopTime.value);
|
204
206
|
}
|
205
207
|
};
|
@@ -247,7 +249,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
247
249
|
(0,external_vue_namespaceObject.watch)([height, width], calcSize);
|
248
250
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
249
251
|
calcSize();
|
250
|
-
|
252
|
+
startLoop();
|
251
253
|
watchParentSizeChange();
|
252
254
|
});
|
253
255
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|