bkui-vue 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10405 -10394
- package/dist/index.umd.js +47 -47
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +19 -19
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/backtop/index.d.ts +69 -117
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +19 -20
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +20 -22
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +233 -234
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +39 -41
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +381 -438
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +21 -21
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +25 -28
- package/lib/config-provider/config-provider.d.ts +9 -0
- package/lib/config-provider/index.d.ts +168 -223
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/token.d.ts +3 -0
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +19 -19
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +92 -104
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +227 -228
- package/lib/directives/index.js +27 -27
- package/lib/divider/index.d.ts +57 -111
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +17 -17
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +18 -19
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/form/form.css +3 -0
- package/lib/form/form.d.ts +1 -1
- package/lib/form/form.less +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +29 -27
- package/lib/icon/angle-double-down-line.js +21 -21
- package/lib/icon/angle-double-left-line.js +21 -21
- package/lib/icon/angle-double-left.js +21 -21
- package/lib/icon/angle-double-right-line.js +21 -21
- package/lib/icon/angle-double-right.js +21 -21
- package/lib/icon/angle-double-up-line.js +21 -21
- package/lib/icon/angle-down-fill.js +21 -21
- package/lib/icon/angle-down-line.js +21 -21
- package/lib/icon/angle-down.js +21 -21
- package/lib/icon/angle-left.js +21 -21
- package/lib/icon/angle-right.js +21 -21
- package/lib/icon/angle-up-fill.js +21 -21
- package/lib/icon/angle-up.js +21 -21
- package/lib/icon/archive-fill.js +21 -21
- package/lib/icon/arrows-left.js +21 -21
- package/lib/icon/arrows-right.js +21 -21
- package/lib/icon/assistant.js +21 -21
- package/lib/icon/audio-fill.js +21 -21
- package/lib/icon/bk.js +21 -21
- package/lib/icon/circle.js +21 -21
- package/lib/icon/close-line.js +21 -21
- package/lib/icon/close.js +21 -21
- package/lib/icon/code.js +21 -21
- package/lib/icon/cog-shape.js +21 -21
- package/lib/icon/collapse-left.js +21 -21
- package/lib/icon/copy-shape.js +21 -21
- package/lib/icon/copy.js +21 -21
- package/lib/icon/data-shape.js +21 -21
- package/lib/icon/del.js +21 -21
- package/lib/icon/doc-fill.js +21 -21
- package/lib/icon/done.js +21 -21
- package/lib/icon/down-shape.js +21 -21
- package/lib/icon/down-small.js +21 -21
- package/lib/icon/edit-line.js +21 -21
- package/lib/icon/ellipsis.js +21 -21
- package/lib/icon/enlarge-line.js +21 -21
- package/lib/icon/error.js +21 -21
- package/lib/icon/excel-fill.js +21 -21
- package/lib/icon/exclamation-circle-shape.js +21 -21
- package/lib/icon/eye.js +21 -21
- package/lib/icon/filliscreen-line.js +21 -21
- package/lib/icon/fix-line.js +21 -21
- package/lib/icon/fix-shape.js +21 -21
- package/lib/icon/folder-open.js +21 -21
- package/lib/icon/folder-shape-open.js +21 -21
- package/lib/icon/folder-shape.js +21 -21
- package/lib/icon/folder.js +21 -21
- package/lib/icon/funnel.js +21 -21
- package/lib/icon/grag-fill.js +21 -21
- package/lib/icon/help-document-fill.js +21 -21
- package/lib/icon/help-fill.js +21 -21
- package/lib/icon/help.js +21 -21
- package/lib/icon/image-fill.js +22 -22
- package/lib/icon/img-error.js +22 -22
- package/lib/icon/img-placehoulder.js +22 -22
- package/lib/icon/index.js +192 -192
- package/lib/icon/info-line.js +22 -22
- package/lib/icon/info.js +22 -22
- package/lib/icon/left-shape.js +22 -22
- package/lib/icon/left-turn-line.js +22 -22
- package/lib/icon/loading.js +22 -22
- package/lib/icon/narrow-line.js +22 -22
- package/lib/icon/original.js +22 -22
- package/lib/icon/pdf-fill.js +22 -22
- package/lib/icon/play-shape.js +22 -22
- package/lib/icon/plus.js +22 -22
- package/lib/icon/ppt-fill.js +22 -22
- package/lib/icon/qq.js +22 -22
- package/lib/icon/right-shape.js +22 -22
- package/lib/icon/right-turn-line.js +22 -22
- package/lib/icon/search.js +22 -22
- package/lib/icon/share.js +22 -22
- package/lib/icon/spinner.js +22 -22
- package/lib/icon/success.js +22 -22
- package/lib/icon/switcher-loading.js +22 -22
- package/lib/icon/text-file.js +22 -22
- package/lib/icon/text-fill.js +22 -22
- package/lib/icon/transfer.js +22 -22
- package/lib/icon/tree-application-shape.js +22 -22
- package/lib/icon/unfull-screen.js +22 -22
- package/lib/icon/unvisible.js +22 -22
- package/lib/icon/up-shape.js +22 -22
- package/lib/icon/upload.js +22 -22
- package/lib/icon/video-fill.js +22 -22
- package/lib/icon/warn.js +22 -22
- package/lib/icon/weixin-pro.js +22 -22
- package/lib/icon/weixin.js +22 -22
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +19 -19
- package/lib/info-box/index.js +231 -232
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +256 -258
- package/lib/link/index.d.ts +73 -122
- package/lib/loading/index.d.ts +132 -158
- package/lib/loading/index.js +23 -25
- package/lib/loading/loading.d.ts +4 -4
- package/lib/locale/index.js +8 -12
- package/lib/locale/lang/en.d.ts +3 -0
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +25 -25
- package/lib/message/index.js +28 -30
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +492 -33
- package/lib/navigation/index.d.ts +152 -188
- package/lib/notify/index.js +22 -24
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +1 -1
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +49 -56
- package/lib/plugin-popover/index.js +192 -98
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +0 -1
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +192 -98
- package/lib/popover2/index.d.ts +8 -83
- package/lib/preset.d.ts +287 -2
- package/lib/preset.js +3 -1
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +225 -226
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +19 -19
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +41 -43
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +19 -20
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +20 -21
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +239 -240
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +259 -262
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +81 -63
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +241 -247
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +208 -209
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +227 -228
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +20 -22
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +23 -25
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +81 -95
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +18 -19
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +54 -62
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +191 -206
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +36 -39
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +254 -257
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +30 -30
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +7 -13
package/lib/select/index.js
CHANGED
@@ -28,304 +28,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
28
28
|
function _regeneratorRuntime() {
|
29
29
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
30
30
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
31
|
-
return
|
31
|
+
return e;
|
32
32
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
33
|
-
var
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
var t,
|
34
|
+
e = {},
|
35
|
+
r = Object.prototype,
|
36
|
+
n = r.hasOwnProperty,
|
37
|
+
o = Object.defineProperty || function (t, e, r) {
|
38
|
+
t[e] = r.value;
|
38
39
|
},
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
function define(
|
44
|
-
return Object.defineProperty(
|
45
|
-
value:
|
40
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
41
|
+
a = i.iterator || "@@iterator",
|
42
|
+
c = i.asyncIterator || "@@asyncIterator",
|
43
|
+
u = i.toStringTag || "@@toStringTag";
|
44
|
+
function define(t, e, r) {
|
45
|
+
return Object.defineProperty(t, e, {
|
46
|
+
value: r,
|
46
47
|
enumerable: !0,
|
47
48
|
configurable: !0,
|
48
49
|
writable: !0
|
49
|
-
}),
|
50
|
+
}), t[e];
|
50
51
|
}
|
51
52
|
try {
|
52
53
|
define({}, "");
|
53
|
-
} catch (
|
54
|
-
define = function define(
|
55
|
-
return
|
54
|
+
} catch (t) {
|
55
|
+
define = function define(t, e, r) {
|
56
|
+
return t[e] = r;
|
56
57
|
};
|
57
58
|
}
|
58
|
-
function wrap(
|
59
|
-
var
|
60
|
-
|
61
|
-
|
62
|
-
return
|
63
|
-
value: makeInvokeMethod(
|
64
|
-
}),
|
59
|
+
function wrap(t, e, r, n) {
|
60
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
61
|
+
a = Object.create(i.prototype),
|
62
|
+
c = new Context(n || []);
|
63
|
+
return o(a, "_invoke", {
|
64
|
+
value: makeInvokeMethod(t, r, c)
|
65
|
+
}), a;
|
65
66
|
}
|
66
|
-
function tryCatch(
|
67
|
+
function tryCatch(t, e, r) {
|
67
68
|
try {
|
68
69
|
return {
|
69
70
|
type: "normal",
|
70
|
-
arg:
|
71
|
+
arg: t.call(e, r)
|
71
72
|
};
|
72
|
-
} catch (
|
73
|
+
} catch (t) {
|
73
74
|
return {
|
74
75
|
type: "throw",
|
75
|
-
arg:
|
76
|
+
arg: t
|
76
77
|
};
|
77
78
|
}
|
78
79
|
}
|
79
|
-
|
80
|
-
var
|
80
|
+
e.wrap = wrap;
|
81
|
+
var h = "suspendedStart",
|
82
|
+
l = "suspendedYield",
|
83
|
+
f = "executing",
|
84
|
+
s = "completed",
|
85
|
+
y = {};
|
81
86
|
function Generator() {}
|
82
87
|
function GeneratorFunction() {}
|
83
88
|
function GeneratorFunctionPrototype() {}
|
84
|
-
var
|
85
|
-
define(
|
89
|
+
var p = {};
|
90
|
+
define(p, a, function () {
|
86
91
|
return this;
|
87
92
|
});
|
88
|
-
var
|
89
|
-
|
90
|
-
|
91
|
-
var
|
92
|
-
function defineIteratorMethods(
|
93
|
-
["next", "throw", "return"].forEach(function (
|
94
|
-
define(
|
95
|
-
return this._invoke(
|
93
|
+
var d = Object.getPrototypeOf,
|
94
|
+
v = d && d(d(values([])));
|
95
|
+
v && v !== r && n.call(v, a) && (p = v);
|
96
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
97
|
+
function defineIteratorMethods(t) {
|
98
|
+
["next", "throw", "return"].forEach(function (e) {
|
99
|
+
define(t, e, function (t) {
|
100
|
+
return this._invoke(e, t);
|
96
101
|
});
|
97
102
|
});
|
98
103
|
}
|
99
|
-
function AsyncIterator(
|
100
|
-
function invoke(
|
101
|
-
var
|
102
|
-
if ("throw" !==
|
103
|
-
var
|
104
|
-
|
105
|
-
return
|
106
|
-
invoke("next",
|
107
|
-
}, function (
|
108
|
-
invoke("throw",
|
109
|
-
}) :
|
110
|
-
|
111
|
-
}, function (
|
112
|
-
return invoke("throw",
|
104
|
+
function AsyncIterator(t, e) {
|
105
|
+
function invoke(r, o, i, a) {
|
106
|
+
var c = tryCatch(t[r], t, o);
|
107
|
+
if ("throw" !== c.type) {
|
108
|
+
var u = c.arg,
|
109
|
+
h = u.value;
|
110
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
111
|
+
invoke("next", t, i, a);
|
112
|
+
}, function (t) {
|
113
|
+
invoke("throw", t, i, a);
|
114
|
+
}) : e.resolve(h).then(function (t) {
|
115
|
+
u.value = t, i(u);
|
116
|
+
}, function (t) {
|
117
|
+
return invoke("throw", t, i, a);
|
113
118
|
});
|
114
119
|
}
|
115
|
-
|
120
|
+
a(c.arg);
|
116
121
|
}
|
117
|
-
var
|
118
|
-
|
119
|
-
value: function value(
|
122
|
+
var r;
|
123
|
+
o(this, "_invoke", {
|
124
|
+
value: function value(t, n) {
|
120
125
|
function callInvokeWithMethodAndArg() {
|
121
|
-
return new
|
122
|
-
invoke(
|
126
|
+
return new e(function (e, r) {
|
127
|
+
invoke(t, n, e, r);
|
123
128
|
});
|
124
129
|
}
|
125
|
-
return
|
130
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
126
131
|
}
|
127
132
|
});
|
128
133
|
}
|
129
|
-
function makeInvokeMethod(
|
130
|
-
var
|
131
|
-
return function (
|
132
|
-
if (
|
133
|
-
if (
|
134
|
-
if ("throw" ===
|
135
|
-
return
|
134
|
+
function makeInvokeMethod(e, r, n) {
|
135
|
+
var o = h;
|
136
|
+
return function (i, a) {
|
137
|
+
if (o === f) throw new Error("Generator is already running");
|
138
|
+
if (o === s) {
|
139
|
+
if ("throw" === i) throw a;
|
140
|
+
return {
|
141
|
+
value: t,
|
142
|
+
done: !0
|
143
|
+
};
|
136
144
|
}
|
137
|
-
for (
|
138
|
-
var
|
139
|
-
if (
|
140
|
-
var
|
141
|
-
if (
|
142
|
-
if (
|
143
|
-
return
|
145
|
+
for (n.method = i, n.arg = a;;) {
|
146
|
+
var c = n.delegate;
|
147
|
+
if (c) {
|
148
|
+
var u = maybeInvokeDelegate(c, n);
|
149
|
+
if (u) {
|
150
|
+
if (u === y) continue;
|
151
|
+
return u;
|
144
152
|
}
|
145
153
|
}
|
146
|
-
if ("next" ===
|
147
|
-
if (
|
148
|
-
|
149
|
-
} else "return" ===
|
150
|
-
|
151
|
-
var
|
152
|
-
if ("normal" ===
|
153
|
-
if (
|
154
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
155
|
+
if (o === h) throw o = s, n.arg;
|
156
|
+
n.dispatchException(n.arg);
|
157
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
158
|
+
o = f;
|
159
|
+
var p = tryCatch(e, r, n);
|
160
|
+
if ("normal" === p.type) {
|
161
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
154
162
|
return {
|
155
|
-
value:
|
156
|
-
done:
|
163
|
+
value: p.arg,
|
164
|
+
done: n.done
|
157
165
|
};
|
158
166
|
}
|
159
|
-
"throw" ===
|
167
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
160
168
|
}
|
161
169
|
};
|
162
170
|
}
|
163
|
-
function maybeInvokeDelegate(
|
164
|
-
var
|
165
|
-
|
166
|
-
if (
|
167
|
-
var
|
168
|
-
if ("throw" ===
|
169
|
-
var
|
170
|
-
return
|
171
|
+
function maybeInvokeDelegate(e, r) {
|
172
|
+
var n = r.method,
|
173
|
+
o = e.iterator[n];
|
174
|
+
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;
|
175
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
176
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
177
|
+
var a = i.arg;
|
178
|
+
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);
|
171
179
|
}
|
172
|
-
function pushTryEntry(
|
173
|
-
var
|
174
|
-
tryLoc:
|
180
|
+
function pushTryEntry(t) {
|
181
|
+
var e = {
|
182
|
+
tryLoc: t[0]
|
175
183
|
};
|
176
|
-
1 in
|
184
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
177
185
|
}
|
178
|
-
function resetTryEntry(
|
179
|
-
var
|
180
|
-
|
186
|
+
function resetTryEntry(t) {
|
187
|
+
var e = t.completion || {};
|
188
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
181
189
|
}
|
182
|
-
function Context(
|
190
|
+
function Context(t) {
|
183
191
|
this.tryEntries = [{
|
184
192
|
tryLoc: "root"
|
185
|
-
}],
|
193
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
186
194
|
}
|
187
|
-
function values(
|
188
|
-
if (
|
189
|
-
var
|
190
|
-
if (
|
191
|
-
if ("function" == typeof
|
192
|
-
if (!isNaN(
|
193
|
-
var
|
194
|
-
|
195
|
-
for (; ++
|
196
|
-
return next.value =
|
195
|
+
function values(e) {
|
196
|
+
if (e || "" === e) {
|
197
|
+
var r = e[a];
|
198
|
+
if (r) return r.call(e);
|
199
|
+
if ("function" == typeof e.next) return e;
|
200
|
+
if (!isNaN(e.length)) {
|
201
|
+
var o = -1,
|
202
|
+
i = function next() {
|
203
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
204
|
+
return next.value = t, next.done = !0, next;
|
197
205
|
};
|
198
|
-
return
|
206
|
+
return i.next = i;
|
199
207
|
}
|
200
208
|
}
|
201
|
-
|
202
|
-
next: doneResult
|
203
|
-
};
|
209
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
204
210
|
}
|
205
|
-
|
206
|
-
return {
|
207
|
-
value: undefined,
|
208
|
-
done: !0
|
209
|
-
};
|
210
|
-
}
|
211
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
211
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
212
212
|
value: GeneratorFunctionPrototype,
|
213
213
|
configurable: !0
|
214
|
-
}),
|
214
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
215
215
|
value: GeneratorFunction,
|
216
216
|
configurable: !0
|
217
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
218
|
-
var
|
219
|
-
return !!
|
220
|
-
},
|
221
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
222
|
-
},
|
217
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
218
|
+
var e = "function" == typeof t && t.constructor;
|
219
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
220
|
+
}, e.mark = function (t) {
|
221
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
222
|
+
}, e.awrap = function (t) {
|
223
223
|
return {
|
224
|
-
__await:
|
224
|
+
__await: t
|
225
225
|
};
|
226
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
226
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
227
227
|
return this;
|
228
|
-
}),
|
229
|
-
void 0 ===
|
230
|
-
var
|
231
|
-
return
|
232
|
-
return
|
228
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
229
|
+
void 0 === i && (i = Promise);
|
230
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
231
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
232
|
+
return t.done ? t.value : a.next();
|
233
233
|
});
|
234
|
-
}, defineIteratorMethods(
|
234
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
235
235
|
return this;
|
236
|
-
}), define(
|
236
|
+
}), define(g, "toString", function () {
|
237
237
|
return "[object Generator]";
|
238
|
-
}),
|
239
|
-
var
|
240
|
-
|
241
|
-
for (var
|
242
|
-
return
|
243
|
-
for (;
|
244
|
-
var
|
245
|
-
if (
|
238
|
+
}), e.keys = function (t) {
|
239
|
+
var e = Object(t),
|
240
|
+
r = [];
|
241
|
+
for (var n in e) r.push(n);
|
242
|
+
return r.reverse(), function next() {
|
243
|
+
for (; r.length;) {
|
244
|
+
var t = r.pop();
|
245
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
246
246
|
}
|
247
247
|
return next.done = !0, next;
|
248
248
|
};
|
249
|
-
},
|
249
|
+
}, e.values = values, Context.prototype = {
|
250
250
|
constructor: Context,
|
251
|
-
reset: function reset(
|
252
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
251
|
+
reset: function reset(e) {
|
252
|
+
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);
|
253
253
|
},
|
254
254
|
stop: function stop() {
|
255
255
|
this.done = !0;
|
256
|
-
var
|
257
|
-
if ("throw" ===
|
256
|
+
var t = this.tryEntries[0].completion;
|
257
|
+
if ("throw" === t.type) throw t.arg;
|
258
258
|
return this.rval;
|
259
259
|
},
|
260
|
-
dispatchException: function dispatchException(
|
261
|
-
if (this.done) throw
|
262
|
-
var
|
263
|
-
function handle(
|
264
|
-
return
|
260
|
+
dispatchException: function dispatchException(e) {
|
261
|
+
if (this.done) throw e;
|
262
|
+
var r = this;
|
263
|
+
function handle(n, o) {
|
264
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
265
265
|
}
|
266
|
-
for (var
|
267
|
-
var
|
268
|
-
|
269
|
-
if ("root" ===
|
270
|
-
if (
|
271
|
-
var
|
272
|
-
|
273
|
-
if (
|
274
|
-
if (this.prev <
|
275
|
-
if (this.prev <
|
276
|
-
} else if (
|
277
|
-
if (this.prev <
|
266
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
267
|
+
var i = this.tryEntries[o],
|
268
|
+
a = i.completion;
|
269
|
+
if ("root" === i.tryLoc) return handle("end");
|
270
|
+
if (i.tryLoc <= this.prev) {
|
271
|
+
var c = n.call(i, "catchLoc"),
|
272
|
+
u = n.call(i, "finallyLoc");
|
273
|
+
if (c && u) {
|
274
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
275
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
276
|
+
} else if (c) {
|
277
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
278
278
|
} else {
|
279
|
-
if (!
|
280
|
-
if (this.prev <
|
279
|
+
if (!u) throw new Error("try statement without catch or finally");
|
280
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
281
281
|
}
|
282
282
|
}
|
283
283
|
}
|
284
284
|
},
|
285
|
-
abrupt: function abrupt(
|
286
|
-
for (var
|
287
|
-
var
|
288
|
-
if (
|
289
|
-
var
|
285
|
+
abrupt: function abrupt(t, e) {
|
286
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
287
|
+
var o = this.tryEntries[r];
|
288
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
289
|
+
var i = o;
|
290
290
|
break;
|
291
291
|
}
|
292
292
|
}
|
293
|
-
|
294
|
-
var
|
295
|
-
return
|
293
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
294
|
+
var a = i ? i.completion : {};
|
295
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
296
296
|
},
|
297
|
-
complete: function complete(
|
298
|
-
if ("throw" ===
|
299
|
-
return "break" ===
|
297
|
+
complete: function complete(t, e) {
|
298
|
+
if ("throw" === t.type) throw t.arg;
|
299
|
+
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;
|
300
300
|
},
|
301
|
-
finish: function finish(
|
302
|
-
for (var
|
303
|
-
var
|
304
|
-
if (
|
301
|
+
finish: function finish(t) {
|
302
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
303
|
+
var r = this.tryEntries[e];
|
304
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
305
305
|
}
|
306
306
|
},
|
307
|
-
"catch": function _catch(
|
308
|
-
for (var
|
309
|
-
var
|
310
|
-
if (
|
311
|
-
var
|
312
|
-
if ("throw" ===
|
313
|
-
var
|
314
|
-
resetTryEntry(
|
307
|
+
"catch": function _catch(t) {
|
308
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
309
|
+
var r = this.tryEntries[e];
|
310
|
+
if (r.tryLoc === t) {
|
311
|
+
var n = r.completion;
|
312
|
+
if ("throw" === n.type) {
|
313
|
+
var o = n.arg;
|
314
|
+
resetTryEntry(r);
|
315
315
|
}
|
316
|
-
return
|
316
|
+
return o;
|
317
317
|
}
|
318
318
|
}
|
319
319
|
throw new Error("illegal catch attempt");
|
320
320
|
},
|
321
|
-
delegateYield: function delegateYield(
|
321
|
+
delegateYield: function delegateYield(e, r, n) {
|
322
322
|
return this.delegate = {
|
323
|
-
iterator: values(
|
324
|
-
resultName:
|
325
|
-
nextLoc:
|
326
|
-
}, "next" === this.method && (this.arg =
|
323
|
+
iterator: values(e),
|
324
|
+
resultName: r,
|
325
|
+
nextLoc: n
|
326
|
+
}, "next" === this.method && (this.arg = t), y;
|
327
327
|
}
|
328
|
-
},
|
328
|
+
}, e;
|
329
329
|
}
|
330
330
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
331
331
|
|
@@ -334,14 +334,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
334
334
|
/***/ 7425:
|
335
335
|
/***/ ((module) => {
|
336
336
|
|
337
|
-
function _typeof(
|
337
|
+
function _typeof(o) {
|
338
338
|
"@babel/helpers - typeof";
|
339
339
|
|
340
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
341
|
-
return typeof
|
342
|
-
} : function (
|
343
|
-
return
|
344
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
340
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
341
|
+
return typeof o;
|
342
|
+
} : function (o) {
|
343
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
344
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
345
345
|
}
|
346
346
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
347
347
|
|
@@ -443,38 +443,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
443
443
|
var y = x => () => x
|
444
444
|
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
445
445
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
446
|
-
function _typeof(
|
446
|
+
function _typeof(o) {
|
447
447
|
"@babel/helpers - typeof";
|
448
448
|
|
449
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
450
|
-
return typeof
|
451
|
-
} : function (
|
452
|
-
return
|
453
|
-
}, _typeof(
|
449
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
450
|
+
return typeof o;
|
451
|
+
} : function (o) {
|
452
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
453
|
+
}, _typeof(o);
|
454
454
|
}
|
455
455
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
456
456
|
|
457
|
-
function
|
458
|
-
if (
|
459
|
-
var
|
460
|
-
if (
|
461
|
-
var
|
462
|
-
if (
|
457
|
+
function toPrimitive(t, r) {
|
458
|
+
if ("object" != _typeof(t) || !t) return t;
|
459
|
+
var e = t[Symbol.toPrimitive];
|
460
|
+
if (void 0 !== e) {
|
461
|
+
var i = e.call(t, r || "default");
|
462
|
+
if ("object" != _typeof(i)) return i;
|
463
463
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
464
464
|
}
|
465
|
-
return (
|
465
|
+
return ("string" === r ? String : Number)(t);
|
466
466
|
}
|
467
467
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
468
468
|
|
469
469
|
|
470
|
-
function
|
471
|
-
var
|
472
|
-
return _typeof(
|
470
|
+
function toPropertyKey(t) {
|
471
|
+
var i = toPrimitive(t, "string");
|
472
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
473
473
|
}
|
474
474
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
475
475
|
|
476
476
|
function _defineProperty(obj, key, value) {
|
477
|
-
key =
|
477
|
+
key = toPropertyKey(key);
|
478
478
|
if (key in obj) {
|
479
479
|
Object.defineProperty(obj, key, {
|
480
480
|
value: value,
|
@@ -660,7 +660,7 @@ function usePopover(config, triggerRef) {
|
|
660
660
|
});
|
661
661
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
662
662
|
var _observerIns;
|
663
|
-
(_observerIns = observerIns) === null || _observerIns === void 0
|
663
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 || _observerIns.stop();
|
664
664
|
observerIns = null;
|
665
665
|
});
|
666
666
|
return {
|
@@ -696,7 +696,7 @@ function useRemoteSearch(method, callBack) {
|
|
696
696
|
console.error(_context.t0);
|
697
697
|
case 10:
|
698
698
|
_context.prev = 10;
|
699
|
-
callBack === null || callBack === void 0
|
699
|
+
callBack === null || callBack === void 0 || callBack();
|
700
700
|
return _context.finish(10);
|
701
701
|
case 13:
|
702
702
|
case "end":
|
@@ -729,8 +729,8 @@ function isInViewPort(el, client) {
|
|
729
729
|
;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
|
730
730
|
|
731
731
|
|
732
|
-
function ownKeys(
|
733
|
-
function _objectSpread(
|
732
|
+
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; }
|
733
|
+
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; }
|
734
734
|
/* eslint-disable vue/no-reserved-component-names */
|
735
735
|
/*
|
736
736
|
* Tencent is pleased to support the open source community by making
|
@@ -834,21 +834,21 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
834
834
|
if (isDisabled.value) return;
|
835
835
|
if (isShowAll.value && allOptionId.value === optionID.value) {
|
836
836
|
// 全部选项
|
837
|
-
select === null || select === void 0
|
837
|
+
select === null || select === void 0 || select.handleToggleAll();
|
838
838
|
} else {
|
839
|
-
select === null || select === void 0
|
839
|
+
select === null || select === void 0 || select.handleOptionSelected(proxy);
|
840
840
|
}
|
841
841
|
};
|
842
842
|
var handleMouseEnter = function handleMouseEnter() {
|
843
843
|
select.activeOptionValue = optionID.value;
|
844
844
|
};
|
845
845
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
846
|
-
select === null || select === void 0
|
847
|
-
group === null || group === void 0
|
846
|
+
select === null || select === void 0 || select.register(optionID.value, proxy);
|
847
|
+
group === null || group === void 0 || group.register(optionID.value, proxy);
|
848
848
|
});
|
849
849
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
850
|
-
select === null || select === void 0
|
851
|
-
group === null || group === void 0
|
850
|
+
select === null || select === void 0 || select.unregister(optionID.value);
|
851
|
+
group === null || group === void 0 || group.unregister(optionID.value);
|
852
852
|
});
|
853
853
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
854
854
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -934,8 +934,8 @@ function _toConsumableArray(arr) {
|
|
934
934
|
|
935
935
|
|
936
936
|
|
937
|
-
function optionGroup_ownKeys(
|
938
|
-
function optionGroup_objectSpread(
|
937
|
+
function optionGroup_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; }
|
938
|
+
function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? optionGroup_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : optionGroup_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
939
939
|
/*
|
940
940
|
* Tencent is pleased to support the open source community by making
|
941
941
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1003,10 +1003,10 @@ function optionGroup_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
1003
1003
|
groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
|
1004
1004
|
})));
|
1005
1005
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
1006
|
-
select === null || select === void 0
|
1006
|
+
select === null || select === void 0 || select.registerGroup(instance.uid, proxy);
|
1007
1007
|
});
|
1008
1008
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1009
|
-
select === null || select === void 0
|
1009
|
+
select === null || select === void 0 || select.unregisterGroup(instance.uid);
|
1010
1010
|
});
|
1011
1011
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1012
1012
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -1017,9 +1017,9 @@ function optionGroup_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
1017
1017
|
});
|
1018
1018
|
},
|
1019
1019
|
render: function render() {
|
1020
|
-
var
|
1021
|
-
var groupClass = (0,shared_namespaceObject.classes)((
|
1022
|
-
var groupLabelClass = (0,shared_namespaceObject.classes)((
|
1020
|
+
var _this$$slots$default, _this$$slots;
|
1021
|
+
var groupClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('option-group'), true), "collapsible", this.collapsible), "disabled", this.disabled));
|
1022
|
+
var groupLabelClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, this.resolveClassName('option-group-label'), true), "collapsible", this.collapsible));
|
1023
1023
|
var groupLabelIconClass = (0,shared_namespaceObject.classes)({
|
1024
1024
|
'default-group-label-icon': true,
|
1025
1025
|
collapse: this.groupCollapse
|
@@ -1179,11 +1179,11 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1179
1179
|
};
|
1180
1180
|
var focus = function focus() {
|
1181
1181
|
var _inputRef$value;
|
1182
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1182
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
1183
1183
|
};
|
1184
1184
|
var blur = function blur() {
|
1185
1185
|
var _inputRef$value2;
|
1186
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
1186
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
1187
1187
|
};
|
1188
1188
|
var handleInput = function handleInput(e) {
|
1189
1189
|
emit('update:modelValue', e.target.value);
|
@@ -1262,7 +1262,6 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1262
1262
|
render: function render() {
|
1263
1263
|
var _this$$slots,
|
1264
1264
|
_this$$slots$prefix,
|
1265
|
-
_classes,
|
1266
1265
|
_this$$slots2,
|
1267
1266
|
_this$$slots2$prefix,
|
1268
1267
|
_this$$slots$default,
|
@@ -1272,7 +1271,7 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1272
1271
|
_this$$slots4,
|
1273
1272
|
_this$$slots4$suffix;
|
1274
1273
|
var prefix = (_this$$slots = this.$slots) === null || _this$$slots === void 0 || (_this$$slots$prefix = _this$$slots.prefix) === null || _this$$slots$prefix === void 0 ? void 0 : _this$$slots$prefix.call(_this$$slots);
|
1275
|
-
var selectTagClass = (0,shared_namespaceObject.classes)((
|
1274
|
+
var selectTagClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('select-tag'), true), this.resolveClassName('select-tag--default'), true), 'is-disabled', this.disabled), 'collapse-tag', this.collapseTags), 'has-prefix', !!prefix));
|
1276
1275
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
1277
1276
|
var inputStyle = {
|
1278
1277
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
@@ -1336,8 +1335,8 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1336
1335
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1337
1336
|
function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return select_arrayLikeToArray(o, minLen); }
|
1338
1337
|
function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1339
|
-
function select_ownKeys(
|
1340
|
-
function select_objectSpread(
|
1338
|
+
function select_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; }
|
1339
|
+
function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? select_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : select_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1341
1340
|
/* eslint-disable vue/no-reserved-component-names */
|
1342
1341
|
/*
|
1343
1342
|
* Tencent is pleased to support the open source community by making
|
@@ -1435,7 +1434,6 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1435
1434
|
type: Function
|
1436
1435
|
} // 配置当前options的过滤规则
|
1437
1436
|
},
|
1438
|
-
|
1439
1437
|
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect'],
|
1440
1438
|
setup: function setup(props, _ref) {
|
1441
1439
|
var emit = _ref.emit;
|
@@ -1544,14 +1542,14 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1544
1542
|
handleSetSelectedData();
|
1545
1543
|
if (props.withValidate) {
|
1546
1544
|
var _formItem$validate;
|
1547
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
1545
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
1548
1546
|
}
|
1549
1547
|
}, {
|
1550
1548
|
deep: true
|
1551
1549
|
});
|
1552
1550
|
(0,external_vue_namespaceObject.watch)(selected, function () {
|
1553
1551
|
var _popoverRef$value;
|
1554
|
-
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0
|
1552
|
+
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
|
1555
1553
|
});
|
1556
1554
|
// 虚拟滚动模式下搜索后的值
|
1557
1555
|
var virtualList = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -1711,7 +1709,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1711
1709
|
var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
|
1712
1710
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
1713
1711
|
var optionsDom = (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 || (_contentRef$value$que = _contentRef$value.querySelectorAll) === null || _contentRef$value$que === void 0 ? void 0 : _contentRef$value$que.call(_contentRef$value, '.is-selected');
|
1714
|
-
(_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0
|
1712
|
+
(_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
1715
1713
|
block: 'center',
|
1716
1714
|
behavior: 'smooth'
|
1717
1715
|
});
|
@@ -1847,14 +1845,14 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1847
1845
|
setTimeout(function () {
|
1848
1846
|
if (!inputSearch.value && !allowCreate.value) {
|
1849
1847
|
var _searchRef$value;
|
1850
|
-
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0
|
1848
|
+
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 || _searchRef$value.focus();
|
1851
1849
|
} else {
|
1852
1850
|
if (multipleMode.value === 'tag') {
|
1853
1851
|
var _selectTagInputRef$va;
|
1854
|
-
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0
|
1852
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 || _selectTagInputRef$va.focus();
|
1855
1853
|
} else {
|
1856
1854
|
var _inputRef$value;
|
1857
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1855
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
1858
1856
|
}
|
1859
1857
|
}
|
1860
1858
|
}, 0);
|
@@ -1864,10 +1862,10 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1864
1862
|
setTimeout(function () {
|
1865
1863
|
if (multipleMode.value === 'tag') {
|
1866
1864
|
var _selectTagInputRef$va2;
|
1867
|
-
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0
|
1865
|
+
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 || _selectTagInputRef$va2.blur();
|
1868
1866
|
} else {
|
1869
1867
|
var _inputRef$value2;
|
1870
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
1868
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
1871
1869
|
}
|
1872
1870
|
}, 0);
|
1873
1871
|
};
|
@@ -1895,7 +1893,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1895
1893
|
label: option.optionName || option.optionID
|
1896
1894
|
});
|
1897
1895
|
});
|
1898
|
-
(_list$value = list.value) === null || _list$value === void 0
|
1896
|
+
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
1899
1897
|
if (item.disabled || item[idKey.value] in cacheSelectedMap.value) return;
|
1900
1898
|
selected.value.push({
|
1901
1899
|
value: item[idKey.value],
|
@@ -2021,7 +2019,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2021
2019
|
}
|
2022
2020
|
if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
|
2023
2021
|
var _availableOptions$act2;
|
2024
|
-
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0
|
2022
|
+
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 || _availableOptions$act2.scrollIntoView();
|
2025
2023
|
}
|
2026
2024
|
activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
|
2027
2025
|
break;
|
@@ -2144,9 +2142,8 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2144
2142
|
};
|
2145
2143
|
},
|
2146
2144
|
render: function render() {
|
2147
|
-
var
|
2148
|
-
|
2149
|
-
var selectClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('select')), true), _defineProperty(_classes, 'popover-show', this.isPopoverShow), _defineProperty(_classes, 'is-disabled', this.isDisabled), _defineProperty(_classes, 'is-focus', this.isFocus), _defineProperty(_classes, 'is-filterable', this.filterable), _defineProperty(_classes, this.size, true), _defineProperty(_classes, this.behavior, true), _classes));
|
2145
|
+
var _this = this;
|
2146
|
+
var selectClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('select')), true), 'popover-show', this.isPopoverShow), 'is-disabled', this.isDisabled), 'is-focus', this.isFocus), 'is-filterable', this.filterable), this.size, true), this.behavior, true));
|
2150
2147
|
var suffixIcon = function suffixIcon() {
|
2151
2148
|
if (_this.loading) {
|
2152
2149
|
return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|