bkui-vue 2.0.1-beta.98 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +133 -159
- package/dist/index.esm.js +26188 -29904
- package/dist/index.umd.js +133 -159
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -261
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.variable.css +1 -261
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -394
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -261
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -396
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -261
- package/lib/button/index.d.ts +2 -1
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -395
- package/lib/cascader/cascader.css +27 -153
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +28 -414
- package/lib/cascader/index.d.ts +6 -6
- package/lib/cascader/index.js +15 -747
- package/lib/checkbox/checkbox.css +10 -140
- package/lib/checkbox/checkbox.variable.css +1 -261
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -261
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -261
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -261
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -261
- package/lib/color-picker/index.js +8 -254
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -261
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -391
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.variable.css +1 -261
- package/lib/date-picker/index.d.ts +2 -1
- package/lib/date-picker/index.js +103 -92
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.variable.css +9 -399
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +1 -2
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -261
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -391
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -261
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -261
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -261
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -261
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -391
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -261
- package/lib/input/input.css +75 -205
- package/lib/input/input.variable.css +76 -466
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -261
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -407
- package/lib/menu/menu.css +20 -150
- package/lib/menu/menu.variable.css +21 -411
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -261
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -261
- package/lib/modal/index.js +3 -0
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.variable.css +5 -395
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -261
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -261
- package/lib/overflow-title/components/overflow-title.d.ts +20 -0
- package/lib/overflow-title/index.d.ts +40 -0
- package/lib/overflow-title/index.js +2 -1
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +10 -0
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/pagination.css +1 -131
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +1 -261
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +32 -21265
- package/lib/pop-confirm/index.d.ts +8 -0
- package/lib/pop-confirm/index.js +16 -8
- package/lib/pop-confirm/pop-confirm.css +0 -130
- package/lib/pop-confirm/pop-confirm.d.ts +4 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -261
- package/lib/pop-confirm/props.d.ts +3 -0
- package/lib/popover/index.d.ts +49 -3
- package/lib/popover/index.js +87 -17449
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +23 -1
- package/lib/popover/popover.variable.css +1 -261
- package/lib/popover/props.d.ts +16 -0
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover/utils.d.ts +1 -1
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -261
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -395
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.variable.css +1 -261
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -261
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -261
- package/lib/scrollbar/css/scrollbar.css +0 -130
- package/lib/scrollbar/css/scrollbar.variable.css +1 -261
- package/lib/search-select/index.d.ts +6 -0
- package/lib/search-select/index.js +36 -9
- package/lib/search-select/input.d.ts +1 -0
- package/lib/search-select/search-select.css +78 -208
- package/lib/search-select/search-select.d.ts +2 -0
- package/lib/search-select/search-select.less +39 -39
- package/lib/search-select/search-select.variable.css +79 -469
- package/lib/search-select/selected.d.ts +2 -0
- package/lib/select/index.d.ts +78 -7
- package/lib/select/index.js +83 -74
- package/lib/select/select.css +42 -169
- package/lib/select/select.d.ts +32 -2
- package/lib/select/select.less +4 -0
- package/lib/select/select.variable.css +43 -430
- package/lib/sideslider/sideslider.css +1 -131
- package/lib/sideslider/sideslider.variable.css +1 -261
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -261
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.variable.css +1 -261
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -261
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -261
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -261
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -261
- package/lib/styles/themes/themes.less +130 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -261
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -408
- package/lib/tab/tab.css +26 -156
- package/lib/tab/tab.variable.css +1 -261
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/index.d.ts +7 -7
- package/lib/table/index.js +59 -17260
- package/lib/table/plugins/head-filter.css +0 -130
- package/lib/table/plugins/head-filter.variable.css +1 -261
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -261
- package/lib/table/plugins/settings.css +0 -130
- package/lib/table/plugins/settings.variable.css +1 -261
- package/lib/table/table.css +189 -319
- package/lib/table/table.d.ts +2 -2
- package/lib/table/table.variable.css +190 -580
- package/lib/table-column/index.d.ts +3 -3
- package/lib/table-column/index.js +9 -17991
- package/lib/tag/tag.css +5 -135
- package/lib/tag/tag.variable.css +1 -261
- package/lib/tag-input/index.d.ts +52 -10
- package/lib/tag-input/index.js +134 -17399
- package/lib/tag-input/tag-input.css +21 -148
- package/lib/tag-input/tag-input.d.ts +24 -4
- package/lib/tag-input/tag-input.less +4 -0
- package/lib/tag-input/tag-input.variable.css +4 -261
- package/lib/tag-input/tag-props.d.ts +11 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -261
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -261
- package/lib/transfer/index.d.ts +3 -3
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/transfer/transfer.variable.css +1 -261
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +11 -17270
- package/lib/tree/tree.css +10 -140
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +11 -401
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.variable.css +28 -418
- package/lib/virtual-render/index.d.ts +3 -3
- package/lib/virtual-render/index.js +8 -17267
- package/lib/virtual-render/virtual-render.css +0 -130
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/lib/virtual-render/virtual-render.variable.css +1 -391
- package/package.json +1 -1
- package/lib/styles/themes/themes.css +0 -130
- package/lib/styles/themes/themes.variable.css +0 -130
package/lib/cascader/index.js
CHANGED
@@ -8,385 +8,14 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from ".
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
10
10
|
import "../popover/popover.less";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../select";
|
11
12
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
12
13
|
import "../tag/tag.less";
|
14
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
|
13
15
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
14
16
|
import "../checkbox/checkbox.less";
|
15
|
-
/******/
|
16
|
-
|
17
|
-
/***/ 7609:
|
18
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
19
|
-
|
20
|
-
var _typeof = (__webpack_require__(7425)["default"]);
|
21
|
-
function _regeneratorRuntime() {
|
22
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
23
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
24
|
-
return e;
|
25
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
26
|
-
var t,
|
27
|
-
e = {},
|
28
|
-
r = Object.prototype,
|
29
|
-
n = r.hasOwnProperty,
|
30
|
-
o = Object.defineProperty || function (t, e, r) {
|
31
|
-
t[e] = r.value;
|
32
|
-
},
|
33
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
34
|
-
a = i.iterator || "@@iterator",
|
35
|
-
c = i.asyncIterator || "@@asyncIterator",
|
36
|
-
u = i.toStringTag || "@@toStringTag";
|
37
|
-
function define(t, e, r) {
|
38
|
-
return Object.defineProperty(t, e, {
|
39
|
-
value: r,
|
40
|
-
enumerable: !0,
|
41
|
-
configurable: !0,
|
42
|
-
writable: !0
|
43
|
-
}), t[e];
|
44
|
-
}
|
45
|
-
try {
|
46
|
-
define({}, "");
|
47
|
-
} catch (t) {
|
48
|
-
define = function define(t, e, r) {
|
49
|
-
return t[e] = r;
|
50
|
-
};
|
51
|
-
}
|
52
|
-
function wrap(t, e, r, n) {
|
53
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
54
|
-
a = Object.create(i.prototype),
|
55
|
-
c = new Context(n || []);
|
56
|
-
return o(a, "_invoke", {
|
57
|
-
value: makeInvokeMethod(t, r, c)
|
58
|
-
}), a;
|
59
|
-
}
|
60
|
-
function tryCatch(t, e, r) {
|
61
|
-
try {
|
62
|
-
return {
|
63
|
-
type: "normal",
|
64
|
-
arg: t.call(e, r)
|
65
|
-
};
|
66
|
-
} catch (t) {
|
67
|
-
return {
|
68
|
-
type: "throw",
|
69
|
-
arg: t
|
70
|
-
};
|
71
|
-
}
|
72
|
-
}
|
73
|
-
e.wrap = wrap;
|
74
|
-
var h = "suspendedStart",
|
75
|
-
l = "suspendedYield",
|
76
|
-
f = "executing",
|
77
|
-
s = "completed",
|
78
|
-
y = {};
|
79
|
-
function Generator() {}
|
80
|
-
function GeneratorFunction() {}
|
81
|
-
function GeneratorFunctionPrototype() {}
|
82
|
-
var p = {};
|
83
|
-
define(p, a, function () {
|
84
|
-
return this;
|
85
|
-
});
|
86
|
-
var d = Object.getPrototypeOf,
|
87
|
-
v = d && d(d(values([])));
|
88
|
-
v && v !== r && n.call(v, a) && (p = v);
|
89
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
90
|
-
function defineIteratorMethods(t) {
|
91
|
-
["next", "throw", "return"].forEach(function (e) {
|
92
|
-
define(t, e, function (t) {
|
93
|
-
return this._invoke(e, t);
|
94
|
-
});
|
95
|
-
});
|
96
|
-
}
|
97
|
-
function AsyncIterator(t, e) {
|
98
|
-
function invoke(r, o, i, a) {
|
99
|
-
var c = tryCatch(t[r], t, o);
|
100
|
-
if ("throw" !== c.type) {
|
101
|
-
var u = c.arg,
|
102
|
-
h = u.value;
|
103
|
-
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
104
|
-
invoke("next", t, i, a);
|
105
|
-
}, function (t) {
|
106
|
-
invoke("throw", t, i, a);
|
107
|
-
}) : e.resolve(h).then(function (t) {
|
108
|
-
u.value = t, i(u);
|
109
|
-
}, function (t) {
|
110
|
-
return invoke("throw", t, i, a);
|
111
|
-
});
|
112
|
-
}
|
113
|
-
a(c.arg);
|
114
|
-
}
|
115
|
-
var r;
|
116
|
-
o(this, "_invoke", {
|
117
|
-
value: function value(t, n) {
|
118
|
-
function callInvokeWithMethodAndArg() {
|
119
|
-
return new e(function (e, r) {
|
120
|
-
invoke(t, n, e, r);
|
121
|
-
});
|
122
|
-
}
|
123
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
124
|
-
}
|
125
|
-
});
|
126
|
-
}
|
127
|
-
function makeInvokeMethod(e, r, n) {
|
128
|
-
var o = h;
|
129
|
-
return function (i, a) {
|
130
|
-
if (o === f) throw new Error("Generator is already running");
|
131
|
-
if (o === s) {
|
132
|
-
if ("throw" === i) throw a;
|
133
|
-
return {
|
134
|
-
value: t,
|
135
|
-
done: !0
|
136
|
-
};
|
137
|
-
}
|
138
|
-
for (n.method = i, n.arg = a;;) {
|
139
|
-
var c = n.delegate;
|
140
|
-
if (c) {
|
141
|
-
var u = maybeInvokeDelegate(c, n);
|
142
|
-
if (u) {
|
143
|
-
if (u === y) continue;
|
144
|
-
return u;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
148
|
-
if (o === h) throw o = s, n.arg;
|
149
|
-
n.dispatchException(n.arg);
|
150
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
151
|
-
o = f;
|
152
|
-
var p = tryCatch(e, r, n);
|
153
|
-
if ("normal" === p.type) {
|
154
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
155
|
-
return {
|
156
|
-
value: p.arg,
|
157
|
-
done: n.done
|
158
|
-
};
|
159
|
-
}
|
160
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
161
|
-
}
|
162
|
-
};
|
163
|
-
}
|
164
|
-
function maybeInvokeDelegate(e, r) {
|
165
|
-
var n = r.method,
|
166
|
-
o = e.iterator[n];
|
167
|
-
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;
|
168
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
169
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
170
|
-
var a = i.arg;
|
171
|
-
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);
|
172
|
-
}
|
173
|
-
function pushTryEntry(t) {
|
174
|
-
var e = {
|
175
|
-
tryLoc: t[0]
|
176
|
-
};
|
177
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
178
|
-
}
|
179
|
-
function resetTryEntry(t) {
|
180
|
-
var e = t.completion || {};
|
181
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
182
|
-
}
|
183
|
-
function Context(t) {
|
184
|
-
this.tryEntries = [{
|
185
|
-
tryLoc: "root"
|
186
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
187
|
-
}
|
188
|
-
function values(e) {
|
189
|
-
if (e || "" === e) {
|
190
|
-
var r = e[a];
|
191
|
-
if (r) return r.call(e);
|
192
|
-
if ("function" == typeof e.next) return e;
|
193
|
-
if (!isNaN(e.length)) {
|
194
|
-
var o = -1,
|
195
|
-
i = function next() {
|
196
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
197
|
-
return next.value = t, next.done = !0, next;
|
198
|
-
};
|
199
|
-
return i.next = i;
|
200
|
-
}
|
201
|
-
}
|
202
|
-
throw new TypeError(_typeof(e) + " is not iterable");
|
203
|
-
}
|
204
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
205
|
-
value: GeneratorFunctionPrototype,
|
206
|
-
configurable: !0
|
207
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
208
|
-
value: GeneratorFunction,
|
209
|
-
configurable: !0
|
210
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
211
|
-
var e = "function" == typeof t && t.constructor;
|
212
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
213
|
-
}, e.mark = function (t) {
|
214
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
215
|
-
}, e.awrap = function (t) {
|
216
|
-
return {
|
217
|
-
__await: t
|
218
|
-
};
|
219
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
220
|
-
return this;
|
221
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
222
|
-
void 0 === i && (i = Promise);
|
223
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
224
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
225
|
-
return t.done ? t.value : a.next();
|
226
|
-
});
|
227
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
228
|
-
return this;
|
229
|
-
}), define(g, "toString", function () {
|
230
|
-
return "[object Generator]";
|
231
|
-
}), e.keys = function (t) {
|
232
|
-
var e = Object(t),
|
233
|
-
r = [];
|
234
|
-
for (var n in e) r.push(n);
|
235
|
-
return r.reverse(), function next() {
|
236
|
-
for (; r.length;) {
|
237
|
-
var t = r.pop();
|
238
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
239
|
-
}
|
240
|
-
return next.done = !0, next;
|
241
|
-
};
|
242
|
-
}, e.values = values, Context.prototype = {
|
243
|
-
constructor: Context,
|
244
|
-
reset: function reset(e) {
|
245
|
-
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);
|
246
|
-
},
|
247
|
-
stop: function stop() {
|
248
|
-
this.done = !0;
|
249
|
-
var t = this.tryEntries[0].completion;
|
250
|
-
if ("throw" === t.type) throw t.arg;
|
251
|
-
return this.rval;
|
252
|
-
},
|
253
|
-
dispatchException: function dispatchException(e) {
|
254
|
-
if (this.done) throw e;
|
255
|
-
var r = this;
|
256
|
-
function handle(n, o) {
|
257
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
258
|
-
}
|
259
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
260
|
-
var i = this.tryEntries[o],
|
261
|
-
a = i.completion;
|
262
|
-
if ("root" === i.tryLoc) return handle("end");
|
263
|
-
if (i.tryLoc <= this.prev) {
|
264
|
-
var c = n.call(i, "catchLoc"),
|
265
|
-
u = n.call(i, "finallyLoc");
|
266
|
-
if (c && u) {
|
267
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
268
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
269
|
-
} else if (c) {
|
270
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
271
|
-
} else {
|
272
|
-
if (!u) throw new Error("try statement without catch or finally");
|
273
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
274
|
-
}
|
275
|
-
}
|
276
|
-
}
|
277
|
-
},
|
278
|
-
abrupt: function abrupt(t, e) {
|
279
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
280
|
-
var o = this.tryEntries[r];
|
281
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
282
|
-
var i = o;
|
283
|
-
break;
|
284
|
-
}
|
285
|
-
}
|
286
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
287
|
-
var a = i ? i.completion : {};
|
288
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
289
|
-
},
|
290
|
-
complete: function complete(t, e) {
|
291
|
-
if ("throw" === t.type) throw t.arg;
|
292
|
-
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;
|
293
|
-
},
|
294
|
-
finish: function finish(t) {
|
295
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
296
|
-
var r = this.tryEntries[e];
|
297
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
298
|
-
}
|
299
|
-
},
|
300
|
-
"catch": function _catch(t) {
|
301
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
302
|
-
var r = this.tryEntries[e];
|
303
|
-
if (r.tryLoc === t) {
|
304
|
-
var n = r.completion;
|
305
|
-
if ("throw" === n.type) {
|
306
|
-
var o = n.arg;
|
307
|
-
resetTryEntry(r);
|
308
|
-
}
|
309
|
-
return o;
|
310
|
-
}
|
311
|
-
}
|
312
|
-
throw new Error("illegal catch attempt");
|
313
|
-
},
|
314
|
-
delegateYield: function delegateYield(e, r, n) {
|
315
|
-
return this.delegate = {
|
316
|
-
iterator: values(e),
|
317
|
-
resultName: r,
|
318
|
-
nextLoc: n
|
319
|
-
}, "next" === this.method && (this.arg = t), y;
|
320
|
-
}
|
321
|
-
}, e;
|
322
|
-
}
|
323
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
324
|
-
|
325
|
-
/***/ }),
|
326
|
-
|
327
|
-
/***/ 7425:
|
328
|
-
/***/ ((module) => {
|
329
|
-
|
330
|
-
function _typeof(o) {
|
331
|
-
"@babel/helpers - typeof";
|
332
|
-
|
333
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
334
|
-
return typeof o;
|
335
|
-
} : function (o) {
|
336
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
337
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
338
|
-
}
|
339
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
340
|
-
|
341
|
-
/***/ }),
|
342
|
-
|
343
|
-
/***/ 2841:
|
344
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
345
|
-
|
346
|
-
// TODO(Babel 8): Remove this file.
|
347
|
-
|
348
|
-
var runtime = __webpack_require__(7609)();
|
349
|
-
module.exports = runtime;
|
350
|
-
|
351
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
352
|
-
try {
|
353
|
-
regeneratorRuntime = runtime;
|
354
|
-
} catch (accidentalStrictMode) {
|
355
|
-
if (typeof globalThis === "object") {
|
356
|
-
globalThis.regeneratorRuntime = runtime;
|
357
|
-
} else {
|
358
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
359
|
-
}
|
360
|
-
}
|
361
|
-
|
362
|
-
|
363
|
-
/***/ })
|
364
|
-
|
365
|
-
/******/ });
|
366
|
-
/************************************************************************/
|
367
|
-
/******/ // The module cache
|
368
|
-
/******/ var __webpack_module_cache__ = {};
|
369
|
-
/******/
|
370
|
-
/******/ // The require function
|
371
|
-
/******/ function __webpack_require__(moduleId) {
|
372
|
-
/******/ // Check if module is in cache
|
373
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
374
|
-
/******/ if (cachedModule !== undefined) {
|
375
|
-
/******/ return cachedModule.exports;
|
376
|
-
/******/ }
|
377
|
-
/******/ // Create a new module (and put it into the cache)
|
378
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
379
|
-
/******/ // no module.id needed
|
380
|
-
/******/ // no module.loaded needed
|
381
|
-
/******/ exports: {}
|
382
|
-
/******/ };
|
383
|
-
/******/
|
384
|
-
/******/ // Execute the module function
|
385
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
386
|
-
/******/
|
387
|
-
/******/ // Return the exports of the module
|
388
|
-
/******/ return module.exports;
|
389
|
-
/******/ }
|
17
|
+
/******/ // The require scope
|
18
|
+
/******/ var __webpack_require__ = {};
|
390
19
|
/******/
|
391
20
|
/************************************************************************/
|
392
21
|
/******/ /* webpack/runtime/define property getters */
|
@@ -408,8 +37,6 @@ try {
|
|
408
37
|
/******/
|
409
38
|
/************************************************************************/
|
410
39
|
var __webpack_exports__ = {};
|
411
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
412
|
-
(() => {
|
413
40
|
|
414
41
|
// EXPORTS
|
415
42
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -450,6 +77,10 @@ const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
450
77
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
451
78
|
var popover_less_y = x => () => x
|
452
79
|
const popover_less_namespaceObject = popover_less_x({ });
|
80
|
+
;// CONCATENATED MODULE: external "../select"
|
81
|
+
var select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
82
|
+
var select_y = x => () => x
|
83
|
+
const select_namespaceObject = select_x({ ["useHover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.useHover });
|
453
84
|
;// CONCATENATED MODULE: external "../tag"
|
454
85
|
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
455
86
|
var tag_y = x => () => x
|
@@ -458,372 +89,10 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
458
89
|
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
459
90
|
var tag_less_y = x => () => x
|
460
91
|
const tag_less_namespaceObject = tag_less_x({ });
|
461
|
-
|
462
|
-
var
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
/*
|
467
|
-
* Tencent is pleased to support the open source community by making
|
468
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
469
|
-
*
|
470
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
471
|
-
*
|
472
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
473
|
-
*
|
474
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
475
|
-
*
|
476
|
-
* ---------------------------------------------------
|
477
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
478
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
479
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
480
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
481
|
-
*
|
482
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
483
|
-
* the Software.
|
484
|
-
*
|
485
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
486
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
487
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
488
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
489
|
-
* IN THE SOFTWARE.
|
490
|
-
*/
|
491
|
-
|
492
|
-
|
493
|
-
var selectKey = Symbol('BkSelect');
|
494
|
-
var optionGroupKey = Symbol('BkOptionGroup');
|
495
|
-
function useHover() {
|
496
|
-
var isHover = (0,external_vue_namespaceObject.ref)(false);
|
497
|
-
var setHover = function setHover() {
|
498
|
-
isHover.value = true;
|
499
|
-
};
|
500
|
-
var cancelHover = function cancelHover() {
|
501
|
-
isHover.value = false;
|
502
|
-
};
|
503
|
-
return {
|
504
|
-
isHover: isHover,
|
505
|
-
setHover: setHover,
|
506
|
-
cancelHover: cancelHover
|
507
|
-
};
|
508
|
-
}
|
509
|
-
function useRegistry(data) {
|
510
|
-
// 注册item
|
511
|
-
var register = function register(key, item) {
|
512
|
-
if (!item) return;
|
513
|
-
return data.value.set(key, item);
|
514
|
-
};
|
515
|
-
// 删除item
|
516
|
-
var unregister = function unregister(key, item) {
|
517
|
-
if (item) {
|
518
|
-
if (data.value.get(key) !== item) return;
|
519
|
-
data.value["delete"](key);
|
520
|
-
} else {
|
521
|
-
data.value["delete"](key);
|
522
|
-
}
|
523
|
-
};
|
524
|
-
return {
|
525
|
-
register: register,
|
526
|
-
unregister: unregister
|
527
|
-
};
|
528
|
-
}
|
529
|
-
function useDebouncedRef(value) {
|
530
|
-
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
531
|
-
var timeout;
|
532
|
-
var innerValue = value;
|
533
|
-
return customRef(function (track, trigger) {
|
534
|
-
return {
|
535
|
-
get: function get() {
|
536
|
-
track();
|
537
|
-
return innerValue;
|
538
|
-
},
|
539
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
540
|
-
set: function set(newValue) {
|
541
|
-
clearTimeout(timeout);
|
542
|
-
if (newValue === undefined || newValue === '') {
|
543
|
-
innerValue = newValue;
|
544
|
-
trigger();
|
545
|
-
} else {
|
546
|
-
timeout = setTimeout(function () {
|
547
|
-
innerValue = newValue;
|
548
|
-
trigger();
|
549
|
-
}, delay);
|
550
|
-
}
|
551
|
-
}
|
552
|
-
};
|
553
|
-
});
|
554
|
-
}
|
555
|
-
function usePopover(config, triggerRef) {
|
556
|
-
var popoverMinWidth = config.popoverMinWidth;
|
557
|
-
var observerIns = null;
|
558
|
-
var popperWidth = ref('auto');
|
559
|
-
var isPopoverShow = ref(false);
|
560
|
-
var togglePopover = function togglePopover() {
|
561
|
-
isPopoverShow.value = !isPopoverShow.value;
|
562
|
-
};
|
563
|
-
var hidePopover = function hidePopover() {
|
564
|
-
isPopoverShow.value = false;
|
565
|
-
};
|
566
|
-
var showPopover = function showPopover() {
|
567
|
-
isPopoverShow.value = true;
|
568
|
-
};
|
569
|
-
var triggerRefResize = function triggerRefResize() {
|
570
|
-
var _triggerRef$value;
|
571
|
-
popperWidth.value = Math.max((_triggerRef$value = triggerRef.value) === null || _triggerRef$value === void 0 ? void 0 : _triggerRef$value.offsetWidth, popoverMinWidth);
|
572
|
-
};
|
573
|
-
onMounted(function () {
|
574
|
-
if (!triggerRef.value) return;
|
575
|
-
observerIns = observerResize(triggerRef.value, triggerRefResize, 60, true);
|
576
|
-
observerIns.start();
|
577
|
-
});
|
578
|
-
onBeforeUnmount(function () {
|
579
|
-
var _observerIns;
|
580
|
-
(_observerIns = observerIns) === null || _observerIns === void 0 || _observerIns.stop();
|
581
|
-
observerIns = null;
|
582
|
-
});
|
583
|
-
return {
|
584
|
-
isPopoverShow: isPopoverShow,
|
585
|
-
popperWidth: popperWidth,
|
586
|
-
togglePopover: togglePopover,
|
587
|
-
hidePopover: hidePopover,
|
588
|
-
showPopover: showPopover
|
589
|
-
};
|
590
|
-
}
|
591
|
-
function useRemoteSearch(method, callBack) {
|
592
|
-
var customOptionName = useDebouncedRef(''); // 自定义创建选项(自定义创建也会触发搜索)
|
593
|
-
var searchValue = useDebouncedRef('');
|
594
|
-
var curSearchValue = computed(function () {
|
595
|
-
return searchValue.value || customOptionName.value;
|
596
|
-
});
|
597
|
-
var searchLoading = ref(false);
|
598
|
-
watch(curSearchValue, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
599
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
600
|
-
while (1) switch (_context.prev = _context.next) {
|
601
|
-
case 0:
|
602
|
-
_context.prev = 0;
|
603
|
-
searchLoading.value = true;
|
604
|
-
_context.next = 4;
|
605
|
-
return method(curSearchValue.value);
|
606
|
-
case 4:
|
607
|
-
searchLoading.value = false;
|
608
|
-
_context.next = 10;
|
609
|
-
break;
|
610
|
-
case 7:
|
611
|
-
_context.prev = 7;
|
612
|
-
_context.t0 = _context["catch"](0);
|
613
|
-
console.error(_context.t0);
|
614
|
-
case 10:
|
615
|
-
_context.prev = 10;
|
616
|
-
callBack === null || callBack === void 0 || callBack();
|
617
|
-
return _context.finish(10);
|
618
|
-
case 13:
|
619
|
-
case "end":
|
620
|
-
return _context.stop();
|
621
|
-
}
|
622
|
-
}, _callee, null, [[0, 7, 10, 13]]);
|
623
|
-
})));
|
624
|
-
return {
|
625
|
-
customOptionName: customOptionName,
|
626
|
-
searchValue: searchValue,
|
627
|
-
curSearchValue: curSearchValue,
|
628
|
-
searchLoading: searchLoading
|
629
|
-
};
|
630
|
-
}
|
631
|
-
function toLowerCase() {
|
632
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
633
|
-
if (!value) return value;
|
634
|
-
return String(value).trim().toLowerCase();
|
635
|
-
}
|
636
|
-
function isInViewPort(el, client) {
|
637
|
-
if (!el || !client) return true;
|
638
|
-
var _el$getBoundingClient = el.getBoundingClientRect(),
|
639
|
-
elTop = _el$getBoundingClient.top,
|
640
|
-
elBottom = _el$getBoundingClient.bottom;
|
641
|
-
var _client$getBoundingCl = client.getBoundingClientRect(),
|
642
|
-
clientTop = _client$getBoundingCl.top,
|
643
|
-
clientBottom = _client$getBoundingCl.bottom;
|
644
|
-
return elTop >= clientTop && elBottom <= clientBottom;
|
645
|
-
}
|
646
|
-
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
647
|
-
|
648
|
-
|
649
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
650
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
651
|
-
/*
|
652
|
-
* Tencent is pleased to support the open source community by making
|
653
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
654
|
-
*
|
655
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
656
|
-
*
|
657
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
658
|
-
*
|
659
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
660
|
-
*
|
661
|
-
* ---------------------------------------------------
|
662
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
663
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
664
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
665
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
666
|
-
*
|
667
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
668
|
-
* the Software.
|
669
|
-
*
|
670
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
671
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
672
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
673
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
674
|
-
* IN THE SOFTWARE.
|
675
|
-
*/
|
676
|
-
|
677
|
-
var INPUT_MIN_WIDTH = 10;
|
678
|
-
function common_useDebouncedRef(value) {
|
679
|
-
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
680
|
-
var timeout;
|
681
|
-
var innerValue = value;
|
682
|
-
return customRef(function (track, trigger) {
|
683
|
-
return {
|
684
|
-
get: function get() {
|
685
|
-
track();
|
686
|
-
return innerValue;
|
687
|
-
},
|
688
|
-
set: function set(newValue) {
|
689
|
-
clearTimeout(timeout);
|
690
|
-
timeout = setTimeout(function () {
|
691
|
-
innerValue = newValue;
|
692
|
-
trigger();
|
693
|
-
}, delay);
|
694
|
-
}
|
695
|
-
};
|
696
|
-
});
|
697
|
-
}
|
698
|
-
function usePage(pageSize) {
|
699
|
-
var state = reactive({
|
700
|
-
curPage: 1,
|
701
|
-
totalSize: 0,
|
702
|
-
totalPage: 0,
|
703
|
-
pageSize: pageSize,
|
704
|
-
isPageLoading: false,
|
705
|
-
curPageList: [],
|
706
|
-
renderListPaged: []
|
707
|
-
});
|
708
|
-
// 初始化分页信息
|
709
|
-
var initPage = function initPage() {
|
710
|
-
var _state$renderListPage, _state$curPageList;
|
711
|
-
var allList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
712
|
-
state.curPage = 1;
|
713
|
-
state.totalSize = allList.length;
|
714
|
-
state.totalPage = Math.ceil(state.totalSize / state.pageSize) || 1;
|
715
|
-
var list = [];
|
716
|
-
// 小于等于0会无限循环
|
717
|
-
if (state.pageSize > 0) {
|
718
|
-
for (var i = 0; i < state.totalSize; i += state.pageSize) {
|
719
|
-
list.push(allList.slice(i, i + state.pageSize));
|
720
|
-
}
|
721
|
-
}
|
722
|
-
(_state$renderListPage = state.renderListPaged).splice.apply(_state$renderListPage, [0, state.renderListPaged.length].concat(list));
|
723
|
-
(_state$curPageList = state.curPageList).splice.apply(_state$curPageList, [0, state.curPageList.length].concat(_toConsumableArray(state.renderListPaged[state.curPage - 1] || [])));
|
724
|
-
};
|
725
|
-
var pageChange = function pageChange(page) {
|
726
|
-
var _state$curPageList2;
|
727
|
-
state.curPage = page;
|
728
|
-
(_state$curPageList2 = state.curPageList).splice.apply(_state$curPageList2, [state.curPageList.length, 0].concat(_toConsumableArray(state.renderListPaged[state.curPage - 1] || [])));
|
729
|
-
state.isPageLoading = false;
|
730
|
-
};
|
731
|
-
return {
|
732
|
-
pageState: state,
|
733
|
-
initPage: initPage,
|
734
|
-
pageChange: pageChange
|
735
|
-
};
|
736
|
-
}
|
737
|
-
function useFlatList(props) {
|
738
|
-
var _toRefs = toRefs(props),
|
739
|
-
useGroup = _toRefs.useGroup,
|
740
|
-
saveKey = _toRefs.saveKey,
|
741
|
-
displayKey = _toRefs.displayKey,
|
742
|
-
list = _toRefs.list;
|
743
|
-
var flatList = ref([]);
|
744
|
-
var saveKeyMap = ref({});
|
745
|
-
watch([useGroup, saveKey, displayKey, list], function () {
|
746
|
-
flatList.value = [];
|
747
|
-
var formatList = markRaw(list.value);
|
748
|
-
if (useGroup.value) {
|
749
|
-
formatList = formatList.reduce(function (formatList, item) {
|
750
|
-
var children = [];
|
751
|
-
if (item.children) {
|
752
|
-
children = item.children.map(function (child) {
|
753
|
-
return _objectSpread({
|
754
|
-
group: {
|
755
|
-
groupId: item[saveKey.value],
|
756
|
-
groupName: item[displayKey.value]
|
757
|
-
}
|
758
|
-
}, child);
|
759
|
-
});
|
760
|
-
}
|
761
|
-
return formatList.concat(children);
|
762
|
-
}, []);
|
763
|
-
}
|
764
|
-
flatList.value = formatList;
|
765
|
-
saveKeyMap.value = formatList.reduce(function (acc, item) {
|
766
|
-
acc[item[saveKey.value]] = item;
|
767
|
-
return acc;
|
768
|
-
}, {});
|
769
|
-
}, {
|
770
|
-
immediate: true,
|
771
|
-
deep: true
|
772
|
-
});
|
773
|
-
return {
|
774
|
-
flatList: flatList,
|
775
|
-
saveKeyMap: saveKeyMap
|
776
|
-
};
|
777
|
-
}
|
778
|
-
/**
|
779
|
-
* 获取字符长度,汉字两个字节
|
780
|
-
* @param str 需要计算长度的字符
|
781
|
-
* @returns 字符长度
|
782
|
-
*/
|
783
|
-
var getCharLength = function getCharLength(str) {
|
784
|
-
var len = str.length;
|
785
|
-
var bitLen = 0;
|
786
|
-
for (var i = 0; i < len; i++) {
|
787
|
-
if ((str.charCodeAt(i) & 0xff00) !== 0) {
|
788
|
-
bitLen += 1;
|
789
|
-
}
|
790
|
-
bitLen += 1;
|
791
|
-
}
|
792
|
-
return bitLen;
|
793
|
-
};
|
794
|
-
/**
|
795
|
-
* 获取隐藏 tag index
|
796
|
-
* @param tagInputRef 组件容器 ref
|
797
|
-
* @param collapseTags 是否折叠 tags
|
798
|
-
* @param selectedTagList 已选择 tags
|
799
|
-
*/
|
800
|
-
var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, selectedTagList) {
|
801
|
-
(0,external_vue_namespaceObject.watch)([selectedTagList, collapseTags], function () {
|
802
|
-
calcOverflow();
|
803
|
-
}, {
|
804
|
-
flush: 'post'
|
805
|
-
});
|
806
|
-
var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
|
807
|
-
// 计算出现换行的索引
|
808
|
-
var calcOverflow = function calcOverflow() {
|
809
|
-
if (!collapseTags.value) return;
|
810
|
-
overflowTagIndex.value = null;
|
811
|
-
setTimeout(function () {
|
812
|
-
var tags = Array.from(tagInputRef.value.querySelectorAll('.tag-item'));
|
813
|
-
var tagIndexInSecondRow = tags.findIndex(function (currentTag, index) {
|
814
|
-
if (!index) {
|
815
|
-
return false;
|
816
|
-
}
|
817
|
-
var previousTag = tags[index - 1];
|
818
|
-
return previousTag.offsetTop !== currentTag.offsetTop;
|
819
|
-
});
|
820
|
-
overflowTagIndex.value = tagIndexInSecondRow > 0 ? tagIndexInSecondRow - 1 : null;
|
821
|
-
});
|
822
|
-
};
|
823
|
-
return {
|
824
|
-
overflowTagIndex: overflowTagIndex
|
825
|
-
};
|
826
|
-
};
|
92
|
+
;// CONCATENATED MODULE: external "../tag-input"
|
93
|
+
var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
94
|
+
var tag_input_y = x => () => x
|
95
|
+
const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
|
827
96
|
;// CONCATENATED MODULE: external "../checkbox"
|
828
97
|
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
829
98
|
var checkbox_y = x => () => x
|
@@ -1697,7 +966,7 @@ var Store = /*#__PURE__*/function () {
|
|
1697
966
|
var separator = props.separator,
|
1698
967
|
multiple = props.multiple;
|
1699
968
|
// 用useHover自定义hook来处理鼠标hover状态
|
1700
|
-
var _useHover = useHover(),
|
969
|
+
var _useHover = (0,select_namespaceObject.useHover)(),
|
1701
970
|
isHover = _useHover.isHover,
|
1702
971
|
setHover = _useHover.setHover,
|
1703
972
|
cancelHover = _useHover.cancelHover;
|
@@ -1916,7 +1185,7 @@ var Store = /*#__PURE__*/function () {
|
|
1916
1185
|
// 如果使用了trigger插槽,则不存在bkCascaderRef,做兼容处理
|
1917
1186
|
var _ref2 = slots.trigger ? {
|
1918
1187
|
overflowTagIndex: null
|
1919
|
-
} : useTagsOverflow(bkCascaderRef, isEditMode, tagList),
|
1188
|
+
} : (0,tag_input_namespaceObject.useTagsOverflow)(bkCascaderRef, isEditMode, tagList),
|
1920
1189
|
overflowTagIndex = _ref2.overflowTagIndex;
|
1921
1190
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1922
1191
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -2031,6 +1300,7 @@ var Store = /*#__PURE__*/function () {
|
|
2031
1300
|
"disabled": _this.disabled,
|
2032
1301
|
"offset": 4,
|
2033
1302
|
"placement": "bottom-start",
|
1303
|
+
"referenceCls": _this.resolveClassName('cascader-popover-reference'),
|
2034
1304
|
"theme": "light ".concat(_this.resolveClassName('cascader-popover')),
|
2035
1305
|
"trigger": "click",
|
2036
1306
|
"onAfterHidden": _this.popoverChangeEmitter,
|
@@ -2134,8 +1404,6 @@ var BkCascader = (0,shared_namespaceObject.withInstallProps)(cascader, {
|
|
2134
1404
|
});
|
2135
1405
|
/* harmony default export */ const src = (BkCascader);
|
2136
1406
|
|
2137
|
-
})();
|
2138
|
-
|
2139
1407
|
var __webpack_exports__BkCascader = __webpack_exports__.BkCascader;
|
2140
1408
|
var __webpack_exports__BkCascaderPanel = __webpack_exports__.BkCascaderPanel;
|
2141
1409
|
var __webpack_exports__default = __webpack_exports__["default"];
|