bkui-vue 2.0.2-beta.44 → 2.0.2-beta.46
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/License.txt +1 -2
- package/dist/index.cjs.js +47 -42
- package/dist/index.esm.js +7199 -7009
- package/dist/index.umd.js +50 -45
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +1 -1
- package/dist/locale/ja-jp.esm.js.map +1 -1
- package/dist/locale/ja-jp.umd.js +1 -1
- package/dist/locale/ja-jp.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/lib/affix/index.js +14 -16
- package/lib/alert/index.js +14 -16
- package/lib/animate-number/index.js +13 -14
- package/lib/backtop/index.js +12 -13
- package/lib/badge/index.js +14 -16
- package/lib/breadcrumb/index.js +15 -17
- package/lib/button/button.d.ts +1 -1
- package/lib/button/index.js +15 -17
- package/lib/card/index.js +14 -16
- package/lib/cascader/index.js +104 -111
- package/lib/checkbox/index.js +41 -39
- package/lib/code-diff/index.js +1173 -677
- package/lib/collapse/index.js +47 -45
- package/lib/collapse-transition/index.js +5 -6
- package/lib/color-picker/index.js +72 -73
- package/lib/components.js +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +18 -20
- package/lib/container/index.js +26 -30
- package/lib/date-picker/index.js +79 -72
- package/lib/dialog/index.js +56 -477
- package/lib/directives/index.js +42 -39
- package/lib/dist.index.js +1 -1
- package/lib/divider/index.js +5 -6
- package/lib/dropdown/index.js +21 -25
- package/lib/exception/index.js +16 -19
- package/lib/fixed-navbar/index.js +4 -5
- package/lib/form/index.js +48 -45
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +30 -37
- package/lib/icon/angle-double-left-line.js +30 -37
- package/lib/icon/angle-double-left.js +30 -37
- package/lib/icon/angle-double-right-line.js +30 -37
- package/lib/icon/angle-double-right.js +30 -37
- package/lib/icon/angle-double-up-line.js +30 -37
- package/lib/icon/angle-down-fill.js +30 -37
- package/lib/icon/angle-down-line.js +30 -37
- package/lib/icon/angle-down.js +30 -37
- package/lib/icon/angle-left.js +30 -37
- package/lib/icon/angle-right.js +30 -37
- package/lib/icon/angle-up-fill.js +30 -37
- package/lib/icon/angle-up.js +30 -37
- package/lib/icon/archive-fill.js +30 -37
- package/lib/icon/arrows-left.js +30 -37
- package/lib/icon/arrows-right.js +30 -37
- package/lib/icon/assistant.js +30 -37
- package/lib/icon/audio-fill.js +30 -37
- package/lib/icon/bk.js +30 -37
- package/lib/icon/circle.js +30 -37
- package/lib/icon/close-line.js +30 -37
- package/lib/icon/close.js +30 -37
- package/lib/icon/code.js +30 -37
- package/lib/icon/cog-shape.js +30 -37
- package/lib/icon/collapse-left.js +30 -37
- package/lib/icon/copy-shape.js +30 -37
- package/lib/icon/copy.js +30 -37
- package/lib/icon/data-shape.js +30 -37
- package/lib/icon/del.js +30 -37
- package/lib/icon/doc-fill.js +30 -37
- package/lib/icon/done.js +30 -37
- package/lib/icon/down-shape.js +30 -37
- package/lib/icon/down-small.js +30 -37
- package/lib/icon/edit-line.js +30 -37
- package/lib/icon/ellipsis.js +30 -37
- package/lib/icon/enlarge-line.js +30 -37
- package/lib/icon/error.js +30 -37
- package/lib/icon/excel-fill.js +30 -37
- package/lib/icon/exclamation-circle-shape.js +30 -37
- package/lib/icon/eye.js +30 -37
- package/lib/icon/filliscreen-line.js +30 -37
- package/lib/icon/fix-line.js +30 -37
- package/lib/icon/fix-shape.js +30 -37
- package/lib/icon/folder-open.js +30 -37
- package/lib/icon/folder-shape-open.js +30 -37
- package/lib/icon/folder-shape.js +30 -37
- package/lib/icon/folder.js +30 -37
- package/lib/icon/funnel.js +30 -37
- package/lib/icon/grag-fill.js +30 -37
- package/lib/icon/help-document-fill.js +30 -37
- package/lib/icon/help-fill.js +30 -37
- package/lib/icon/help.js +30 -37
- package/lib/icon/image-fill.js +30 -37
- package/lib/icon/img-error.js +30 -37
- package/lib/icon/img-placehoulder.js +30 -37
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +30 -37
- package/lib/icon/info.js +30 -37
- package/lib/icon/left-shape.js +30 -37
- package/lib/icon/left-turn-line.js +30 -37
- package/lib/icon/loading.js +30 -37
- package/lib/icon/narrow-line.js +30 -37
- package/lib/icon/original.js +30 -37
- package/lib/icon/pdf-fill.js +30 -37
- package/lib/icon/play-shape.js +30 -37
- package/lib/icon/plus.js +30 -37
- package/lib/icon/ppt-fill.js +30 -37
- package/lib/icon/qq.js +30 -37
- package/lib/icon/right-shape.js +30 -37
- package/lib/icon/right-turn-line.js +30 -37
- package/lib/icon/search.js +30 -37
- package/lib/icon/share.js +30 -37
- package/lib/icon/spinner.js +30 -37
- package/lib/icon/success.js +30 -37
- package/lib/icon/switcher-loading.js +30 -37
- package/lib/icon/text-all.js +30 -37
- package/lib/icon/text-file.js +30 -37
- package/lib/icon/text-fill.js +30 -37
- package/lib/icon/transfer.js +30 -37
- package/lib/icon/tree-application-shape.js +30 -37
- package/lib/icon/unfull-screen.js +30 -37
- package/lib/icon/unvisible.js +30 -37
- package/lib/icon/up-shape.js +30 -37
- package/lib/icon/upload.js +30 -37
- package/lib/icon/video-fill.js +30 -37
- package/lib/icon/warn.js +30 -37
- package/lib/icon/weixin-pro.js +30 -37
- package/lib/icon/weixin.js +30 -37
- package/lib/image/index.js +57 -55
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +65 -464
- package/lib/input/index.js +70 -68
- package/lib/link/index.js +4 -4
- package/lib/loading/index.js +25 -28
- package/lib/locale/index.js +16 -16
- package/lib/menu/index.js +42 -40
- package/lib/message/index.js +37 -34
- package/lib/modal/index.js +17 -19
- package/lib/navigation/index.js +10 -12
- package/lib/notify/index.js +15 -17
- package/lib/overflow-title/index.js +12 -13
- package/lib/pagination/index.js +38 -35
- package/lib/pop-confirm/index.js +7 -8
- package/lib/popover/index.js +226 -153
- package/lib/popover2/index.js +4 -4
- package/lib/preset.js +1 -1
- package/lib/process/index.js +61 -454
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.js +20 -23
- package/lib/radio/index.js +42 -39
- package/lib/rate/index.js +15 -17
- package/lib/resize-layout/index.js +20 -22
- package/lib/scrollbar/index.js +57 -64
- package/lib/search-select/index.js +233 -606
- package/lib/select/index.js +126 -478
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +93 -105
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.js +45 -443
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +52 -449
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.js +62 -460
- package/lib/steps/steps.d.ts +1 -1
- package/lib/swiper/index.js +17 -19
- package/lib/switcher/index.js +14 -16
- package/lib/tab/index.js +50 -48
- package/lib/table/index.js +184 -533
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.js +14 -16
- package/lib/tag-input/index.js +58 -52
- package/lib/time-picker/index.js +1 -1
- package/lib/timeline/index.js +3 -2
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +26 -21
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.js +85 -78
- package/lib/upload/index.js +144 -495
- package/lib/virtual-render/index.js +54 -58
- package/lib/volar.components.d.ts +1 -1
- package/package.json +13 -2
package/lib/steps/index.js
CHANGED
@@ -5,395 +5,10 @@ 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
|
-
|
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
|
-
/******/ }
|
8
|
+
/******/ // The require scope
|
9
|
+
/******/ var __webpack_require__ = {};
|
383
10
|
/******/
|
384
11
|
/************************************************************************/
|
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
|
-
/******/
|
397
12
|
/******/ /* webpack/runtime/define property getters */
|
398
13
|
/******/ (() => {
|
399
14
|
/******/ // define getter functions for harmony exports
|
@@ -413,8 +28,6 @@ try {
|
|
413
28
|
/******/
|
414
29
|
/************************************************************************/
|
415
30
|
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
|
-
(() => {
|
418
31
|
|
419
32
|
// EXPORTS
|
420
33
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -435,6 +48,7 @@ function _typeof(o) {
|
|
435
48
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
436
49
|
}, _typeof(o);
|
437
50
|
}
|
51
|
+
|
438
52
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
439
53
|
|
440
54
|
function toPrimitive(t, r) {
|
@@ -447,67 +61,57 @@ function toPrimitive(t, r) {
|
|
447
61
|
}
|
448
62
|
return ("string" === r ? String : Number)(t);
|
449
63
|
}
|
64
|
+
|
450
65
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
451
66
|
|
452
67
|
|
453
68
|
function toPropertyKey(t) {
|
454
69
|
var i = toPrimitive(t, "string");
|
455
|
-
return "symbol" == _typeof(i) ? i :
|
70
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
456
71
|
}
|
72
|
+
|
457
73
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
458
74
|
|
459
|
-
function _defineProperty(
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
writable: true
|
467
|
-
});
|
468
|
-
} else {
|
469
|
-
obj[key] = value;
|
470
|
-
}
|
471
|
-
return obj;
|
75
|
+
function _defineProperty(e, r, t) {
|
76
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
77
|
+
value: t,
|
78
|
+
enumerable: !0,
|
79
|
+
configurable: !0,
|
80
|
+
writable: !0
|
81
|
+
}) : e[r] = t, e;
|
472
82
|
}
|
83
|
+
|
473
84
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
474
|
-
function asyncGeneratorStep(
|
85
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
475
86
|
try {
|
476
|
-
var
|
477
|
-
|
478
|
-
} catch (
|
479
|
-
|
480
|
-
return;
|
481
|
-
}
|
482
|
-
if (info.done) {
|
483
|
-
resolve(value);
|
484
|
-
} else {
|
485
|
-
Promise.resolve(value).then(_next, _throw);
|
87
|
+
var i = n[a](c),
|
88
|
+
u = i.value;
|
89
|
+
} catch (n) {
|
90
|
+
return void e(n);
|
486
91
|
}
|
92
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
487
93
|
}
|
488
|
-
function _asyncToGenerator(
|
94
|
+
function _asyncToGenerator(n) {
|
489
95
|
return function () {
|
490
|
-
var
|
491
|
-
|
492
|
-
return new Promise(function (
|
493
|
-
var
|
494
|
-
function _next(
|
495
|
-
asyncGeneratorStep(
|
96
|
+
var t = this,
|
97
|
+
e = arguments;
|
98
|
+
return new Promise(function (r, o) {
|
99
|
+
var a = n.apply(t, e);
|
100
|
+
function _next(n) {
|
101
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
496
102
|
}
|
497
|
-
function _throw(
|
498
|
-
asyncGeneratorStep(
|
103
|
+
function _throw(n) {
|
104
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
499
105
|
}
|
500
|
-
_next(
|
106
|
+
_next(void 0);
|
501
107
|
});
|
502
108
|
};
|
503
109
|
}
|
110
|
+
|
504
111
|
;// CONCATENATED MODULE: external "vue"
|
505
112
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
506
113
|
var external_vue_y = x => () => x
|
507
114
|
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);
|
511
115
|
;// CONCATENATED MODULE: external "vue-types"
|
512
116
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
513
117
|
var external_vue_types_y = x => () => x
|
@@ -524,12 +128,13 @@ const icon_namespaceObject = icon_x({ ["Circle"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
524
128
|
|
525
129
|
|
526
130
|
|
527
|
-
|
131
|
+
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 }; })(); }
|
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); }
|
528
133
|
/**
|
529
134
|
* Tencent is pleased to support the open source community by making
|
530
135
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
531
136
|
*
|
532
|
-
* Copyright (C)
|
137
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
533
138
|
*
|
534
139
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
535
140
|
*
|
@@ -630,34 +235,34 @@ var stepsProps = {
|
|
630
235
|
// init();
|
631
236
|
// }, { deep: true });
|
632
237
|
var jumpTo = /*#__PURE__*/function () {
|
633
|
-
var _ref2 = _asyncToGenerator(
|
634
|
-
|
635
|
-
|
238
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(index) {
|
239
|
+
var _t;
|
240
|
+
return _regenerator().w(function (_context2) {
|
241
|
+
while (1) switch (_context2.n) {
|
636
242
|
case 0:
|
637
|
-
_context2.
|
243
|
+
_context2.p = 0;
|
638
244
|
if (!(props.controllable && index !== props.curStep)) {
|
639
|
-
_context2.
|
245
|
+
_context2.n = 2;
|
640
246
|
break;
|
641
247
|
}
|
642
248
|
if (!(typeof props.beforeChange === 'function')) {
|
643
|
-
_context2.
|
249
|
+
_context2.n = 1;
|
644
250
|
break;
|
645
251
|
}
|
646
|
-
_context2.
|
647
|
-
return new Promise(
|
648
|
-
var _ref3 = _asyncToGenerator(
|
252
|
+
_context2.n = 1;
|
253
|
+
return new Promise(/*#__PURE__*/function () {
|
254
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(resolve, reject) {
|
649
255
|
var confirmed;
|
650
|
-
return
|
651
|
-
while (1) switch (_context.
|
256
|
+
return _regenerator().w(function (_context) {
|
257
|
+
while (1) switch (_context.n) {
|
652
258
|
case 0:
|
653
|
-
_context.
|
259
|
+
_context.n = 1;
|
654
260
|
return props.beforeChange(index);
|
655
|
-
case
|
656
|
-
confirmed = _context.
|
261
|
+
case 1:
|
262
|
+
confirmed = _context.v;
|
657
263
|
confirmed ? resolve(confirmed) : reject(confirmed);
|
658
|
-
case
|
659
|
-
|
660
|
-
return _context.stop();
|
264
|
+
case 2:
|
265
|
+
return _context.a(2);
|
661
266
|
}
|
662
267
|
}, _callee);
|
663
268
|
}));
|
@@ -665,21 +270,20 @@ var stepsProps = {
|
|
665
270
|
return _ref3.apply(this, arguments);
|
666
271
|
};
|
667
272
|
}());
|
668
|
-
case
|
273
|
+
case 1:
|
669
274
|
emit('update:curStep', index);
|
670
275
|
emit('click', index);
|
671
|
-
case
|
672
|
-
_context2.
|
276
|
+
case 2:
|
277
|
+
_context2.n = 4;
|
673
278
|
break;
|
674
|
-
case
|
675
|
-
_context2.
|
676
|
-
|
677
|
-
console.warn(
|
678
|
-
case
|
679
|
-
|
680
|
-
return _context2.stop();
|
279
|
+
case 3:
|
280
|
+
_context2.p = 3;
|
281
|
+
_t = _context2.v;
|
282
|
+
console.warn(_t);
|
283
|
+
case 4:
|
284
|
+
return _context2.a(2);
|
681
285
|
}
|
682
|
-
}, _callee2, null, [[0,
|
286
|
+
}, _callee2, null, [[0, 3]]);
|
683
287
|
}));
|
684
288
|
return function jumpTo(_x) {
|
685
289
|
return _ref2.apply(this, arguments);
|
@@ -794,7 +398,7 @@ var stepsProps = {
|
|
794
398
|
* Tencent is pleased to support the open source community by making
|
795
399
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
796
400
|
*
|
797
|
-
* Copyright (C)
|
401
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
798
402
|
*
|
799
403
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
800
404
|
*
|
@@ -819,7 +423,5 @@ var stepsProps = {
|
|
819
423
|
|
820
424
|
var BkSteps = (0,shared_namespaceObject.withInstall)(steps);
|
821
425
|
/* harmony default export */ const src = (BkSteps);
|
822
|
-
})();
|
823
|
-
|
824
426
|
var __webpack_exports__default = __webpack_exports__["default"];
|
825
427
|
export { __webpack_exports__default as default };
|
package/lib/steps/steps.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Tencent is pleased to support the open source community by making
|
3
3
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
4
|
*
|
5
|
-
* Copyright (C)
|
5
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
6
6
|
*
|
7
7
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
8
|
*
|