bkui-vue 2.0.1-beta.112 → 2.0.1-beta.113
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 +54 -54
- package/dist/index.esm.js +13942 -13951
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +57 -59
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +40 -42
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- 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 +4 -4
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- 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 +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +359 -421
- package/lib/popover/index.js +122 -220
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +348 -336
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/select/index.js
CHANGED
@@ -30,304 +30,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
30
30
|
function _regeneratorRuntime() {
|
31
31
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
32
32
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
33
|
-
return
|
33
|
+
return exports;
|
34
34
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
35
|
-
var
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
t[e] = r.value;
|
35
|
+
var exports = {},
|
36
|
+
Op = Object.prototype,
|
37
|
+
hasOwn = Op.hasOwnProperty,
|
38
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
39
|
+
obj[key] = desc.value;
|
41
40
|
},
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
function define(
|
47
|
-
return Object.defineProperty(
|
48
|
-
value:
|
41
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
42
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
43
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
44
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
45
|
+
function define(obj, key, value) {
|
46
|
+
return Object.defineProperty(obj, key, {
|
47
|
+
value: value,
|
49
48
|
enumerable: !0,
|
50
49
|
configurable: !0,
|
51
50
|
writable: !0
|
52
|
-
}),
|
51
|
+
}), obj[key];
|
53
52
|
}
|
54
53
|
try {
|
55
54
|
define({}, "");
|
56
|
-
} catch (
|
57
|
-
define = function define(
|
58
|
-
return
|
55
|
+
} catch (err) {
|
56
|
+
define = function define(obj, key, value) {
|
57
|
+
return obj[key] = value;
|
59
58
|
};
|
60
59
|
}
|
61
|
-
function wrap(
|
62
|
-
var
|
63
|
-
|
64
|
-
|
65
|
-
return
|
66
|
-
value: makeInvokeMethod(
|
67
|
-
}),
|
60
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
61
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
62
|
+
generator = Object.create(protoGenerator.prototype),
|
63
|
+
context = new Context(tryLocsList || []);
|
64
|
+
return defineProperty(generator, "_invoke", {
|
65
|
+
value: makeInvokeMethod(innerFn, self, context)
|
66
|
+
}), generator;
|
68
67
|
}
|
69
|
-
function tryCatch(
|
68
|
+
function tryCatch(fn, obj, arg) {
|
70
69
|
try {
|
71
70
|
return {
|
72
71
|
type: "normal",
|
73
|
-
arg:
|
72
|
+
arg: fn.call(obj, arg)
|
74
73
|
};
|
75
|
-
} catch (
|
74
|
+
} catch (err) {
|
76
75
|
return {
|
77
76
|
type: "throw",
|
78
|
-
arg:
|
77
|
+
arg: err
|
79
78
|
};
|
80
79
|
}
|
81
80
|
}
|
82
|
-
|
83
|
-
var
|
84
|
-
l = "suspendedYield",
|
85
|
-
f = "executing",
|
86
|
-
s = "completed",
|
87
|
-
y = {};
|
81
|
+
exports.wrap = wrap;
|
82
|
+
var ContinueSentinel = {};
|
88
83
|
function Generator() {}
|
89
84
|
function GeneratorFunction() {}
|
90
85
|
function GeneratorFunctionPrototype() {}
|
91
|
-
var
|
92
|
-
define(
|
86
|
+
var IteratorPrototype = {};
|
87
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
93
88
|
return this;
|
94
89
|
});
|
95
|
-
var
|
96
|
-
|
97
|
-
|
98
|
-
var
|
99
|
-
function defineIteratorMethods(
|
100
|
-
["next", "throw", "return"].forEach(function (
|
101
|
-
define(
|
102
|
-
return this._invoke(
|
90
|
+
var getProto = Object.getPrototypeOf,
|
91
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
92
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
93
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
94
|
+
function defineIteratorMethods(prototype) {
|
95
|
+
["next", "throw", "return"].forEach(function (method) {
|
96
|
+
define(prototype, method, function (arg) {
|
97
|
+
return this._invoke(method, arg);
|
103
98
|
});
|
104
99
|
});
|
105
100
|
}
|
106
|
-
function AsyncIterator(
|
107
|
-
function invoke(
|
108
|
-
var
|
109
|
-
if ("throw" !==
|
110
|
-
var
|
111
|
-
|
112
|
-
return
|
113
|
-
invoke("next",
|
114
|
-
}, function (
|
115
|
-
invoke("throw",
|
116
|
-
}) :
|
117
|
-
|
118
|
-
}, function (
|
119
|
-
return invoke("throw",
|
101
|
+
function AsyncIterator(generator, PromiseImpl) {
|
102
|
+
function invoke(method, arg, resolve, reject) {
|
103
|
+
var record = tryCatch(generator[method], generator, arg);
|
104
|
+
if ("throw" !== record.type) {
|
105
|
+
var result = record.arg,
|
106
|
+
value = result.value;
|
107
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
108
|
+
invoke("next", value, resolve, reject);
|
109
|
+
}, function (err) {
|
110
|
+
invoke("throw", err, resolve, reject);
|
111
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
112
|
+
result.value = unwrapped, resolve(result);
|
113
|
+
}, function (error) {
|
114
|
+
return invoke("throw", error, resolve, reject);
|
120
115
|
});
|
121
116
|
}
|
122
|
-
|
117
|
+
reject(record.arg);
|
123
118
|
}
|
124
|
-
var
|
125
|
-
|
126
|
-
value: function value(
|
119
|
+
var previousPromise;
|
120
|
+
defineProperty(this, "_invoke", {
|
121
|
+
value: function value(method, arg) {
|
127
122
|
function callInvokeWithMethodAndArg() {
|
128
|
-
return new
|
129
|
-
invoke(
|
123
|
+
return new PromiseImpl(function (resolve, reject) {
|
124
|
+
invoke(method, arg, resolve, reject);
|
130
125
|
});
|
131
126
|
}
|
132
|
-
return
|
127
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
133
128
|
}
|
134
129
|
});
|
135
130
|
}
|
136
|
-
function makeInvokeMethod(
|
137
|
-
var
|
138
|
-
return function (
|
139
|
-
if (
|
140
|
-
if (
|
141
|
-
if ("throw" ===
|
142
|
-
return
|
143
|
-
value: t,
|
144
|
-
done: !0
|
145
|
-
};
|
131
|
+
function makeInvokeMethod(innerFn, self, context) {
|
132
|
+
var state = "suspendedStart";
|
133
|
+
return function (method, arg) {
|
134
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
135
|
+
if ("completed" === state) {
|
136
|
+
if ("throw" === method) throw arg;
|
137
|
+
return doneResult();
|
146
138
|
}
|
147
|
-
for (
|
148
|
-
var
|
149
|
-
if (
|
150
|
-
var
|
151
|
-
if (
|
152
|
-
if (
|
153
|
-
return
|
139
|
+
for (context.method = method, context.arg = arg;;) {
|
140
|
+
var delegate = context.delegate;
|
141
|
+
if (delegate) {
|
142
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
143
|
+
if (delegateResult) {
|
144
|
+
if (delegateResult === ContinueSentinel) continue;
|
145
|
+
return delegateResult;
|
154
146
|
}
|
155
147
|
}
|
156
|
-
if ("next" ===
|
157
|
-
if (
|
158
|
-
|
159
|
-
} else "return" ===
|
160
|
-
|
161
|
-
var
|
162
|
-
if ("normal" ===
|
163
|
-
if (
|
148
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
149
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
150
|
+
context.dispatchException(context.arg);
|
151
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
152
|
+
state = "executing";
|
153
|
+
var record = tryCatch(innerFn, self, context);
|
154
|
+
if ("normal" === record.type) {
|
155
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
164
156
|
return {
|
165
|
-
value:
|
166
|
-
done:
|
157
|
+
value: record.arg,
|
158
|
+
done: context.done
|
167
159
|
};
|
168
160
|
}
|
169
|
-
"throw" ===
|
161
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
170
162
|
}
|
171
163
|
};
|
172
164
|
}
|
173
|
-
function maybeInvokeDelegate(
|
174
|
-
var
|
175
|
-
|
176
|
-
if (
|
177
|
-
var
|
178
|
-
if ("throw" ===
|
179
|
-
var
|
180
|
-
return
|
165
|
+
function maybeInvokeDelegate(delegate, context) {
|
166
|
+
var methodName = context.method,
|
167
|
+
method = delegate.iterator[methodName];
|
168
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
169
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
170
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
171
|
+
var info = record.arg;
|
172
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
181
173
|
}
|
182
|
-
function pushTryEntry(
|
183
|
-
var
|
184
|
-
tryLoc:
|
174
|
+
function pushTryEntry(locs) {
|
175
|
+
var entry = {
|
176
|
+
tryLoc: locs[0]
|
185
177
|
};
|
186
|
-
1 in
|
178
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
187
179
|
}
|
188
|
-
function resetTryEntry(
|
189
|
-
var
|
190
|
-
|
180
|
+
function resetTryEntry(entry) {
|
181
|
+
var record = entry.completion || {};
|
182
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
191
183
|
}
|
192
|
-
function Context(
|
184
|
+
function Context(tryLocsList) {
|
193
185
|
this.tryEntries = [{
|
194
186
|
tryLoc: "root"
|
195
|
-
}],
|
187
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
196
188
|
}
|
197
|
-
function values(
|
198
|
-
if (
|
199
|
-
var
|
200
|
-
if (
|
201
|
-
if ("function" == typeof
|
202
|
-
if (!isNaN(
|
203
|
-
var
|
204
|
-
|
205
|
-
for (; ++
|
206
|
-
return next.value =
|
189
|
+
function values(iterable) {
|
190
|
+
if (iterable) {
|
191
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
192
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
193
|
+
if ("function" == typeof iterable.next) return iterable;
|
194
|
+
if (!isNaN(iterable.length)) {
|
195
|
+
var i = -1,
|
196
|
+
next = function next() {
|
197
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
198
|
+
return next.value = undefined, next.done = !0, next;
|
207
199
|
};
|
208
|
-
return
|
200
|
+
return next.next = next;
|
209
201
|
}
|
210
202
|
}
|
211
|
-
|
203
|
+
return {
|
204
|
+
next: doneResult
|
205
|
+
};
|
212
206
|
}
|
213
|
-
|
207
|
+
function doneResult() {
|
208
|
+
return {
|
209
|
+
value: undefined,
|
210
|
+
done: !0
|
211
|
+
};
|
212
|
+
}
|
213
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
214
214
|
value: GeneratorFunctionPrototype,
|
215
215
|
configurable: !0
|
216
|
-
}),
|
216
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
217
217
|
value: GeneratorFunction,
|
218
218
|
configurable: !0
|
219
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
220
|
-
var
|
221
|
-
return !!
|
222
|
-
},
|
223
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
224
|
-
},
|
219
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
220
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
221
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
222
|
+
}, exports.mark = function (genFun) {
|
223
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
224
|
+
}, exports.awrap = function (arg) {
|
225
225
|
return {
|
226
|
-
__await:
|
226
|
+
__await: arg
|
227
227
|
};
|
228
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
228
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
229
229
|
return this;
|
230
|
-
}),
|
231
|
-
void 0 ===
|
232
|
-
var
|
233
|
-
return
|
234
|
-
return
|
230
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
231
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
232
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
233
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
234
|
+
return result.done ? result.value : iter.next();
|
235
235
|
});
|
236
|
-
}, defineIteratorMethods(
|
236
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
237
237
|
return this;
|
238
|
-
}), define(
|
238
|
+
}), define(Gp, "toString", function () {
|
239
239
|
return "[object Generator]";
|
240
|
-
}),
|
241
|
-
var
|
242
|
-
|
243
|
-
for (var
|
244
|
-
return
|
245
|
-
for (;
|
246
|
-
var
|
247
|
-
if (
|
240
|
+
}), exports.keys = function (val) {
|
241
|
+
var object = Object(val),
|
242
|
+
keys = [];
|
243
|
+
for (var key in object) keys.push(key);
|
244
|
+
return keys.reverse(), function next() {
|
245
|
+
for (; keys.length;) {
|
246
|
+
var key = keys.pop();
|
247
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
248
248
|
}
|
249
249
|
return next.done = !0, next;
|
250
250
|
};
|
251
|
-
},
|
251
|
+
}, exports.values = values, Context.prototype = {
|
252
252
|
constructor: Context,
|
253
|
-
reset: function reset(
|
254
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
253
|
+
reset: function reset(skipTempReset) {
|
254
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
255
255
|
},
|
256
256
|
stop: function stop() {
|
257
257
|
this.done = !0;
|
258
|
-
var
|
259
|
-
if ("throw" ===
|
258
|
+
var rootRecord = this.tryEntries[0].completion;
|
259
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
260
260
|
return this.rval;
|
261
261
|
},
|
262
|
-
dispatchException: function dispatchException(
|
263
|
-
if (this.done) throw
|
264
|
-
var
|
265
|
-
function handle(
|
266
|
-
return
|
262
|
+
dispatchException: function dispatchException(exception) {
|
263
|
+
if (this.done) throw exception;
|
264
|
+
var context = this;
|
265
|
+
function handle(loc, caught) {
|
266
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
267
267
|
}
|
268
|
-
for (var
|
269
|
-
var
|
270
|
-
|
271
|
-
if ("root" ===
|
272
|
-
if (
|
273
|
-
var
|
274
|
-
|
275
|
-
if (
|
276
|
-
if (this.prev <
|
277
|
-
if (this.prev <
|
278
|
-
} else if (
|
279
|
-
if (this.prev <
|
268
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
269
|
+
var entry = this.tryEntries[i],
|
270
|
+
record = entry.completion;
|
271
|
+
if ("root" === entry.tryLoc) return handle("end");
|
272
|
+
if (entry.tryLoc <= this.prev) {
|
273
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
274
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
275
|
+
if (hasCatch && hasFinally) {
|
276
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
277
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
278
|
+
} else if (hasCatch) {
|
279
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
280
280
|
} else {
|
281
|
-
if (!
|
282
|
-
if (this.prev <
|
281
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
282
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
283
283
|
}
|
284
284
|
}
|
285
285
|
}
|
286
286
|
},
|
287
|
-
abrupt: function abrupt(
|
288
|
-
for (var
|
289
|
-
var
|
290
|
-
if (
|
291
|
-
var
|
287
|
+
abrupt: function abrupt(type, arg) {
|
288
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
289
|
+
var entry = this.tryEntries[i];
|
290
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
291
|
+
var finallyEntry = entry;
|
292
292
|
break;
|
293
293
|
}
|
294
294
|
}
|
295
|
-
|
296
|
-
var
|
297
|
-
return
|
295
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
296
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
297
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
298
298
|
},
|
299
|
-
complete: function complete(
|
300
|
-
if ("throw" ===
|
301
|
-
return "break" ===
|
299
|
+
complete: function complete(record, afterLoc) {
|
300
|
+
if ("throw" === record.type) throw record.arg;
|
301
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
302
302
|
},
|
303
|
-
finish: function finish(
|
304
|
-
for (var
|
305
|
-
var
|
306
|
-
if (
|
303
|
+
finish: function finish(finallyLoc) {
|
304
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
305
|
+
var entry = this.tryEntries[i];
|
306
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
307
307
|
}
|
308
308
|
},
|
309
|
-
"catch": function _catch(
|
310
|
-
for (var
|
311
|
-
var
|
312
|
-
if (
|
313
|
-
var
|
314
|
-
if ("throw" ===
|
315
|
-
var
|
316
|
-
resetTryEntry(
|
309
|
+
"catch": function _catch(tryLoc) {
|
310
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
311
|
+
var entry = this.tryEntries[i];
|
312
|
+
if (entry.tryLoc === tryLoc) {
|
313
|
+
var record = entry.completion;
|
314
|
+
if ("throw" === record.type) {
|
315
|
+
var thrown = record.arg;
|
316
|
+
resetTryEntry(entry);
|
317
317
|
}
|
318
|
-
return
|
318
|
+
return thrown;
|
319
319
|
}
|
320
320
|
}
|
321
321
|
throw new Error("illegal catch attempt");
|
322
322
|
},
|
323
|
-
delegateYield: function delegateYield(
|
323
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
324
324
|
return this.delegate = {
|
325
|
-
iterator: values(
|
326
|
-
resultName:
|
327
|
-
nextLoc:
|
328
|
-
}, "next" === this.method && (this.arg =
|
325
|
+
iterator: values(iterable),
|
326
|
+
resultName: resultName,
|
327
|
+
nextLoc: nextLoc
|
328
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
329
329
|
}
|
330
|
-
},
|
330
|
+
}, exports;
|
331
331
|
}
|
332
332
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
333
333
|
|
@@ -336,14 +336,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
336
336
|
/***/ 7425:
|
337
337
|
/***/ ((module) => {
|
338
338
|
|
339
|
-
function _typeof(
|
339
|
+
function _typeof(obj) {
|
340
340
|
"@babel/helpers - typeof";
|
341
341
|
|
342
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
343
|
-
return typeof
|
344
|
-
} : function (
|
345
|
-
return
|
346
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
342
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
343
|
+
return typeof obj;
|
344
|
+
} : function (obj) {
|
345
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
346
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
347
347
|
}
|
348
348
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
349
349
|
|
@@ -600,7 +600,7 @@ function usePopover(config, triggerRef) {
|
|
600
600
|
});
|
601
601
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
602
602
|
var _observerIns;
|
603
|
-
(_observerIns = observerIns) === null || _observerIns === void 0
|
603
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 ? void 0 : _observerIns.stop();
|
604
604
|
observerIns = null;
|
605
605
|
});
|
606
606
|
return {
|
@@ -618,7 +618,7 @@ function useRemoteSearch(method, callBack) {
|
|
618
618
|
return searchValue.value || customOptionName.value;
|
619
619
|
});
|
620
620
|
var searchLoading = (0,external_vue_namespaceObject.ref)(false);
|
621
|
-
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator(
|
621
|
+
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
622
622
|
return regenerator_default().wrap(function _callee$(_context) {
|
623
623
|
while (1) switch (_context.prev = _context.next) {
|
624
624
|
case 0:
|
@@ -636,7 +636,7 @@ function useRemoteSearch(method, callBack) {
|
|
636
636
|
console.error(_context.t0);
|
637
637
|
case 10:
|
638
638
|
_context.prev = 10;
|
639
|
-
callBack === null || callBack === void 0
|
639
|
+
callBack === null || callBack === void 0 ? void 0 : callBack();
|
640
640
|
return _context.finish(10);
|
641
641
|
case 13:
|
642
642
|
case "end":
|
@@ -667,38 +667,38 @@ function isInViewPort(el, client) {
|
|
667
667
|
return elTop >= clientTop && elBottom <= clientBottom;
|
668
668
|
}
|
669
669
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
670
|
-
function _typeof(
|
670
|
+
function _typeof(obj) {
|
671
671
|
"@babel/helpers - typeof";
|
672
672
|
|
673
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
674
|
-
return typeof
|
675
|
-
} : function (
|
676
|
-
return
|
677
|
-
}, _typeof(
|
673
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
674
|
+
return typeof obj;
|
675
|
+
} : function (obj) {
|
676
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
677
|
+
}, _typeof(obj);
|
678
678
|
}
|
679
679
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
680
680
|
|
681
|
-
function
|
682
|
-
if ("object"
|
683
|
-
var
|
684
|
-
if (
|
685
|
-
var
|
686
|
-
if ("object"
|
681
|
+
function _toPrimitive(input, hint) {
|
682
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
683
|
+
var prim = input[Symbol.toPrimitive];
|
684
|
+
if (prim !== undefined) {
|
685
|
+
var res = prim.call(input, hint || "default");
|
686
|
+
if (_typeof(res) !== "object") return res;
|
687
687
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
688
688
|
}
|
689
|
-
return ("string"
|
689
|
+
return (hint === "string" ? String : Number)(input);
|
690
690
|
}
|
691
691
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
692
692
|
|
693
693
|
|
694
|
-
function
|
695
|
-
var
|
696
|
-
return "symbol"
|
694
|
+
function _toPropertyKey(arg) {
|
695
|
+
var key = _toPrimitive(arg, "string");
|
696
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
697
697
|
}
|
698
698
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
699
699
|
|
700
700
|
function _defineProperty(obj, key, value) {
|
701
|
-
key =
|
701
|
+
key = _toPropertyKey(key);
|
702
702
|
if (key in obj) {
|
703
703
|
Object.defineProperty(obj, key, {
|
704
704
|
value: value,
|
@@ -733,9 +733,6 @@ var isEqual_y = x => () => x
|
|
733
733
|
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
734
734
|
;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
|
735
735
|
|
736
|
-
|
737
|
-
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; }
|
738
|
-
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; }
|
739
736
|
/*
|
740
737
|
* Tencent is pleased to support the open source community by making
|
741
738
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -762,6 +759,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
762
759
|
* IN THE SOFTWARE.
|
763
760
|
*/
|
764
761
|
|
762
|
+
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; }
|
763
|
+
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; }
|
765
764
|
|
766
765
|
|
767
766
|
|
@@ -769,7 +768,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
769
768
|
|
770
769
|
|
771
770
|
|
772
|
-
/* harmony default export */ const src_option = (
|
771
|
+
/* harmony default export */ const src_option = (defineComponent({
|
773
772
|
name: 'Option',
|
774
773
|
props: {
|
775
774
|
id: {
|
@@ -783,52 +782,52 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
783
782
|
setup: function setup(props, _ref) {
|
784
783
|
var attrs = _ref.attrs;
|
785
784
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
786
|
-
var _getCurrentInstance =
|
785
|
+
var _getCurrentInstance = getCurrentInstance(),
|
787
786
|
proxy = _getCurrentInstance.proxy;
|
788
|
-
var states =
|
787
|
+
var states = reactive({
|
789
788
|
visible: true
|
790
789
|
});
|
791
|
-
var _toRefs =
|
790
|
+
var _toRefs = toRefs(props),
|
792
791
|
disabled = _toRefs.disabled,
|
793
792
|
id = _toRefs.id,
|
794
793
|
name = _toRefs.name;
|
795
794
|
// 兼容label
|
796
|
-
var optionName =
|
795
|
+
var optionName = computed(function () {
|
797
796
|
return name.value !== undefined ? name.value : attrs.label;
|
798
797
|
});
|
799
798
|
// 兼容value
|
800
|
-
var optionID =
|
799
|
+
var optionID = computed(function () {
|
801
800
|
return id.value !== undefined ? id.value : attrs.value;
|
802
801
|
});
|
803
|
-
var select =
|
804
|
-
var group =
|
805
|
-
var selected =
|
802
|
+
var select = inject(selectKey, null);
|
803
|
+
var group = inject(optionGroupKey, null);
|
804
|
+
var selected = computed(function () {
|
806
805
|
var _select$selected;
|
807
806
|
return select === null || select === void 0 || (_select$selected = select.selected) === null || _select$selected === void 0 ? void 0 : _select$selected.some(function (item) {
|
808
807
|
return (0,isEqual_namespaceObject["default"])(item.value, optionID.value);
|
809
808
|
});
|
810
809
|
});
|
811
|
-
var multiple =
|
810
|
+
var multiple = computed(function () {
|
812
811
|
return select === null || select === void 0 ? void 0 : select.multiple;
|
813
812
|
});
|
814
|
-
var isHover =
|
813
|
+
var isHover = computed(function () {
|
815
814
|
return (select === null || select === void 0 ? void 0 : select.activeOptionValue) === optionID.value;
|
816
815
|
});
|
817
|
-
var showSelectedIcon =
|
816
|
+
var showSelectedIcon = computed(function () {
|
818
817
|
return (select === null || select === void 0 ? void 0 : select.showSelectedIcon) && multiple.value;
|
819
818
|
});
|
820
|
-
var selectedStyle =
|
819
|
+
var selectedStyle = computed(function () {
|
821
820
|
return select === null || select === void 0 ? void 0 : select.selectedStyle;
|
822
821
|
});
|
823
|
-
var searchValue =
|
822
|
+
var searchValue = computed(function () {
|
824
823
|
return select === null || select === void 0 ? void 0 : select.curSearchValue;
|
825
824
|
});
|
826
|
-
var highlightKeyword =
|
825
|
+
var highlightKeyword = computed(function () {
|
827
826
|
return select === null || select === void 0 ? void 0 : select.highlightKeyword;
|
828
827
|
});
|
829
828
|
var handleOptionClick = function handleOptionClick() {
|
830
829
|
if (disabled.value) return;
|
831
|
-
select === null || select === void 0
|
830
|
+
select === null || select === void 0 ? void 0 : select.handleOptionSelected(proxy);
|
832
831
|
};
|
833
832
|
var handleMouseEnter = function handleMouseEnter() {
|
834
833
|
select.activeOptionValue = optionID.value;
|
@@ -862,17 +861,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
862
861
|
}
|
863
862
|
return list.length ? list : str;
|
864
863
|
};
|
865
|
-
|
866
|
-
select === null || select === void 0
|
867
|
-
group === null || group === void 0
|
864
|
+
onBeforeMount(function () {
|
865
|
+
select === null || select === void 0 ? void 0 : select.register(optionID.value, proxy);
|
866
|
+
group === null || group === void 0 ? void 0 : group.register(optionID.value, proxy);
|
868
867
|
});
|
869
|
-
|
870
|
-
select === null || select === void 0
|
871
|
-
group === null || group === void 0
|
868
|
+
onBeforeUnmount(function () {
|
869
|
+
select === null || select === void 0 ? void 0 : select.unregister(optionID.value, proxy);
|
870
|
+
group === null || group === void 0 ? void 0 : group.unregister(optionID.value, proxy);
|
872
871
|
});
|
873
872
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
874
873
|
resolveClassName = _usePrefix.resolveClassName;
|
875
|
-
return _objectSpread(_objectSpread({},
|
874
|
+
return _objectSpread(_objectSpread({}, toRefs(states)), {}, {
|
876
875
|
selected: selected,
|
877
876
|
multiple: multiple,
|
878
877
|
isHover: isHover,
|
@@ -1026,10 +1025,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1026
1025
|
groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
|
1027
1026
|
})));
|
1028
1027
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
1029
|
-
select === null || select === void 0
|
1028
|
+
select === null || select === void 0 ? void 0 : select.registerGroup(instance.uid, proxy);
|
1030
1029
|
});
|
1031
1030
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1032
|
-
select === null || select === void 0
|
1031
|
+
select === null || select === void 0 ? void 0 : select.unregisterGroup(instance.uid);
|
1033
1032
|
});
|
1034
1033
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1035
1034
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -1040,9 +1039,9 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1040
1039
|
});
|
1041
1040
|
},
|
1042
1041
|
render: function render() {
|
1043
|
-
var _this$$slots$default, _this$$slots;
|
1044
|
-
var groupClass = (0,shared_namespaceObject.classes)(
|
1045
|
-
var groupLabelClass = (0,shared_namespaceObject.classes)(
|
1042
|
+
var _classes, _classes2, _this$$slots$default, _this$$slots;
|
1043
|
+
var groupClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, this.resolveClassName('option-group'), true), _defineProperty(_classes, "collapsible", this.collapsible), _defineProperty(_classes, "disabled", this.disabled), _classes));
|
1044
|
+
var groupLabelClass = (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, this.resolveClassName('option-group-label'), true), _defineProperty(_classes2, "collapsible", this.collapsible), _classes2));
|
1046
1045
|
var groupLabelIconClass = (0,shared_namespaceObject.classes)({
|
1047
1046
|
'default-group-label-icon': true,
|
1048
1047
|
collapse: this.groupCollapse
|
@@ -2406,11 +2405,11 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2406
2405
|
};
|
2407
2406
|
var focus = function focus() {
|
2408
2407
|
var _inputRef$value;
|
2409
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
2408
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
2410
2409
|
};
|
2411
2410
|
var blur = function blur() {
|
2412
2411
|
var _inputRef$value2;
|
2413
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
2412
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
|
2414
2413
|
};
|
2415
2414
|
var updateModelValue = function updateModelValue(data) {
|
2416
2415
|
emit('update:modelValue', data);
|
@@ -2495,6 +2494,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2495
2494
|
render: function render() {
|
2496
2495
|
var _this$$slots,
|
2497
2496
|
_this$$slots$prefix,
|
2497
|
+
_classes,
|
2498
2498
|
_this$$slots2,
|
2499
2499
|
_this$$slots2$prefix,
|
2500
2500
|
_this$$slots$default,
|
@@ -2504,7 +2504,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2504
2504
|
_this$$slots5,
|
2505
2505
|
_this$$slots5$suffix;
|
2506
2506
|
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);
|
2507
|
-
var selectTagClass = (0,shared_namespaceObject.classes)(
|
2507
|
+
var selectTagClass = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, this.resolveClassName('select-tag'), true), _defineProperty(_classes, this.resolveClassName('select-tag--default'), true), _defineProperty(_classes, 'is-disabled', this.disabled), _defineProperty(_classes, 'collapse-tag', this.collapseTags), _defineProperty(_classes, 'has-prefix', !!prefix), _defineProperty(_classes, 'is-simplicity', this.behavior === 'simplicity'), _classes));
|
2508
2508
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
2509
2509
|
var inputStyle = {
|
2510
2510
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
@@ -2573,9 +2573,9 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2573
2573
|
|
2574
2574
|
|
2575
2575
|
|
2576
|
-
function _createForOfIteratorHelper(
|
2577
|
-
function select_unsupportedIterableToArray(
|
2578
|
-
function select_arrayLikeToArray(
|
2576
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = select_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
2577
|
+
function select_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return select_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? select_arrayLikeToArray(r, a) : void 0; } }
|
2578
|
+
function select_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
2579
2579
|
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; }
|
2580
2580
|
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; }
|
2581
2581
|
/*
|
@@ -2803,14 +2803,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2803
2803
|
handleSetSelectedData();
|
2804
2804
|
if (props.withValidate) {
|
2805
2805
|
var _formItem$validate;
|
2806
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
2806
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
2807
2807
|
}
|
2808
2808
|
}, {
|
2809
2809
|
deep: true
|
2810
2810
|
});
|
2811
2811
|
(0,external_vue_namespaceObject.watch)(selected, function () {
|
2812
2812
|
var _popoverRef$value;
|
2813
|
-
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0
|
2813
|
+
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 ? void 0 : _popoverRef$value.updatePopover(null, popoverConfig.value);
|
2814
2814
|
});
|
2815
2815
|
// list模式下搜索后的值
|
2816
2816
|
var filterList = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2995,7 +2995,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2995
2995
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
2996
2996
|
if (isEnableVirtualRender.value || disableScrollToSelectedOption.value) return;
|
2997
2997
|
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');
|
2998
|
-
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0
|
2998
|
+
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 ? void 0 : _optionsDom$.scrollIntoView({
|
2999
2999
|
block: 'center'
|
3000
3000
|
});
|
3001
3001
|
};
|
@@ -3168,7 +3168,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3168
3168
|
var clearMultipleInputValue = function clearMultipleInputValue() {
|
3169
3169
|
if (['tag'].includes(multipleMode.value) && isInput.value) {
|
3170
3170
|
var _selectTagInputRef$va;
|
3171
|
-
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0
|
3171
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 ? void 0 : _selectTagInputRef$va.updateModelValue('');
|
3172
3172
|
}
|
3173
3173
|
};
|
3174
3174
|
// 聚焦输入框
|
@@ -3177,14 +3177,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3177
3177
|
setTimeout(function () {
|
3178
3178
|
if (!inputSearch.value && !allowCreate.value) {
|
3179
3179
|
var _searchRef$value;
|
3180
|
-
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0
|
3180
|
+
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 ? void 0 : _searchRef$value.focus();
|
3181
3181
|
} else {
|
3182
3182
|
if (multipleMode.value === 'tag') {
|
3183
3183
|
var _selectTagInputRef$va2;
|
3184
|
-
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0
|
3184
|
+
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 ? void 0 : _selectTagInputRef$va2.focus();
|
3185
3185
|
} else {
|
3186
3186
|
var _inputRef$value;
|
3187
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
3187
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
3188
3188
|
}
|
3189
3189
|
}
|
3190
3190
|
}, 0);
|
@@ -3194,10 +3194,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3194
3194
|
setTimeout(function () {
|
3195
3195
|
if (multipleMode.value === 'tag') {
|
3196
3196
|
var _selectTagInputRef$va3;
|
3197
|
-
(_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0
|
3197
|
+
(_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0 ? void 0 : _selectTagInputRef$va3.blur();
|
3198
3198
|
} else {
|
3199
3199
|
var _inputRef$value2;
|
3200
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
3200
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
|
3201
3201
|
}
|
3202
3202
|
}, 0);
|
3203
3203
|
};
|
@@ -3224,7 +3224,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3224
3224
|
if (option.disabled || tmpSelectedMap.has(option.optionID)) return;
|
3225
3225
|
tmpSelectedMap.set(option.optionID, option.optionName || option.optionID);
|
3226
3226
|
});
|
3227
|
-
(_list$value = list.value) === null || _list$value === void 0
|
3227
|
+
(_list$value = list.value) === null || _list$value === void 0 ? void 0 : _list$value.forEach(function (item) {
|
3228
3228
|
if (item.disabled || tmpSelectedMap.has(item[idKey.value])) return;
|
3229
3229
|
tmpSelectedMap.set(item[idKey.value], item[displayKey.value]);
|
3230
3230
|
});
|
@@ -3362,7 +3362,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3362
3362
|
}
|
3363
3363
|
if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
|
3364
3364
|
var _availableOptions$act2;
|
3365
|
-
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0
|
3365
|
+
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 ? void 0 : _availableOptions$act2.scrollIntoView();
|
3366
3366
|
}
|
3367
3367
|
activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
|
3368
3368
|
break;
|
@@ -3422,7 +3422,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3422
3422
|
});
|
3423
3423
|
var handlePopoverShown = function handlePopoverShown() {
|
3424
3424
|
var _virtualRenderRef$val;
|
3425
|
-
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0
|
3425
|
+
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 ? void 0 : _virtualRenderRef$val.scrollTo(0, 1);
|
3426
3426
|
};
|
3427
3427
|
return {
|
3428
3428
|
t: t,
|
@@ -3492,8 +3492,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3492
3492
|
};
|
3493
3493
|
},
|
3494
3494
|
render: function render() {
|
3495
|
-
var
|
3496
|
-
|
3495
|
+
var _classes,
|
3496
|
+
_this = this;
|
3497
|
+
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));
|
3497
3498
|
// 右侧ICON
|
3498
3499
|
var suffixIcon = function suffixIcon() {
|
3499
3500
|
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|