bkui-vue 0.0.3-beta.2 → 0.0.3-beta.2-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 +48 -48
- package/dist/index.esm.js +10567 -10537
- package/dist/index.umd.js +48 -48
- 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 +380 -437
- 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/index.d.ts +156 -223
- package/lib/config-provider/index.js +19 -19
- 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 +345 -302
- 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.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +25 -26
- 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 +229 -230
- 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 +130 -156
- package/lib/loading/index.js +23 -25
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +0 -4
- 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 +251 -246
- package/lib/modal/index.js +24 -24
- 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/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/index.js +62 -64
- package/lib/sideslider/index.d.ts +237 -226
- package/lib/sideslider/index.js +227 -227
- 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 +161 -132
- package/lib/table/plugins/use-pagination.d.ts +3 -2
- package/lib/table/table.css +12 -5
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +15 -5
- package/lib/table/table.variable.css +12 -5
- package/lib/table/use-attributes.d.ts +40 -1
- package/lib/table/use-common.d.ts +68 -34
- package/lib/table-column/index.d.ts +206 -242
- 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 +334 -293
- 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 +1 -1
package/lib/select/index.js
CHANGED
@@ -21,304 +21,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
21
21
|
function _regeneratorRuntime() {
|
22
22
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
23
23
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
24
|
-
return
|
24
|
+
return e;
|
25
25
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
26
|
-
var
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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;
|
31
32
|
},
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
function define(
|
37
|
-
return Object.defineProperty(
|
38
|
-
value:
|
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,
|
39
40
|
enumerable: !0,
|
40
41
|
configurable: !0,
|
41
42
|
writable: !0
|
42
|
-
}),
|
43
|
+
}), t[e];
|
43
44
|
}
|
44
45
|
try {
|
45
46
|
define({}, "");
|
46
|
-
} catch (
|
47
|
-
define = function define(
|
48
|
-
return
|
47
|
+
} catch (t) {
|
48
|
+
define = function define(t, e, r) {
|
49
|
+
return t[e] = r;
|
49
50
|
};
|
50
51
|
}
|
51
|
-
function wrap(
|
52
|
-
var
|
53
|
-
|
54
|
-
|
55
|
-
return
|
56
|
-
value: makeInvokeMethod(
|
57
|
-
}),
|
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;
|
58
59
|
}
|
59
|
-
function tryCatch(
|
60
|
+
function tryCatch(t, e, r) {
|
60
61
|
try {
|
61
62
|
return {
|
62
63
|
type: "normal",
|
63
|
-
arg:
|
64
|
+
arg: t.call(e, r)
|
64
65
|
};
|
65
|
-
} catch (
|
66
|
+
} catch (t) {
|
66
67
|
return {
|
67
68
|
type: "throw",
|
68
|
-
arg:
|
69
|
+
arg: t
|
69
70
|
};
|
70
71
|
}
|
71
72
|
}
|
72
|
-
|
73
|
-
var
|
73
|
+
e.wrap = wrap;
|
74
|
+
var h = "suspendedStart",
|
75
|
+
l = "suspendedYield",
|
76
|
+
f = "executing",
|
77
|
+
s = "completed",
|
78
|
+
y = {};
|
74
79
|
function Generator() {}
|
75
80
|
function GeneratorFunction() {}
|
76
81
|
function GeneratorFunctionPrototype() {}
|
77
|
-
var
|
78
|
-
define(
|
82
|
+
var p = {};
|
83
|
+
define(p, a, function () {
|
79
84
|
return this;
|
80
85
|
});
|
81
|
-
var
|
82
|
-
|
83
|
-
|
84
|
-
var
|
85
|
-
function defineIteratorMethods(
|
86
|
-
["next", "throw", "return"].forEach(function (
|
87
|
-
define(
|
88
|
-
return this._invoke(
|
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);
|
89
94
|
});
|
90
95
|
});
|
91
96
|
}
|
92
|
-
function AsyncIterator(
|
93
|
-
function invoke(
|
94
|
-
var
|
95
|
-
if ("throw" !==
|
96
|
-
var
|
97
|
-
|
98
|
-
return
|
99
|
-
invoke("next",
|
100
|
-
}, function (
|
101
|
-
invoke("throw",
|
102
|
-
}) :
|
103
|
-
|
104
|
-
}, function (
|
105
|
-
return invoke("throw",
|
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);
|
106
111
|
});
|
107
112
|
}
|
108
|
-
|
113
|
+
a(c.arg);
|
109
114
|
}
|
110
|
-
var
|
111
|
-
|
112
|
-
value: function value(
|
115
|
+
var r;
|
116
|
+
o(this, "_invoke", {
|
117
|
+
value: function value(t, n) {
|
113
118
|
function callInvokeWithMethodAndArg() {
|
114
|
-
return new
|
115
|
-
invoke(
|
119
|
+
return new e(function (e, r) {
|
120
|
+
invoke(t, n, e, r);
|
116
121
|
});
|
117
122
|
}
|
118
|
-
return
|
123
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
119
124
|
}
|
120
125
|
});
|
121
126
|
}
|
122
|
-
function makeInvokeMethod(
|
123
|
-
var
|
124
|
-
return function (
|
125
|
-
if (
|
126
|
-
if (
|
127
|
-
if ("throw" ===
|
128
|
-
return
|
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
|
+
};
|
129
137
|
}
|
130
|
-
for (
|
131
|
-
var
|
132
|
-
if (
|
133
|
-
var
|
134
|
-
if (
|
135
|
-
if (
|
136
|
-
return
|
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;
|
137
145
|
}
|
138
146
|
}
|
139
|
-
if ("next" ===
|
140
|
-
if (
|
141
|
-
|
142
|
-
} else "return" ===
|
143
|
-
|
144
|
-
var
|
145
|
-
if ("normal" ===
|
146
|
-
if (
|
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;
|
147
155
|
return {
|
148
|
-
value:
|
149
|
-
done:
|
156
|
+
value: p.arg,
|
157
|
+
done: n.done
|
150
158
|
};
|
151
159
|
}
|
152
|
-
"throw" ===
|
160
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
153
161
|
}
|
154
162
|
};
|
155
163
|
}
|
156
|
-
function maybeInvokeDelegate(
|
157
|
-
var
|
158
|
-
|
159
|
-
if (
|
160
|
-
var
|
161
|
-
if ("throw" ===
|
162
|
-
var
|
163
|
-
return
|
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);
|
164
172
|
}
|
165
|
-
function pushTryEntry(
|
166
|
-
var
|
167
|
-
tryLoc:
|
173
|
+
function pushTryEntry(t) {
|
174
|
+
var e = {
|
175
|
+
tryLoc: t[0]
|
168
176
|
};
|
169
|
-
1 in
|
177
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
170
178
|
}
|
171
|
-
function resetTryEntry(
|
172
|
-
var
|
173
|
-
|
179
|
+
function resetTryEntry(t) {
|
180
|
+
var e = t.completion || {};
|
181
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
174
182
|
}
|
175
|
-
function Context(
|
183
|
+
function Context(t) {
|
176
184
|
this.tryEntries = [{
|
177
185
|
tryLoc: "root"
|
178
|
-
}],
|
186
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
179
187
|
}
|
180
|
-
function values(
|
181
|
-
if (
|
182
|
-
var
|
183
|
-
if (
|
184
|
-
if ("function" == typeof
|
185
|
-
if (!isNaN(
|
186
|
-
var
|
187
|
-
|
188
|
-
for (; ++
|
189
|
-
return next.value =
|
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;
|
190
198
|
};
|
191
|
-
return
|
199
|
+
return i.next = i;
|
192
200
|
}
|
193
201
|
}
|
194
|
-
|
195
|
-
next: doneResult
|
196
|
-
};
|
202
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
197
203
|
}
|
198
|
-
|
199
|
-
return {
|
200
|
-
value: undefined,
|
201
|
-
done: !0
|
202
|
-
};
|
203
|
-
}
|
204
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
204
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
205
205
|
value: GeneratorFunctionPrototype,
|
206
206
|
configurable: !0
|
207
|
-
}),
|
207
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
208
208
|
value: GeneratorFunction,
|
209
209
|
configurable: !0
|
210
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
211
|
-
var
|
212
|
-
return !!
|
213
|
-
},
|
214
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
215
|
-
},
|
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
216
|
return {
|
217
|
-
__await:
|
217
|
+
__await: t
|
218
218
|
};
|
219
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
219
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
220
220
|
return this;
|
221
|
-
}),
|
222
|
-
void 0 ===
|
223
|
-
var
|
224
|
-
return
|
225
|
-
return
|
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
226
|
});
|
227
|
-
}, defineIteratorMethods(
|
227
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
228
228
|
return this;
|
229
|
-
}), define(
|
229
|
+
}), define(g, "toString", function () {
|
230
230
|
return "[object Generator]";
|
231
|
-
}),
|
232
|
-
var
|
233
|
-
|
234
|
-
for (var
|
235
|
-
return
|
236
|
-
for (;
|
237
|
-
var
|
238
|
-
if (
|
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
239
|
}
|
240
240
|
return next.done = !0, next;
|
241
241
|
};
|
242
|
-
},
|
242
|
+
}, e.values = values, Context.prototype = {
|
243
243
|
constructor: Context,
|
244
|
-
reset: function reset(
|
245
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
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
246
|
},
|
247
247
|
stop: function stop() {
|
248
248
|
this.done = !0;
|
249
|
-
var
|
250
|
-
if ("throw" ===
|
249
|
+
var t = this.tryEntries[0].completion;
|
250
|
+
if ("throw" === t.type) throw t.arg;
|
251
251
|
return this.rval;
|
252
252
|
},
|
253
|
-
dispatchException: function dispatchException(
|
254
|
-
if (this.done) throw
|
255
|
-
var
|
256
|
-
function handle(
|
257
|
-
return
|
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
258
|
}
|
259
|
-
for (var
|
260
|
-
var
|
261
|
-
|
262
|
-
if ("root" ===
|
263
|
-
if (
|
264
|
-
var
|
265
|
-
|
266
|
-
if (
|
267
|
-
if (this.prev <
|
268
|
-
if (this.prev <
|
269
|
-
} else if (
|
270
|
-
if (this.prev <
|
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
271
|
} else {
|
272
|
-
if (!
|
273
|
-
if (this.prev <
|
272
|
+
if (!u) throw new Error("try statement without catch or finally");
|
273
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
274
274
|
}
|
275
275
|
}
|
276
276
|
}
|
277
277
|
},
|
278
|
-
abrupt: function abrupt(
|
279
|
-
for (var
|
280
|
-
var
|
281
|
-
if (
|
282
|
-
var
|
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
283
|
break;
|
284
284
|
}
|
285
285
|
}
|
286
|
-
|
287
|
-
var
|
288
|
-
return
|
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
289
|
},
|
290
|
-
complete: function complete(
|
291
|
-
if ("throw" ===
|
292
|
-
return "break" ===
|
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
293
|
},
|
294
|
-
finish: function finish(
|
295
|
-
for (var
|
296
|
-
var
|
297
|
-
if (
|
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
298
|
}
|
299
299
|
},
|
300
|
-
"catch": function _catch(
|
301
|
-
for (var
|
302
|
-
var
|
303
|
-
if (
|
304
|
-
var
|
305
|
-
if ("throw" ===
|
306
|
-
var
|
307
|
-
resetTryEntry(
|
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
308
|
}
|
309
|
-
return
|
309
|
+
return o;
|
310
310
|
}
|
311
311
|
}
|
312
312
|
throw new Error("illegal catch attempt");
|
313
313
|
},
|
314
|
-
delegateYield: function delegateYield(
|
314
|
+
delegateYield: function delegateYield(e, r, n) {
|
315
315
|
return this.delegate = {
|
316
|
-
iterator: values(
|
317
|
-
resultName:
|
318
|
-
nextLoc:
|
319
|
-
}, "next" === this.method && (this.arg =
|
316
|
+
iterator: values(e),
|
317
|
+
resultName: r,
|
318
|
+
nextLoc: n
|
319
|
+
}, "next" === this.method && (this.arg = t), y;
|
320
320
|
}
|
321
|
-
},
|
321
|
+
}, e;
|
322
322
|
}
|
323
323
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
324
324
|
|
@@ -327,14 +327,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
327
327
|
/***/ 7425:
|
328
328
|
/***/ ((module) => {
|
329
329
|
|
330
|
-
function _typeof(
|
330
|
+
function _typeof(o) {
|
331
331
|
"@babel/helpers - typeof";
|
332
332
|
|
333
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
334
|
-
return typeof
|
335
|
-
} : function (
|
336
|
-
return
|
337
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
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
338
|
}
|
339
339
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
340
340
|
|
@@ -436,38 +436,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
436
436
|
var y = x => () => x
|
437
437
|
const external_shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.observerResize, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
438
438
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
439
|
-
function _typeof(
|
439
|
+
function _typeof(o) {
|
440
440
|
"@babel/helpers - typeof";
|
441
441
|
|
442
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
443
|
-
return typeof
|
444
|
-
} : function (
|
445
|
-
return
|
446
|
-
}, _typeof(
|
442
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
443
|
+
return typeof o;
|
444
|
+
} : function (o) {
|
445
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
446
|
+
}, _typeof(o);
|
447
447
|
}
|
448
448
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
449
449
|
|
450
|
-
function
|
451
|
-
if (
|
452
|
-
var
|
453
|
-
if (
|
454
|
-
var
|
455
|
-
if (
|
450
|
+
function toPrimitive(t, r) {
|
451
|
+
if ("object" != _typeof(t) || !t) return t;
|
452
|
+
var e = t[Symbol.toPrimitive];
|
453
|
+
if (void 0 !== e) {
|
454
|
+
var i = e.call(t, r || "default");
|
455
|
+
if ("object" != _typeof(i)) return i;
|
456
456
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
457
457
|
}
|
458
|
-
return (
|
458
|
+
return ("string" === r ? String : Number)(t);
|
459
459
|
}
|
460
460
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
461
461
|
|
462
462
|
|
463
|
-
function
|
464
|
-
var
|
465
|
-
return _typeof(
|
463
|
+
function toPropertyKey(t) {
|
464
|
+
var i = toPrimitive(t, "string");
|
465
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
466
466
|
}
|
467
467
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
468
468
|
|
469
469
|
function _defineProperty(obj, key, value) {
|
470
|
-
key =
|
470
|
+
key = toPropertyKey(key);
|
471
471
|
if (key in obj) {
|
472
472
|
Object.defineProperty(obj, key, {
|
473
473
|
value: value,
|
@@ -649,7 +649,7 @@ function usePopover(config, triggerRef) {
|
|
649
649
|
});
|
650
650
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
651
651
|
var _observerIns;
|
652
|
-
(_observerIns = observerIns) === null || _observerIns === void 0
|
652
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 || _observerIns.stop();
|
653
653
|
observerIns = null;
|
654
654
|
});
|
655
655
|
return {
|
@@ -685,7 +685,7 @@ function useRemoteSearch(method, callBack) {
|
|
685
685
|
console.error(_context.t0);
|
686
686
|
case 10:
|
687
687
|
_context.prev = 10;
|
688
|
-
callBack === null || callBack === void 0
|
688
|
+
callBack === null || callBack === void 0 || callBack();
|
689
689
|
return _context.finish(10);
|
690
690
|
case 13:
|
691
691
|
case "end":
|
@@ -718,8 +718,8 @@ function isInViewPort(el, client) {
|
|
718
718
|
;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
|
719
719
|
|
720
720
|
|
721
|
-
function ownKeys(
|
722
|
-
function _objectSpread(
|
721
|
+
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; }
|
722
|
+
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; }
|
723
723
|
/* eslint-disable vue/no-reserved-component-names */
|
724
724
|
/*
|
725
725
|
* Tencent is pleased to support the open source community by making
|
@@ -822,21 +822,21 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
822
822
|
if (isDisabled.value) return;
|
823
823
|
if (isShowAll.value && allOptionId.value === optionID.value) {
|
824
824
|
// 全部选项
|
825
|
-
select === null || select === void 0
|
825
|
+
select === null || select === void 0 || select.handleToggleAll();
|
826
826
|
} else {
|
827
|
-
select === null || select === void 0
|
827
|
+
select === null || select === void 0 || select.handleOptionSelected(proxy);
|
828
828
|
}
|
829
829
|
};
|
830
830
|
var handleMouseEnter = function handleMouseEnter() {
|
831
831
|
select.activeOptionValue = optionID.value;
|
832
832
|
};
|
833
833
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
834
|
-
select === null || select === void 0
|
835
|
-
group === null || group === void 0
|
834
|
+
select === null || select === void 0 || select.register(optionID.value, proxy);
|
835
|
+
group === null || group === void 0 || group.register(optionID.value, proxy);
|
836
836
|
});
|
837
837
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
838
|
-
select === null || select === void 0
|
839
|
-
group === null || group === void 0
|
838
|
+
select === null || select === void 0 || select.unregister(optionID.value);
|
839
|
+
group === null || group === void 0 || group.unregister(optionID.value);
|
840
840
|
});
|
841
841
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
842
842
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -922,8 +922,8 @@ function _toConsumableArray(arr) {
|
|
922
922
|
|
923
923
|
|
924
924
|
|
925
|
-
function optionGroup_ownKeys(
|
926
|
-
function optionGroup_objectSpread(
|
925
|
+
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; }
|
926
|
+
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; }
|
927
927
|
/*
|
928
928
|
* Tencent is pleased to support the open source community by making
|
929
929
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -991,10 +991,10 @@ function optionGroup_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
991
991
|
groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
|
992
992
|
})));
|
993
993
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
994
|
-
select === null || select === void 0
|
994
|
+
select === null || select === void 0 || select.registerGroup(instance.uid, proxy);
|
995
995
|
});
|
996
996
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
997
|
-
select === null || select === void 0
|
997
|
+
select === null || select === void 0 || select.unregisterGroup(instance.uid);
|
998
998
|
});
|
999
999
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
1000
1000
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -1005,9 +1005,9 @@ function optionGroup_objectSpread(target) { for (var i = 1; i < arguments.length
|
|
1005
1005
|
});
|
1006
1006
|
},
|
1007
1007
|
render: function render() {
|
1008
|
-
var
|
1009
|
-
var groupClass = (0,external_shared_namespaceObject.classes)((
|
1010
|
-
var groupLabelClass = (0,external_shared_namespaceObject.classes)((
|
1008
|
+
var _this$$slots$default, _this$$slots;
|
1009
|
+
var groupClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('option-group'), true), "collapsible", this.collapsible), "disabled", this.disabled));
|
1010
|
+
var groupLabelClass = (0,external_shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, this.resolveClassName('option-group-label'), true), "collapsible", this.collapsible));
|
1011
1011
|
var groupLabelIconClass = (0,external_shared_namespaceObject.classes)({
|
1012
1012
|
'default-group-label-icon': true,
|
1013
1013
|
collapse: this.groupCollapse
|
@@ -1146,11 +1146,11 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1146
1146
|
};
|
1147
1147
|
var focus = function focus() {
|
1148
1148
|
var _inputRef$value;
|
1149
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1149
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
1150
1150
|
};
|
1151
1151
|
var blur = function blur() {
|
1152
1152
|
var _inputRef$value2;
|
1153
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
1153
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
1154
1154
|
};
|
1155
1155
|
var handleInput = function handleInput(e) {
|
1156
1156
|
emit('update:modelValue', e.target.value);
|
@@ -1229,7 +1229,6 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1229
1229
|
render: function render() {
|
1230
1230
|
var _this$$slots,
|
1231
1231
|
_this$$slots$prefix,
|
1232
|
-
_classes,
|
1233
1232
|
_this$$slots2,
|
1234
1233
|
_this$$slots2$prefix,
|
1235
1234
|
_this$$slots$default,
|
@@ -1239,7 +1238,7 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1239
1238
|
_this$$slots4,
|
1240
1239
|
_this$$slots4$suffix;
|
1241
1240
|
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);
|
1242
|
-
var selectTagClass = (0,external_shared_namespaceObject.classes)((
|
1241
|
+
var selectTagClass = (0,external_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));
|
1243
1242
|
var tagWrapperClass = (0,external_shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
1244
1243
|
var inputStyle = {
|
1245
1244
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
@@ -1303,8 +1302,8 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1303
1302
|
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; } } }; }
|
1304
1303
|
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); }
|
1305
1304
|
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; }
|
1306
|
-
function select_ownKeys(
|
1307
|
-
function select_objectSpread(
|
1305
|
+
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; }
|
1306
|
+
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; }
|
1308
1307
|
/* eslint-disable vue/no-reserved-component-names */
|
1309
1308
|
/*
|
1310
1309
|
* Tencent is pleased to support the open source community by making
|
@@ -1397,7 +1396,6 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1397
1396
|
type: Function
|
1398
1397
|
} // 配置当前options的过滤规则
|
1399
1398
|
},
|
1400
|
-
|
1401
1399
|
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect'],
|
1402
1400
|
setup: function setup(props, _ref) {
|
1403
1401
|
var emit = _ref.emit;
|
@@ -1506,14 +1504,14 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1506
1504
|
handleSetSelectedData();
|
1507
1505
|
if (props.withValidate) {
|
1508
1506
|
var _formItem$validate;
|
1509
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
1507
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
1510
1508
|
}
|
1511
1509
|
}, {
|
1512
1510
|
deep: true
|
1513
1511
|
});
|
1514
1512
|
(0,external_vue_namespaceObject.watch)(selected, function () {
|
1515
1513
|
var _popoverRef$value;
|
1516
|
-
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0
|
1514
|
+
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
|
1517
1515
|
});
|
1518
1516
|
// 虚拟滚动模式下搜索后的值
|
1519
1517
|
var virtualList = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -1673,7 +1671,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1673
1671
|
var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
|
1674
1672
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
1675
1673
|
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');
|
1676
|
-
(_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0
|
1674
|
+
(_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
1677
1675
|
block: 'center',
|
1678
1676
|
behavior: 'smooth'
|
1679
1677
|
});
|
@@ -1809,14 +1807,14 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1809
1807
|
setTimeout(function () {
|
1810
1808
|
if (!inputSearch.value && !allowCreate.value) {
|
1811
1809
|
var _searchRef$value;
|
1812
|
-
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0
|
1810
|
+
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 || _searchRef$value.focus();
|
1813
1811
|
} else {
|
1814
1812
|
if (multipleMode.value === 'tag') {
|
1815
1813
|
var _selectTagInputRef$va;
|
1816
|
-
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0
|
1814
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 || _selectTagInputRef$va.focus();
|
1817
1815
|
} else {
|
1818
1816
|
var _inputRef$value;
|
1819
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1817
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
1820
1818
|
}
|
1821
1819
|
}
|
1822
1820
|
}, 0);
|
@@ -1826,10 +1824,10 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1826
1824
|
setTimeout(function () {
|
1827
1825
|
if (multipleMode.value === 'tag') {
|
1828
1826
|
var _selectTagInputRef$va2;
|
1829
|
-
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0
|
1827
|
+
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 || _selectTagInputRef$va2.blur();
|
1830
1828
|
} else {
|
1831
1829
|
var _inputRef$value2;
|
1832
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
1830
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
1833
1831
|
}
|
1834
1832
|
}, 0);
|
1835
1833
|
};
|
@@ -1857,7 +1855,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1857
1855
|
label: option.optionName || option.optionID
|
1858
1856
|
});
|
1859
1857
|
});
|
1860
|
-
(_list$value = list.value) === null || _list$value === void 0
|
1858
|
+
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
1861
1859
|
if (item.disabled || item[idKey.value] in cacheSelectedMap.value) return;
|
1862
1860
|
selected.value.push({
|
1863
1861
|
value: item[idKey.value],
|
@@ -1983,7 +1981,7 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
1983
1981
|
}
|
1984
1982
|
if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
|
1985
1983
|
var _availableOptions$act2;
|
1986
|
-
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0
|
1984
|
+
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 || _availableOptions$act2.scrollIntoView();
|
1987
1985
|
}
|
1988
1986
|
activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
|
1989
1987
|
break;
|
@@ -2106,9 +2104,8 @@ function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++
|
|
2106
2104
|
};
|
2107
2105
|
},
|
2108
2106
|
render: function render() {
|
2109
|
-
var
|
2110
|
-
|
2111
|
-
var selectClass = (0,external_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));
|
2107
|
+
var _this = this;
|
2108
|
+
var selectClass = (0,external_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));
|
2112
2109
|
var suffixIcon = function suffixIcon() {
|
2113
2110
|
if (_this.loading) {
|
2114
2111
|
return (0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|