bkui-vue 2.0.1-beta.106 → 2.0.1-beta.108
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 +71 -71
- package/dist/index.esm.js +18609 -18772
- package/dist/index.umd.js +70 -70
- 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 +268 -270
- 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 +41 -43
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +22 -25
- package/lib/config-provider/use-global-config.d.ts +0 -1
- 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 +33 -41
- 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/plugin-popover/index.js +135 -233
- 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 +361 -423
- package/lib/popover/index.js +135 -233
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/use-popover-init.d.ts +1 -2
- 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 +350 -338
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/table-column/index.js +19 -18
- 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
|
|
@@ -445,38 +445,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
445
445
|
var y = x => () => x
|
446
446
|
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["SelectedType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType, ["SelectedTypeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum, ["SizeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["observerResize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
447
447
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
448
|
-
function _typeof(
|
448
|
+
function _typeof(obj) {
|
449
449
|
"@babel/helpers - typeof";
|
450
450
|
|
451
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
452
|
-
return typeof
|
453
|
-
} : function (
|
454
|
-
return
|
455
|
-
}, _typeof(
|
451
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
452
|
+
return typeof obj;
|
453
|
+
} : function (obj) {
|
454
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
455
|
+
}, _typeof(obj);
|
456
456
|
}
|
457
457
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
458
458
|
|
459
|
-
function
|
460
|
-
if ("object"
|
461
|
-
var
|
462
|
-
if (
|
463
|
-
var
|
464
|
-
if ("object"
|
459
|
+
function _toPrimitive(input, hint) {
|
460
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
461
|
+
var prim = input[Symbol.toPrimitive];
|
462
|
+
if (prim !== undefined) {
|
463
|
+
var res = prim.call(input, hint || "default");
|
464
|
+
if (_typeof(res) !== "object") return res;
|
465
465
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
466
466
|
}
|
467
|
-
return ("string"
|
467
|
+
return (hint === "string" ? String : Number)(input);
|
468
468
|
}
|
469
469
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
470
470
|
|
471
471
|
|
472
|
-
function
|
473
|
-
var
|
474
|
-
return "symbol"
|
472
|
+
function _toPropertyKey(arg) {
|
473
|
+
var key = _toPrimitive(arg, "string");
|
474
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
475
475
|
}
|
476
476
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
477
477
|
|
478
478
|
function _defineProperty(obj, key, value) {
|
479
|
-
key =
|
479
|
+
key = _toPropertyKey(key);
|
480
480
|
if (key in obj) {
|
481
481
|
Object.defineProperty(obj, key, {
|
482
482
|
value: value,
|
@@ -664,7 +664,7 @@ function usePopover(config, triggerRef) {
|
|
664
664
|
});
|
665
665
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
666
666
|
var _observerIns;
|
667
|
-
(_observerIns = observerIns) === null || _observerIns === void 0
|
667
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 ? void 0 : _observerIns.stop();
|
668
668
|
observerIns = null;
|
669
669
|
});
|
670
670
|
return {
|
@@ -682,7 +682,7 @@ function useRemoteSearch(method, callBack) {
|
|
682
682
|
return searchValue.value || customOptionName.value;
|
683
683
|
});
|
684
684
|
var searchLoading = (0,external_vue_namespaceObject.ref)(false);
|
685
|
-
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator(
|
685
|
+
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
686
686
|
return regenerator_default().wrap(function _callee$(_context) {
|
687
687
|
while (1) switch (_context.prev = _context.next) {
|
688
688
|
case 0:
|
@@ -700,7 +700,7 @@ function useRemoteSearch(method, callBack) {
|
|
700
700
|
console.error(_context.t0);
|
701
701
|
case 10:
|
702
702
|
_context.prev = 10;
|
703
|
-
callBack === null || callBack === void 0
|
703
|
+
callBack === null || callBack === void 0 ? void 0 : callBack();
|
704
704
|
return _context.finish(10);
|
705
705
|
case 13:
|
706
706
|
case "end":
|
@@ -732,9 +732,6 @@ function isInViewPort(el, client) {
|
|
732
732
|
}
|
733
733
|
;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
|
734
734
|
|
735
|
-
|
736
|
-
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; }
|
737
|
-
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; }
|
738
735
|
/*
|
739
736
|
* Tencent is pleased to support the open source community by making
|
740
737
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -761,6 +758,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
761
758
|
* IN THE SOFTWARE.
|
762
759
|
*/
|
763
760
|
|
761
|
+
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; }
|
762
|
+
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; }
|
764
763
|
|
765
764
|
|
766
765
|
|
@@ -768,7 +767,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
768
767
|
|
769
768
|
|
770
769
|
|
771
|
-
/* harmony default export */ const src_option = (
|
770
|
+
/* harmony default export */ const src_option = (defineComponent({
|
772
771
|
name: 'Option',
|
773
772
|
props: {
|
774
773
|
id: {
|
@@ -782,52 +781,52 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
782
781
|
setup: function setup(props, _ref) {
|
783
782
|
var attrs = _ref.attrs;
|
784
783
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
785
|
-
var _getCurrentInstance =
|
784
|
+
var _getCurrentInstance = getCurrentInstance(),
|
786
785
|
proxy = _getCurrentInstance.proxy;
|
787
|
-
var states =
|
786
|
+
var states = reactive({
|
788
787
|
visible: true
|
789
788
|
});
|
790
|
-
var _toRefs =
|
789
|
+
var _toRefs = toRefs(props),
|
791
790
|
disabled = _toRefs.disabled,
|
792
791
|
id = _toRefs.id,
|
793
792
|
name = _toRefs.name;
|
794
793
|
// 兼容label
|
795
|
-
var optionName =
|
794
|
+
var optionName = computed(function () {
|
796
795
|
return name.value !== undefined ? name.value : attrs.label;
|
797
796
|
});
|
798
797
|
// 兼容value
|
799
|
-
var optionID =
|
798
|
+
var optionID = computed(function () {
|
800
799
|
return id.value !== undefined ? id.value : attrs.value;
|
801
800
|
});
|
802
|
-
var select =
|
803
|
-
var group =
|
804
|
-
var selected =
|
801
|
+
var select = inject(selectKey, null);
|
802
|
+
var group = inject(optionGroupKey, null);
|
803
|
+
var selected = computed(function () {
|
805
804
|
var _select$selected;
|
806
805
|
return select === null || select === void 0 || (_select$selected = select.selected) === null || _select$selected === void 0 ? void 0 : _select$selected.some(function (item) {
|
807
806
|
return (0,isEqual_namespaceObject["default"])(item.value, optionID.value);
|
808
807
|
});
|
809
808
|
});
|
810
|
-
var multiple =
|
809
|
+
var multiple = computed(function () {
|
811
810
|
return select === null || select === void 0 ? void 0 : select.multiple;
|
812
811
|
});
|
813
|
-
var isHover =
|
812
|
+
var isHover = computed(function () {
|
814
813
|
return (select === null || select === void 0 ? void 0 : select.activeOptionValue) === optionID.value;
|
815
814
|
});
|
816
|
-
var showSelectedIcon =
|
815
|
+
var showSelectedIcon = computed(function () {
|
817
816
|
return (select === null || select === void 0 ? void 0 : select.showSelectedIcon) && multiple.value;
|
818
817
|
});
|
819
|
-
var selectedStyle =
|
818
|
+
var selectedStyle = computed(function () {
|
820
819
|
return select === null || select === void 0 ? void 0 : select.selectedStyle;
|
821
820
|
});
|
822
|
-
var searchValue =
|
821
|
+
var searchValue = computed(function () {
|
823
822
|
return select === null || select === void 0 ? void 0 : select.curSearchValue;
|
824
823
|
});
|
825
|
-
var highlightKeyword =
|
824
|
+
var highlightKeyword = computed(function () {
|
826
825
|
return select === null || select === void 0 ? void 0 : select.highlightKeyword;
|
827
826
|
});
|
828
827
|
var handleOptionClick = function handleOptionClick() {
|
829
828
|
if (disabled.value) return;
|
830
|
-
select === null || select === void 0
|
829
|
+
select === null || select === void 0 ? void 0 : select.handleOptionSelected(proxy);
|
831
830
|
};
|
832
831
|
var handleMouseEnter = function handleMouseEnter() {
|
833
832
|
select.activeOptionValue = optionID.value;
|
@@ -861,17 +860,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
861
860
|
}
|
862
861
|
return list.length ? list : str;
|
863
862
|
};
|
864
|
-
|
865
|
-
select === null || select === void 0
|
866
|
-
group === null || group === void 0
|
863
|
+
onBeforeMount(function () {
|
864
|
+
select === null || select === void 0 ? void 0 : select.register(optionID.value, proxy);
|
865
|
+
group === null || group === void 0 ? void 0 : group.register(optionID.value, proxy);
|
867
866
|
});
|
868
|
-
|
869
|
-
select === null || select === void 0
|
870
|
-
group === null || group === void 0
|
867
|
+
onBeforeUnmount(function () {
|
868
|
+
select === null || select === void 0 ? void 0 : select.unregister(optionID.value, proxy);
|
869
|
+
group === null || group === void 0 ? void 0 : group.unregister(optionID.value, proxy);
|
871
870
|
});
|
872
871
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
873
872
|
resolveClassName = _usePrefix.resolveClassName;
|
874
|
-
return _objectSpread(_objectSpread({},
|
873
|
+
return _objectSpread(_objectSpread({}, toRefs(states)), {}, {
|
875
874
|
selected: selected,
|
876
875
|
multiple: multiple,
|
877
876
|
isHover: isHover,
|
@@ -1025,10 +1024,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1025
1024
|
groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
|
1026
1025
|
})));
|
1027
1026
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
1028
|
-
select === null || select === void 0
|
1027
|
+
select === null || select === void 0 ? void 0 : select.registerGroup(instance.uid, proxy);
|
1029
1028
|
});
|
1030
1029
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1031
|
-
select === null || select === void 0
|
1030
|
+
select === null || select === void 0 ? void 0 : select.unregisterGroup(instance.uid);
|
1032
1031
|
});
|
1033
1032
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1034
1033
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -1039,9 +1038,9 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1039
1038
|
});
|
1040
1039
|
},
|
1041
1040
|
render: function render() {
|
1042
|
-
var _this$$slots$default, _this$$slots;
|
1043
|
-
var groupClass = (0,shared_namespaceObject.classes)(
|
1044
|
-
var groupLabelClass = (0,shared_namespaceObject.classes)(
|
1041
|
+
var _classes, _classes2, _this$$slots$default, _this$$slots;
|
1042
|
+
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));
|
1043
|
+
var groupLabelClass = (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, this.resolveClassName('option-group-label'), true), _defineProperty(_classes2, "collapsible", this.collapsible), _classes2));
|
1045
1044
|
var groupLabelIconClass = (0,shared_namespaceObject.classes)({
|
1046
1045
|
'default-group-label-icon': true,
|
1047
1046
|
collapse: this.groupCollapse
|
@@ -2405,11 +2404,11 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2405
2404
|
};
|
2406
2405
|
var focus = function focus() {
|
2407
2406
|
var _inputRef$value;
|
2408
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
2407
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
2409
2408
|
};
|
2410
2409
|
var blur = function blur() {
|
2411
2410
|
var _inputRef$value2;
|
2412
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
2411
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
|
2413
2412
|
};
|
2414
2413
|
var updateModelValue = function updateModelValue(data) {
|
2415
2414
|
emit('update:modelValue', data);
|
@@ -2494,6 +2493,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2494
2493
|
render: function render() {
|
2495
2494
|
var _this$$slots,
|
2496
2495
|
_this$$slots$prefix,
|
2496
|
+
_classes,
|
2497
2497
|
_this$$slots2,
|
2498
2498
|
_this$$slots2$prefix,
|
2499
2499
|
_this$$slots$default,
|
@@ -2503,7 +2503,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2503
2503
|
_this$$slots5,
|
2504
2504
|
_this$$slots5$suffix;
|
2505
2505
|
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);
|
2506
|
-
var selectTagClass = (0,shared_namespaceObject.classes)(
|
2506
|
+
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));
|
2507
2507
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
2508
2508
|
var inputStyle = {
|
2509
2509
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
@@ -2572,9 +2572,9 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2572
2572
|
|
2573
2573
|
|
2574
2574
|
|
2575
|
-
function _createForOfIteratorHelper(
|
2576
|
-
function select_unsupportedIterableToArray(
|
2577
|
-
function select_arrayLikeToArray(
|
2575
|
+
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; } } }; }
|
2576
|
+
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; } }
|
2577
|
+
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; }
|
2578
2578
|
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; }
|
2579
2579
|
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; }
|
2580
2580
|
/*
|
@@ -2802,14 +2802,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2802
2802
|
handleSetSelectedData();
|
2803
2803
|
if (props.withValidate) {
|
2804
2804
|
var _formItem$validate;
|
2805
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
2805
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
2806
2806
|
}
|
2807
2807
|
}, {
|
2808
2808
|
deep: true
|
2809
2809
|
});
|
2810
2810
|
(0,external_vue_namespaceObject.watch)(selected, function () {
|
2811
2811
|
var _popoverRef$value;
|
2812
|
-
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0
|
2812
|
+
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 ? void 0 : _popoverRef$value.updatePopover(null, popoverConfig.value);
|
2813
2813
|
});
|
2814
2814
|
// list模式下搜索后的值
|
2815
2815
|
var filterList = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2994,7 +2994,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2994
2994
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
2995
2995
|
if (isEnableVirtualRender.value || disableScrollToSelectedOption.value) return;
|
2996
2996
|
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');
|
2997
|
-
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0
|
2997
|
+
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 ? void 0 : _optionsDom$.scrollIntoView({
|
2998
2998
|
block: 'center'
|
2999
2999
|
});
|
3000
3000
|
};
|
@@ -3167,7 +3167,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3167
3167
|
var clearMultipleInputValue = function clearMultipleInputValue() {
|
3168
3168
|
if (['tag'].includes(multipleMode.value) && isInput.value) {
|
3169
3169
|
var _selectTagInputRef$va;
|
3170
|
-
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0
|
3170
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 ? void 0 : _selectTagInputRef$va.updateModelValue('');
|
3171
3171
|
}
|
3172
3172
|
};
|
3173
3173
|
// 聚焦输入框
|
@@ -3176,14 +3176,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3176
3176
|
setTimeout(function () {
|
3177
3177
|
if (!inputSearch.value && !allowCreate.value) {
|
3178
3178
|
var _searchRef$value;
|
3179
|
-
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0
|
3179
|
+
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 ? void 0 : _searchRef$value.focus();
|
3180
3180
|
} else {
|
3181
3181
|
if (multipleMode.value === 'tag') {
|
3182
3182
|
var _selectTagInputRef$va2;
|
3183
|
-
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0
|
3183
|
+
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 ? void 0 : _selectTagInputRef$va2.focus();
|
3184
3184
|
} else {
|
3185
3185
|
var _inputRef$value;
|
3186
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
3186
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
3187
3187
|
}
|
3188
3188
|
}
|
3189
3189
|
}, 0);
|
@@ -3193,10 +3193,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3193
3193
|
setTimeout(function () {
|
3194
3194
|
if (multipleMode.value === 'tag') {
|
3195
3195
|
var _selectTagInputRef$va3;
|
3196
|
-
(_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0
|
3196
|
+
(_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0 ? void 0 : _selectTagInputRef$va3.blur();
|
3197
3197
|
} else {
|
3198
3198
|
var _inputRef$value2;
|
3199
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
3199
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
|
3200
3200
|
}
|
3201
3201
|
}, 0);
|
3202
3202
|
};
|
@@ -3223,7 +3223,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3223
3223
|
if (option.disabled || tmpSelectedMap.has(option.optionID)) return;
|
3224
3224
|
tmpSelectedMap.set(option.optionID, option.optionName || option.optionID);
|
3225
3225
|
});
|
3226
|
-
(_list$value = list.value) === null || _list$value === void 0
|
3226
|
+
(_list$value = list.value) === null || _list$value === void 0 ? void 0 : _list$value.forEach(function (item) {
|
3227
3227
|
if (item.disabled || tmpSelectedMap.has(item[idKey.value])) return;
|
3228
3228
|
tmpSelectedMap.set(item[idKey.value], item[displayKey.value]);
|
3229
3229
|
});
|
@@ -3361,7 +3361,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3361
3361
|
}
|
3362
3362
|
if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
|
3363
3363
|
var _availableOptions$act2;
|
3364
|
-
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0
|
3364
|
+
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 ? void 0 : _availableOptions$act2.scrollIntoView();
|
3365
3365
|
}
|
3366
3366
|
activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
|
3367
3367
|
break;
|
@@ -3421,7 +3421,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3421
3421
|
});
|
3422
3422
|
var handlePopoverShown = function handlePopoverShown() {
|
3423
3423
|
var _virtualRenderRef$val;
|
3424
|
-
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0
|
3424
|
+
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 ? void 0 : _virtualRenderRef$val.scrollTo(0, 1);
|
3425
3425
|
};
|
3426
3426
|
return {
|
3427
3427
|
t: t,
|
@@ -3491,8 +3491,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3491
3491
|
};
|
3492
3492
|
},
|
3493
3493
|
render: function render() {
|
3494
|
-
var
|
3495
|
-
|
3494
|
+
var _classes,
|
3495
|
+
_this = this;
|
3496
|
+
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));
|
3496
3497
|
// 右侧ICON
|
3497
3498
|
var suffixIcon = function suffixIcon() {
|
3498
3499
|
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|