bkui-vue 2.0.1-beta.113 → 2.0.1-beta.114
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 +13950 -13941
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- 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 +380 -351
- package/lib/date-picker/index.js +171 -150
- 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 +299 -269
- package/lib/dialog/index.js +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +311 -302
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- 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 +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/select/index.js
CHANGED
@@ -23,352 +23,352 @@ import "../tag/tag.less";
|
|
23
23
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
24
24
|
/******/ var __webpack_modules__ = ({
|
25
25
|
|
26
|
-
/***/
|
26
|
+
/***/ 4319:
|
27
|
+
/***/ ((module) => {
|
28
|
+
|
29
|
+
function _typeof(o) {
|
30
|
+
"@babel/helpers - typeof";
|
31
|
+
|
32
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
33
|
+
return typeof o;
|
34
|
+
} : function (o) {
|
35
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
36
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
37
|
+
}
|
38
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
39
|
+
|
40
|
+
/***/ }),
|
41
|
+
|
42
|
+
/***/ 5799:
|
27
43
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
28
44
|
|
29
|
-
|
45
|
+
// TODO(Babel 8): Remove this file.
|
46
|
+
|
47
|
+
var runtime = __webpack_require__(7048)();
|
48
|
+
module.exports = runtime;
|
49
|
+
|
50
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
51
|
+
try {
|
52
|
+
regeneratorRuntime = runtime;
|
53
|
+
} catch (accidentalStrictMode) {
|
54
|
+
if (typeof globalThis === "object") {
|
55
|
+
globalThis.regeneratorRuntime = runtime;
|
56
|
+
} else {
|
57
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
/***/ }),
|
63
|
+
|
64
|
+
/***/ 7048:
|
65
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
66
|
+
|
67
|
+
var _typeof = (__webpack_require__(4319)["default"]);
|
30
68
|
function _regeneratorRuntime() {
|
31
69
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
32
70
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
33
|
-
return
|
71
|
+
return e;
|
34
72
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
35
|
-
var
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
73
|
+
var t,
|
74
|
+
e = {},
|
75
|
+
r = Object.prototype,
|
76
|
+
n = r.hasOwnProperty,
|
77
|
+
o = Object.defineProperty || function (t, e, r) {
|
78
|
+
t[e] = r.value;
|
40
79
|
},
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
function define(
|
46
|
-
return Object.defineProperty(
|
47
|
-
value:
|
80
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
81
|
+
a = i.iterator || "@@iterator",
|
82
|
+
c = i.asyncIterator || "@@asyncIterator",
|
83
|
+
u = i.toStringTag || "@@toStringTag";
|
84
|
+
function define(t, e, r) {
|
85
|
+
return Object.defineProperty(t, e, {
|
86
|
+
value: r,
|
48
87
|
enumerable: !0,
|
49
88
|
configurable: !0,
|
50
89
|
writable: !0
|
51
|
-
}),
|
90
|
+
}), t[e];
|
52
91
|
}
|
53
92
|
try {
|
54
93
|
define({}, "");
|
55
|
-
} catch (
|
56
|
-
define = function define(
|
57
|
-
return
|
94
|
+
} catch (t) {
|
95
|
+
define = function define(t, e, r) {
|
96
|
+
return t[e] = r;
|
58
97
|
};
|
59
98
|
}
|
60
|
-
function wrap(
|
61
|
-
var
|
62
|
-
|
63
|
-
|
64
|
-
return
|
65
|
-
value: makeInvokeMethod(
|
66
|
-
}),
|
99
|
+
function wrap(t, e, r, n) {
|
100
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
101
|
+
a = Object.create(i.prototype),
|
102
|
+
c = new Context(n || []);
|
103
|
+
return o(a, "_invoke", {
|
104
|
+
value: makeInvokeMethod(t, r, c)
|
105
|
+
}), a;
|
67
106
|
}
|
68
|
-
function tryCatch(
|
107
|
+
function tryCatch(t, e, r) {
|
69
108
|
try {
|
70
109
|
return {
|
71
110
|
type: "normal",
|
72
|
-
arg:
|
111
|
+
arg: t.call(e, r)
|
73
112
|
};
|
74
|
-
} catch (
|
113
|
+
} catch (t) {
|
75
114
|
return {
|
76
115
|
type: "throw",
|
77
|
-
arg:
|
116
|
+
arg: t
|
78
117
|
};
|
79
118
|
}
|
80
119
|
}
|
81
|
-
|
82
|
-
var
|
120
|
+
e.wrap = wrap;
|
121
|
+
var h = "suspendedStart",
|
122
|
+
l = "suspendedYield",
|
123
|
+
f = "executing",
|
124
|
+
s = "completed",
|
125
|
+
y = {};
|
83
126
|
function Generator() {}
|
84
127
|
function GeneratorFunction() {}
|
85
128
|
function GeneratorFunctionPrototype() {}
|
86
|
-
var
|
87
|
-
define(
|
129
|
+
var p = {};
|
130
|
+
define(p, a, function () {
|
88
131
|
return this;
|
89
132
|
});
|
90
|
-
var
|
91
|
-
|
92
|
-
|
93
|
-
var
|
94
|
-
function defineIteratorMethods(
|
95
|
-
["next", "throw", "return"].forEach(function (
|
96
|
-
define(
|
97
|
-
return this._invoke(
|
133
|
+
var d = Object.getPrototypeOf,
|
134
|
+
v = d && d(d(values([])));
|
135
|
+
v && v !== r && n.call(v, a) && (p = v);
|
136
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
137
|
+
function defineIteratorMethods(t) {
|
138
|
+
["next", "throw", "return"].forEach(function (e) {
|
139
|
+
define(t, e, function (t) {
|
140
|
+
return this._invoke(e, t);
|
98
141
|
});
|
99
142
|
});
|
100
143
|
}
|
101
|
-
function AsyncIterator(
|
102
|
-
function invoke(
|
103
|
-
var
|
104
|
-
if ("throw" !==
|
105
|
-
var
|
106
|
-
|
107
|
-
return
|
108
|
-
invoke("next",
|
109
|
-
}, function (
|
110
|
-
invoke("throw",
|
111
|
-
}) :
|
112
|
-
|
113
|
-
}, function (
|
114
|
-
return invoke("throw",
|
144
|
+
function AsyncIterator(t, e) {
|
145
|
+
function invoke(r, o, i, a) {
|
146
|
+
var c = tryCatch(t[r], t, o);
|
147
|
+
if ("throw" !== c.type) {
|
148
|
+
var u = c.arg,
|
149
|
+
h = u.value;
|
150
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
151
|
+
invoke("next", t, i, a);
|
152
|
+
}, function (t) {
|
153
|
+
invoke("throw", t, i, a);
|
154
|
+
}) : e.resolve(h).then(function (t) {
|
155
|
+
u.value = t, i(u);
|
156
|
+
}, function (t) {
|
157
|
+
return invoke("throw", t, i, a);
|
115
158
|
});
|
116
159
|
}
|
117
|
-
|
160
|
+
a(c.arg);
|
118
161
|
}
|
119
|
-
var
|
120
|
-
|
121
|
-
value: function value(
|
162
|
+
var r;
|
163
|
+
o(this, "_invoke", {
|
164
|
+
value: function value(t, n) {
|
122
165
|
function callInvokeWithMethodAndArg() {
|
123
|
-
return new
|
124
|
-
invoke(
|
166
|
+
return new e(function (e, r) {
|
167
|
+
invoke(t, n, e, r);
|
125
168
|
});
|
126
169
|
}
|
127
|
-
return
|
170
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
128
171
|
}
|
129
172
|
});
|
130
173
|
}
|
131
|
-
function makeInvokeMethod(
|
132
|
-
var
|
133
|
-
return function (
|
134
|
-
if (
|
135
|
-
if (
|
136
|
-
if ("throw" ===
|
137
|
-
return
|
174
|
+
function makeInvokeMethod(e, r, n) {
|
175
|
+
var o = h;
|
176
|
+
return function (i, a) {
|
177
|
+
if (o === f) throw new Error("Generator is already running");
|
178
|
+
if (o === s) {
|
179
|
+
if ("throw" === i) throw a;
|
180
|
+
return {
|
181
|
+
value: t,
|
182
|
+
done: !0
|
183
|
+
};
|
138
184
|
}
|
139
|
-
for (
|
140
|
-
var
|
141
|
-
if (
|
142
|
-
var
|
143
|
-
if (
|
144
|
-
if (
|
145
|
-
return
|
185
|
+
for (n.method = i, n.arg = a;;) {
|
186
|
+
var c = n.delegate;
|
187
|
+
if (c) {
|
188
|
+
var u = maybeInvokeDelegate(c, n);
|
189
|
+
if (u) {
|
190
|
+
if (u === y) continue;
|
191
|
+
return u;
|
146
192
|
}
|
147
193
|
}
|
148
|
-
if ("next" ===
|
149
|
-
if (
|
150
|
-
|
151
|
-
} else "return" ===
|
152
|
-
|
153
|
-
var
|
154
|
-
if ("normal" ===
|
155
|
-
if (
|
194
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
195
|
+
if (o === h) throw o = s, n.arg;
|
196
|
+
n.dispatchException(n.arg);
|
197
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
198
|
+
o = f;
|
199
|
+
var p = tryCatch(e, r, n);
|
200
|
+
if ("normal" === p.type) {
|
201
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
156
202
|
return {
|
157
|
-
value:
|
158
|
-
done:
|
203
|
+
value: p.arg,
|
204
|
+
done: n.done
|
159
205
|
};
|
160
206
|
}
|
161
|
-
"throw" ===
|
207
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
162
208
|
}
|
163
209
|
};
|
164
210
|
}
|
165
|
-
function maybeInvokeDelegate(
|
166
|
-
var
|
167
|
-
|
168
|
-
if (
|
169
|
-
var
|
170
|
-
if ("throw" ===
|
171
|
-
var
|
172
|
-
return
|
211
|
+
function maybeInvokeDelegate(e, r) {
|
212
|
+
var n = r.method,
|
213
|
+
o = e.iterator[n];
|
214
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
215
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
216
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
217
|
+
var a = i.arg;
|
218
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
173
219
|
}
|
174
|
-
function pushTryEntry(
|
175
|
-
var
|
176
|
-
tryLoc:
|
220
|
+
function pushTryEntry(t) {
|
221
|
+
var e = {
|
222
|
+
tryLoc: t[0]
|
177
223
|
};
|
178
|
-
1 in
|
224
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
179
225
|
}
|
180
|
-
function resetTryEntry(
|
181
|
-
var
|
182
|
-
|
226
|
+
function resetTryEntry(t) {
|
227
|
+
var e = t.completion || {};
|
228
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
183
229
|
}
|
184
|
-
function Context(
|
230
|
+
function Context(t) {
|
185
231
|
this.tryEntries = [{
|
186
232
|
tryLoc: "root"
|
187
|
-
}],
|
233
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
188
234
|
}
|
189
|
-
function values(
|
190
|
-
if (
|
191
|
-
var
|
192
|
-
if (
|
193
|
-
if ("function" == typeof
|
194
|
-
if (!isNaN(
|
195
|
-
var
|
196
|
-
|
197
|
-
for (; ++
|
198
|
-
return next.value =
|
235
|
+
function values(e) {
|
236
|
+
if (e || "" === e) {
|
237
|
+
var r = e[a];
|
238
|
+
if (r) return r.call(e);
|
239
|
+
if ("function" == typeof e.next) return e;
|
240
|
+
if (!isNaN(e.length)) {
|
241
|
+
var o = -1,
|
242
|
+
i = function next() {
|
243
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
244
|
+
return next.value = t, next.done = !0, next;
|
199
245
|
};
|
200
|
-
return
|
246
|
+
return i.next = i;
|
201
247
|
}
|
202
248
|
}
|
203
|
-
|
204
|
-
next: doneResult
|
205
|
-
};
|
249
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
206
250
|
}
|
207
|
-
|
208
|
-
return {
|
209
|
-
value: undefined,
|
210
|
-
done: !0
|
211
|
-
};
|
212
|
-
}
|
213
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
251
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
214
252
|
value: GeneratorFunctionPrototype,
|
215
253
|
configurable: !0
|
216
|
-
}),
|
254
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
217
255
|
value: GeneratorFunction,
|
218
256
|
configurable: !0
|
219
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
220
|
-
var
|
221
|
-
return !!
|
222
|
-
},
|
223
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
224
|
-
},
|
257
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
258
|
+
var e = "function" == typeof t && t.constructor;
|
259
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
260
|
+
}, e.mark = function (t) {
|
261
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
262
|
+
}, e.awrap = function (t) {
|
225
263
|
return {
|
226
|
-
__await:
|
264
|
+
__await: t
|
227
265
|
};
|
228
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
266
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
229
267
|
return this;
|
230
|
-
}),
|
231
|
-
void 0 ===
|
232
|
-
var
|
233
|
-
return
|
234
|
-
return
|
268
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
269
|
+
void 0 === i && (i = Promise);
|
270
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
271
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
272
|
+
return t.done ? t.value : a.next();
|
235
273
|
});
|
236
|
-
}, defineIteratorMethods(
|
274
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
237
275
|
return this;
|
238
|
-
}), define(
|
276
|
+
}), define(g, "toString", function () {
|
239
277
|
return "[object Generator]";
|
240
|
-
}),
|
241
|
-
var
|
242
|
-
|
243
|
-
for (var
|
244
|
-
return
|
245
|
-
for (;
|
246
|
-
var
|
247
|
-
if (
|
278
|
+
}), e.keys = function (t) {
|
279
|
+
var e = Object(t),
|
280
|
+
r = [];
|
281
|
+
for (var n in e) r.push(n);
|
282
|
+
return r.reverse(), function next() {
|
283
|
+
for (; r.length;) {
|
284
|
+
var t = r.pop();
|
285
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
248
286
|
}
|
249
287
|
return next.done = !0, next;
|
250
288
|
};
|
251
|
-
},
|
289
|
+
}, e.values = values, Context.prototype = {
|
252
290
|
constructor: Context,
|
253
|
-
reset: function reset(
|
254
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
291
|
+
reset: function reset(e) {
|
292
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
255
293
|
},
|
256
294
|
stop: function stop() {
|
257
295
|
this.done = !0;
|
258
|
-
var
|
259
|
-
if ("throw" ===
|
296
|
+
var t = this.tryEntries[0].completion;
|
297
|
+
if ("throw" === t.type) throw t.arg;
|
260
298
|
return this.rval;
|
261
299
|
},
|
262
|
-
dispatchException: function dispatchException(
|
263
|
-
if (this.done) throw
|
264
|
-
var
|
265
|
-
function handle(
|
266
|
-
return
|
300
|
+
dispatchException: function dispatchException(e) {
|
301
|
+
if (this.done) throw e;
|
302
|
+
var r = this;
|
303
|
+
function handle(n, o) {
|
304
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
267
305
|
}
|
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 <
|
306
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
307
|
+
var i = this.tryEntries[o],
|
308
|
+
a = i.completion;
|
309
|
+
if ("root" === i.tryLoc) return handle("end");
|
310
|
+
if (i.tryLoc <= this.prev) {
|
311
|
+
var c = n.call(i, "catchLoc"),
|
312
|
+
u = n.call(i, "finallyLoc");
|
313
|
+
if (c && u) {
|
314
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
315
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
316
|
+
} else if (c) {
|
317
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
280
318
|
} else {
|
281
|
-
if (!
|
282
|
-
if (this.prev <
|
319
|
+
if (!u) throw new Error("try statement without catch or finally");
|
320
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
283
321
|
}
|
284
322
|
}
|
285
323
|
}
|
286
324
|
},
|
287
|
-
abrupt: function abrupt(
|
288
|
-
for (var
|
289
|
-
var
|
290
|
-
if (
|
291
|
-
var
|
325
|
+
abrupt: function abrupt(t, e) {
|
326
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
327
|
+
var o = this.tryEntries[r];
|
328
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
329
|
+
var i = o;
|
292
330
|
break;
|
293
331
|
}
|
294
332
|
}
|
295
|
-
|
296
|
-
var
|
297
|
-
return
|
333
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
334
|
+
var a = i ? i.completion : {};
|
335
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
298
336
|
},
|
299
|
-
complete: function complete(
|
300
|
-
if ("throw" ===
|
301
|
-
return "break" ===
|
337
|
+
complete: function complete(t, e) {
|
338
|
+
if ("throw" === t.type) throw t.arg;
|
339
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
302
340
|
},
|
303
|
-
finish: function finish(
|
304
|
-
for (var
|
305
|
-
var
|
306
|
-
if (
|
341
|
+
finish: function finish(t) {
|
342
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
343
|
+
var r = this.tryEntries[e];
|
344
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
307
345
|
}
|
308
346
|
},
|
309
|
-
"catch": function _catch(
|
310
|
-
for (var
|
311
|
-
var
|
312
|
-
if (
|
313
|
-
var
|
314
|
-
if ("throw" ===
|
315
|
-
var
|
316
|
-
resetTryEntry(
|
347
|
+
"catch": function _catch(t) {
|
348
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
349
|
+
var r = this.tryEntries[e];
|
350
|
+
if (r.tryLoc === t) {
|
351
|
+
var n = r.completion;
|
352
|
+
if ("throw" === n.type) {
|
353
|
+
var o = n.arg;
|
354
|
+
resetTryEntry(r);
|
317
355
|
}
|
318
|
-
return
|
356
|
+
return o;
|
319
357
|
}
|
320
358
|
}
|
321
359
|
throw new Error("illegal catch attempt");
|
322
360
|
},
|
323
|
-
delegateYield: function delegateYield(
|
361
|
+
delegateYield: function delegateYield(e, r, n) {
|
324
362
|
return this.delegate = {
|
325
|
-
iterator: values(
|
326
|
-
resultName:
|
327
|
-
nextLoc:
|
328
|
-
}, "next" === this.method && (this.arg =
|
363
|
+
iterator: values(e),
|
364
|
+
resultName: r,
|
365
|
+
nextLoc: n
|
366
|
+
}, "next" === this.method && (this.arg = t), y;
|
329
367
|
}
|
330
|
-
},
|
368
|
+
}, e;
|
331
369
|
}
|
332
370
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
333
371
|
|
334
|
-
/***/ }),
|
335
|
-
|
336
|
-
/***/ 7425:
|
337
|
-
/***/ ((module) => {
|
338
|
-
|
339
|
-
function _typeof(obj) {
|
340
|
-
"@babel/helpers - typeof";
|
341
|
-
|
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
|
-
}
|
348
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
349
|
-
|
350
|
-
/***/ }),
|
351
|
-
|
352
|
-
/***/ 2841:
|
353
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
354
|
-
|
355
|
-
// TODO(Babel 8): Remove this file.
|
356
|
-
|
357
|
-
var runtime = __webpack_require__(7609)();
|
358
|
-
module.exports = runtime;
|
359
|
-
|
360
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
361
|
-
try {
|
362
|
-
regeneratorRuntime = runtime;
|
363
|
-
} catch (accidentalStrictMode) {
|
364
|
-
if (typeof globalThis === "object") {
|
365
|
-
globalThis.regeneratorRuntime = runtime;
|
366
|
-
} else {
|
367
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
368
|
-
}
|
369
|
-
}
|
370
|
-
|
371
|
-
|
372
372
|
/***/ })
|
373
373
|
|
374
374
|
/******/ });
|
@@ -429,8 +429,6 @@ try {
|
|
429
429
|
/******/
|
430
430
|
/************************************************************************/
|
431
431
|
var __webpack_exports__ = {};
|
432
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
433
|
-
(() => {
|
434
432
|
|
435
433
|
// EXPORTS
|
436
434
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -441,11 +439,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
441
439
|
useHover: () => (/* reexport */ useHover)
|
442
440
|
});
|
443
441
|
|
444
|
-
;//
|
445
|
-
var x = y => {
|
446
|
-
var
|
447
|
-
|
448
|
-
|
442
|
+
;// external "../shared"
|
443
|
+
var x = (y) => {
|
444
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
445
|
+
}
|
446
|
+
var y = (x) => (() => (x))
|
447
|
+
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) });
|
448
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
449
449
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
450
450
|
try {
|
451
451
|
var info = gen[key](arg);
|
@@ -477,13 +477,15 @@ function _asyncToGenerator(fn) {
|
|
477
477
|
};
|
478
478
|
}
|
479
479
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
480
|
-
var regenerator = __webpack_require__(
|
480
|
+
var regenerator = __webpack_require__(5799);
|
481
481
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
482
|
-
;//
|
483
|
-
var external_vue_x = y => {
|
484
|
-
var
|
485
|
-
|
486
|
-
|
482
|
+
;// external "vue"
|
483
|
+
var external_vue_x = (y) => {
|
484
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
485
|
+
}
|
486
|
+
var external_vue_y = (x) => (() => (x))
|
487
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["customRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.customRef), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["inject"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.inject), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["onBeforeMount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["provide"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.provide), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRef), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["vModelText"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vModelText), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
488
|
+
;// ../../packages/select/src/common.ts
|
487
489
|
|
488
490
|
|
489
491
|
/*
|
@@ -600,7 +602,7 @@ function usePopover(config, triggerRef) {
|
|
600
602
|
});
|
601
603
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
602
604
|
var _observerIns;
|
603
|
-
(_observerIns = observerIns) === null || _observerIns === void 0
|
605
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 || _observerIns.stop();
|
604
606
|
observerIns = null;
|
605
607
|
});
|
606
608
|
return {
|
@@ -618,7 +620,7 @@ function useRemoteSearch(method, callBack) {
|
|
618
620
|
return searchValue.value || customOptionName.value;
|
619
621
|
});
|
620
622
|
var searchLoading = (0,external_vue_namespaceObject.ref)(false);
|
621
|
-
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
623
|
+
(0,external_vue_namespaceObject.watch)(curSearchValue, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
622
624
|
return regenerator_default().wrap(function _callee$(_context) {
|
623
625
|
while (1) switch (_context.prev = _context.next) {
|
624
626
|
case 0:
|
@@ -636,7 +638,7 @@ function useRemoteSearch(method, callBack) {
|
|
636
638
|
console.error(_context.t0);
|
637
639
|
case 10:
|
638
640
|
_context.prev = 10;
|
639
|
-
callBack === null || callBack === void 0
|
641
|
+
callBack === null || callBack === void 0 || callBack();
|
640
642
|
return _context.finish(10);
|
641
643
|
case 13:
|
642
644
|
case "end":
|
@@ -666,39 +668,39 @@ function isInViewPort(el, client) {
|
|
666
668
|
clientBottom = _client$getBoundingCl.bottom;
|
667
669
|
return elTop >= clientTop && elBottom <= clientBottom;
|
668
670
|
}
|
669
|
-
;//
|
670
|
-
function _typeof(
|
671
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
672
|
+
function _typeof(o) {
|
671
673
|
"@babel/helpers - typeof";
|
672
674
|
|
673
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
674
|
-
return typeof
|
675
|
-
} : function (
|
676
|
-
return
|
677
|
-
}, _typeof(
|
675
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
676
|
+
return typeof o;
|
677
|
+
} : function (o) {
|
678
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
679
|
+
}, _typeof(o);
|
678
680
|
}
|
679
|
-
;//
|
680
|
-
|
681
|
-
function
|
682
|
-
if (
|
683
|
-
var
|
684
|
-
if (
|
685
|
-
var
|
686
|
-
if (
|
681
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
682
|
+
|
683
|
+
function toPrimitive(t, r) {
|
684
|
+
if ("object" != _typeof(t) || !t) return t;
|
685
|
+
var e = t[Symbol.toPrimitive];
|
686
|
+
if (void 0 !== e) {
|
687
|
+
var i = e.call(t, r || "default");
|
688
|
+
if ("object" != _typeof(i)) return i;
|
687
689
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
688
690
|
}
|
689
|
-
return (
|
691
|
+
return ("string" === r ? String : Number)(t);
|
690
692
|
}
|
691
|
-
;//
|
693
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
692
694
|
|
693
695
|
|
694
|
-
function
|
695
|
-
var
|
696
|
-
return _typeof(
|
696
|
+
function toPropertyKey(t) {
|
697
|
+
var i = toPrimitive(t, "string");
|
698
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
697
699
|
}
|
698
|
-
;//
|
700
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
699
701
|
|
700
702
|
function _defineProperty(obj, key, value) {
|
701
|
-
key =
|
703
|
+
key = toPropertyKey(key);
|
702
704
|
if (key in obj) {
|
703
705
|
Object.defineProperty(obj, key, {
|
704
706
|
value: value,
|
@@ -711,28 +713,41 @@ function _defineProperty(obj, key, value) {
|
|
711
713
|
}
|
712
714
|
return obj;
|
713
715
|
}
|
714
|
-
;//
|
715
|
-
var checkbox_x = y => {
|
716
|
-
var
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
716
|
+
;// external "../checkbox"
|
717
|
+
var checkbox_x = (y) => {
|
718
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
719
|
+
}
|
720
|
+
var checkbox_y = (x) => (() => (x))
|
721
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
|
722
|
+
;// external "../checkbox/checkbox.less"
|
723
|
+
var checkbox_less_x = (y) => {
|
724
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
725
|
+
}
|
726
|
+
var checkbox_less_y = (x) => (() => (x))
|
721
727
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
722
|
-
;//
|
723
|
-
var config_provider_x = y => {
|
724
|
-
var
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
var
|
733
|
-
const
|
734
|
-
;//
|
728
|
+
;// external "../config-provider"
|
729
|
+
var config_provider_x = (y) => {
|
730
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
731
|
+
}
|
732
|
+
var config_provider_y = (x) => (() => (x))
|
733
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale), ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
734
|
+
;// external "../icon"
|
735
|
+
var icon_x = (y) => {
|
736
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
737
|
+
}
|
738
|
+
var icon_y = (x) => (() => (x))
|
739
|
+
const icon_namespaceObject = icon_x({ ["AngleDown"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDown), ["AngleUpFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill), ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Done"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done), ["Search"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search), ["TextAll"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll) });
|
740
|
+
;// external "lodash/isEqual"
|
741
|
+
var isEqual_x = (y) => {
|
742
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
743
|
+
}
|
744
|
+
var isEqual_y = (x) => (() => (x))
|
745
|
+
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"]) });
|
746
|
+
;// ../../packages/select/src/option.tsx
|
735
747
|
|
748
|
+
|
749
|
+
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; }
|
750
|
+
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; }
|
736
751
|
/*
|
737
752
|
* Tencent is pleased to support the open source community by making
|
738
753
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -759,8 +774,6 @@ const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
759
774
|
* IN THE SOFTWARE.
|
760
775
|
*/
|
761
776
|
|
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; }
|
764
777
|
|
765
778
|
|
766
779
|
|
@@ -768,7 +781,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
768
781
|
|
769
782
|
|
770
783
|
|
771
|
-
/* harmony default export */ const src_option = (defineComponent({
|
784
|
+
/* harmony default export */ const src_option = ((0,external_vue_namespaceObject.defineComponent)({
|
772
785
|
name: 'Option',
|
773
786
|
props: {
|
774
787
|
id: {
|
@@ -782,52 +795,52 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
782
795
|
setup: function setup(props, _ref) {
|
783
796
|
var attrs = _ref.attrs;
|
784
797
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
785
|
-
var _getCurrentInstance = getCurrentInstance(),
|
798
|
+
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
786
799
|
proxy = _getCurrentInstance.proxy;
|
787
|
-
var states = reactive({
|
800
|
+
var states = (0,external_vue_namespaceObject.reactive)({
|
788
801
|
visible: true
|
789
802
|
});
|
790
|
-
var _toRefs = toRefs(props),
|
803
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
791
804
|
disabled = _toRefs.disabled,
|
792
805
|
id = _toRefs.id,
|
793
806
|
name = _toRefs.name;
|
794
807
|
// 兼容label
|
795
|
-
var optionName = computed(function () {
|
808
|
+
var optionName = (0,external_vue_namespaceObject.computed)(function () {
|
796
809
|
return name.value !== undefined ? name.value : attrs.label;
|
797
810
|
});
|
798
811
|
// 兼容value
|
799
|
-
var optionID = computed(function () {
|
812
|
+
var optionID = (0,external_vue_namespaceObject.computed)(function () {
|
800
813
|
return id.value !== undefined ? id.value : attrs.value;
|
801
814
|
});
|
802
|
-
var select = inject(selectKey, null);
|
803
|
-
var group = inject(optionGroupKey, null);
|
804
|
-
var selected = computed(function () {
|
815
|
+
var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
|
816
|
+
var group = (0,external_vue_namespaceObject.inject)(optionGroupKey, null);
|
817
|
+
var selected = (0,external_vue_namespaceObject.computed)(function () {
|
805
818
|
var _select$selected;
|
806
819
|
return select === null || select === void 0 || (_select$selected = select.selected) === null || _select$selected === void 0 ? void 0 : _select$selected.some(function (item) {
|
807
820
|
return (0,isEqual_namespaceObject["default"])(item.value, optionID.value);
|
808
821
|
});
|
809
822
|
});
|
810
|
-
var multiple = computed(function () {
|
823
|
+
var multiple = (0,external_vue_namespaceObject.computed)(function () {
|
811
824
|
return select === null || select === void 0 ? void 0 : select.multiple;
|
812
825
|
});
|
813
|
-
var isHover = computed(function () {
|
826
|
+
var isHover = (0,external_vue_namespaceObject.computed)(function () {
|
814
827
|
return (select === null || select === void 0 ? void 0 : select.activeOptionValue) === optionID.value;
|
815
828
|
});
|
816
|
-
var showSelectedIcon = computed(function () {
|
829
|
+
var showSelectedIcon = (0,external_vue_namespaceObject.computed)(function () {
|
817
830
|
return (select === null || select === void 0 ? void 0 : select.showSelectedIcon) && multiple.value;
|
818
831
|
});
|
819
|
-
var selectedStyle = computed(function () {
|
832
|
+
var selectedStyle = (0,external_vue_namespaceObject.computed)(function () {
|
820
833
|
return select === null || select === void 0 ? void 0 : select.selectedStyle;
|
821
834
|
});
|
822
|
-
var searchValue = computed(function () {
|
835
|
+
var searchValue = (0,external_vue_namespaceObject.computed)(function () {
|
823
836
|
return select === null || select === void 0 ? void 0 : select.curSearchValue;
|
824
837
|
});
|
825
|
-
var highlightKeyword = computed(function () {
|
838
|
+
var highlightKeyword = (0,external_vue_namespaceObject.computed)(function () {
|
826
839
|
return select === null || select === void 0 ? void 0 : select.highlightKeyword;
|
827
840
|
});
|
828
841
|
var handleOptionClick = function handleOptionClick() {
|
829
842
|
if (disabled.value) return;
|
830
|
-
select === null || select === void 0
|
843
|
+
select === null || select === void 0 || select.handleOptionSelected(proxy);
|
831
844
|
};
|
832
845
|
var handleMouseEnter = function handleMouseEnter() {
|
833
846
|
select.activeOptionValue = optionID.value;
|
@@ -861,17 +874,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
861
874
|
}
|
862
875
|
return list.length ? list : str;
|
863
876
|
};
|
864
|
-
onBeforeMount(function () {
|
865
|
-
select === null || select === void 0
|
866
|
-
group === null || group === void 0
|
877
|
+
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
878
|
+
select === null || select === void 0 || select.register(optionID.value, proxy);
|
879
|
+
group === null || group === void 0 || group.register(optionID.value, proxy);
|
867
880
|
});
|
868
|
-
onBeforeUnmount(function () {
|
869
|
-
select === null || select === void 0
|
870
|
-
group === null || group === void 0
|
881
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
882
|
+
select === null || select === void 0 || select.unregister(optionID.value, proxy);
|
883
|
+
group === null || group === void 0 || group.unregister(optionID.value, proxy);
|
871
884
|
});
|
872
885
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
873
886
|
resolveClassName = _usePrefix.resolveClassName;
|
874
|
-
return _objectSpread(_objectSpread({}, toRefs(states)), {}, {
|
887
|
+
return _objectSpread(_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
|
875
888
|
selected: selected,
|
876
889
|
multiple: multiple,
|
877
890
|
isHover: isHover,
|
@@ -915,22 +928,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
915
928
|
}, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
916
929
|
}
|
917
930
|
}));
|
918
|
-
;//
|
931
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
919
932
|
function _arrayLikeToArray(arr, len) {
|
920
933
|
if (len == null || len > arr.length) len = arr.length;
|
921
934
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
922
935
|
return arr2;
|
923
936
|
}
|
924
|
-
;//
|
937
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
925
938
|
|
926
939
|
function _arrayWithoutHoles(arr) {
|
927
940
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
928
941
|
}
|
929
|
-
;//
|
942
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
930
943
|
function _iterableToArray(iter) {
|
931
944
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
932
945
|
}
|
933
|
-
;//
|
946
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
934
947
|
|
935
948
|
function _unsupportedIterableToArray(o, minLen) {
|
936
949
|
if (!o) return;
|
@@ -940,11 +953,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
940
953
|
if (n === "Map" || n === "Set") return Array.from(o);
|
941
954
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
942
955
|
}
|
943
|
-
;//
|
956
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
944
957
|
function _nonIterableSpread() {
|
945
958
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
946
959
|
}
|
947
|
-
;//
|
960
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
948
961
|
|
949
962
|
|
950
963
|
|
@@ -952,7 +965,7 @@ function _nonIterableSpread() {
|
|
952
965
|
function _toConsumableArray(arr) {
|
953
966
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
954
967
|
}
|
955
|
-
;//
|
968
|
+
;// ../../packages/select/src/optionGroup.tsx
|
956
969
|
|
957
970
|
|
958
971
|
|
@@ -1025,10 +1038,10 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1025
1038
|
groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
|
1026
1039
|
})));
|
1027
1040
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
1028
|
-
select === null || select === void 0
|
1041
|
+
select === null || select === void 0 || select.registerGroup(instance.uid, proxy);
|
1029
1042
|
});
|
1030
1043
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
1031
|
-
select === null || select === void 0
|
1044
|
+
select === null || select === void 0 || select.unregisterGroup(instance.uid);
|
1032
1045
|
});
|
1033
1046
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1034
1047
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -1039,9 +1052,9 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1039
1052
|
});
|
1040
1053
|
},
|
1041
1054
|
render: function render() {
|
1042
|
-
var
|
1043
|
-
var groupClass = (0,shared_namespaceObject.classes)((
|
1044
|
-
var groupLabelClass = (0,shared_namespaceObject.classes)((
|
1055
|
+
var _this$$slots$default, _this$$slots;
|
1056
|
+
var groupClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('option-group'), true), "collapsible", this.collapsible), "disabled", this.disabled));
|
1057
|
+
var groupLabelClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, this.resolveClassName('option-group-label'), true), "collapsible", this.collapsible));
|
1045
1058
|
var groupLabelIconClass = (0,shared_namespaceObject.classes)({
|
1046
1059
|
'default-group-label-icon': true,
|
1047
1060
|
collapse: this.groupCollapse
|
@@ -1062,47 +1075,67 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1062
1075
|
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
1063
1076
|
}
|
1064
1077
|
}));
|
1065
|
-
;//
|
1066
|
-
var directives_x = y => {
|
1067
|
-
var
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
var
|
1078
|
+
;// external "../directives"
|
1079
|
+
var directives_x = (y) => {
|
1080
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1081
|
+
}
|
1082
|
+
var directives_y = (x) => (() => (x))
|
1083
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips), ["clickoutside"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside) });
|
1084
|
+
;// external "../input"
|
1085
|
+
var input_x = (y) => {
|
1086
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1087
|
+
}
|
1088
|
+
var input_y = (x) => (() => (x))
|
1089
|
+
const input_namespaceObject = input_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__["default"]) });
|
1090
|
+
;// external "../input/input.less"
|
1091
|
+
var input_less_x = (y) => {
|
1092
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1093
|
+
}
|
1094
|
+
var input_less_y = (x) => (() => (x))
|
1076
1095
|
const input_less_namespaceObject = input_less_x({ });
|
1077
|
-
;//
|
1078
|
-
var loading_x = y => {
|
1079
|
-
var
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1096
|
+
;// external "../loading"
|
1097
|
+
var loading_x = (y) => {
|
1098
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1099
|
+
}
|
1100
|
+
var loading_y = (x) => (() => (x))
|
1101
|
+
const loading_namespaceObject = loading_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"]) });
|
1102
|
+
;// external "../loading/loading.less"
|
1103
|
+
var loading_less_x = (y) => {
|
1104
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1105
|
+
}
|
1106
|
+
var loading_less_y = (x) => (() => (x))
|
1084
1107
|
const loading_less_namespaceObject = loading_less_x({ });
|
1085
|
-
;//
|
1086
|
-
var popover_x = y => {
|
1087
|
-
var
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1108
|
+
;// external "../popover"
|
1109
|
+
var popover_x = (y) => {
|
1110
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1111
|
+
}
|
1112
|
+
var popover_y = (x) => (() => (x))
|
1113
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
1114
|
+
;// external "../popover/popover.less"
|
1115
|
+
var popover_less_x = (y) => {
|
1116
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1117
|
+
}
|
1118
|
+
var popover_less_y = (x) => (() => (x))
|
1092
1119
|
const popover_less_namespaceObject = popover_less_x({ });
|
1093
|
-
;//
|
1094
|
-
var virtual_render_x = y => {
|
1095
|
-
var
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1120
|
+
;// external "../virtual-render"
|
1121
|
+
var virtual_render_x = (y) => {
|
1122
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1123
|
+
}
|
1124
|
+
var virtual_render_y = (x) => (() => (x))
|
1125
|
+
const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__["default"]) });
|
1126
|
+
;// external "../virtual-render/virtual-render.less"
|
1127
|
+
var virtual_render_less_x = (y) => {
|
1128
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1129
|
+
}
|
1130
|
+
var virtual_render_less_y = (x) => (() => (x))
|
1100
1131
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1101
|
-
;//
|
1102
|
-
var merge_x = y => {
|
1103
|
-
var
|
1104
|
-
|
1105
|
-
|
1132
|
+
;// external "lodash/merge"
|
1133
|
+
var merge_x = (y) => {
|
1134
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1135
|
+
}
|
1136
|
+
var merge_y = (x) => (() => (x))
|
1137
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"]) });
|
1138
|
+
;// ../../packages/select/src/pinyin/dict.js
|
1106
1139
|
/*
|
1107
1140
|
* Tencent is pleased to support the open source community by making
|
1108
1141
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2000,7 +2033,7 @@ const EXCEPTIONS = {
|
|
2000
2033
|
EXCEPTIONS,
|
2001
2034
|
});
|
2002
2035
|
|
2003
|
-
;//
|
2036
|
+
;// ../../packages/select/src/pinyin/core.js
|
2004
2037
|
/*
|
2005
2038
|
* Tencent is pleased to support the open source community by making
|
2006
2039
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2167,7 +2200,7 @@ function parse(str) {
|
|
2167
2200
|
},
|
2168
2201
|
});
|
2169
2202
|
|
2170
|
-
;//
|
2203
|
+
;// ../../packages/select/src/pinyin/patchers/56l.js
|
2171
2204
|
/*
|
2172
2205
|
* Tencent is pleased to support the open source community by making
|
2173
2206
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2260,7 +2293,7 @@ function shouldPatch(toToken) {
|
|
2260
2293
|
shouldPatch,
|
2261
2294
|
});
|
2262
2295
|
|
2263
|
-
;//
|
2296
|
+
;// ../../packages/select/src/pinyin/index.js
|
2264
2297
|
/*
|
2265
2298
|
* Tencent is pleased to support the open source community by making
|
2266
2299
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2300,23 +2333,31 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
|
2300
2333
|
|
2301
2334
|
/* harmony default export */ const pinyin = (core);
|
2302
2335
|
|
2303
|
-
;//
|
2304
|
-
var overflow_title_x = y => {
|
2305
|
-
var
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2313
|
-
var
|
2336
|
+
;// external "../overflow-title"
|
2337
|
+
var overflow_title_x = (y) => {
|
2338
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2339
|
+
}
|
2340
|
+
var overflow_title_y = (x) => (() => (x))
|
2341
|
+
const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle) });
|
2342
|
+
;// external "../tag"
|
2343
|
+
var tag_x = (y) => {
|
2344
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2345
|
+
}
|
2346
|
+
var tag_y = (x) => (() => (x))
|
2347
|
+
const tag_namespaceObject = tag_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"]) });
|
2348
|
+
;// external "../tag/tag.less"
|
2349
|
+
var tag_less_x = (y) => {
|
2350
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2351
|
+
}
|
2352
|
+
var tag_less_y = (x) => (() => (x))
|
2314
2353
|
const tag_less_namespaceObject = tag_less_x({ });
|
2315
|
-
;//
|
2316
|
-
var debounce_x = y => {
|
2317
|
-
var
|
2318
|
-
|
2319
|
-
|
2354
|
+
;// external "lodash/debounce"
|
2355
|
+
var debounce_x = (y) => {
|
2356
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2357
|
+
}
|
2358
|
+
var debounce_y = (x) => (() => (x))
|
2359
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"]) });
|
2360
|
+
;// ../../packages/select/src/selectTagInput.tsx
|
2320
2361
|
|
2321
2362
|
|
2322
2363
|
/*
|
@@ -2405,11 +2446,11 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2405
2446
|
};
|
2406
2447
|
var focus = function focus() {
|
2407
2448
|
var _inputRef$value;
|
2408
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
2449
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
2409
2450
|
};
|
2410
2451
|
var blur = function blur() {
|
2411
2452
|
var _inputRef$value2;
|
2412
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
2453
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
2413
2454
|
};
|
2414
2455
|
var updateModelValue = function updateModelValue(data) {
|
2415
2456
|
emit('update:modelValue', data);
|
@@ -2494,7 +2535,6 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2494
2535
|
render: function render() {
|
2495
2536
|
var _this$$slots,
|
2496
2537
|
_this$$slots$prefix,
|
2497
|
-
_classes,
|
2498
2538
|
_this$$slots2,
|
2499
2539
|
_this$$slots2$prefix,
|
2500
2540
|
_this$$slots$default,
|
@@ -2504,7 +2544,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2504
2544
|
_this$$slots5,
|
2505
2545
|
_this$$slots5$suffix;
|
2506
2546
|
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)((
|
2547
|
+
var selectTagClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('select-tag'), true), this.resolveClassName('select-tag--default'), true), 'is-disabled', this.disabled), 'collapse-tag', this.collapseTags), 'has-prefix', !!prefix), 'is-simplicity', this.behavior === 'simplicity'));
|
2508
2548
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
2509
2549
|
var inputStyle = {
|
2510
2550
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
@@ -2568,14 +2608,14 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2568
2608
|
}, null)]), (_this$$slots5 = this.$slots) === null || _this$$slots5 === void 0 || (_this$$slots5$suffix = _this$$slots5.suffix) === null || _this$$slots5$suffix === void 0 ? void 0 : _this$$slots5$suffix.call(_this$$slots5)]);
|
2569
2609
|
}
|
2570
2610
|
}));
|
2571
|
-
;//
|
2611
|
+
;// ../../packages/select/src/select.tsx
|
2572
2612
|
|
2573
2613
|
|
2574
2614
|
|
2575
2615
|
|
2576
|
-
function _createForOfIteratorHelper(
|
2577
|
-
function select_unsupportedIterableToArray(
|
2578
|
-
function select_arrayLikeToArray(
|
2616
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
2617
|
+
function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return select_arrayLikeToArray(o, minLen); }
|
2618
|
+
function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
2579
2619
|
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
2620
|
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
2621
|
/*
|
@@ -2803,14 +2843,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2803
2843
|
handleSetSelectedData();
|
2804
2844
|
if (props.withValidate) {
|
2805
2845
|
var _formItem$validate;
|
2806
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
2846
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
2807
2847
|
}
|
2808
2848
|
}, {
|
2809
2849
|
deep: true
|
2810
2850
|
});
|
2811
2851
|
(0,external_vue_namespaceObject.watch)(selected, function () {
|
2812
2852
|
var _popoverRef$value;
|
2813
|
-
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0
|
2853
|
+
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 || _popoverRef$value.updatePopover(null, popoverConfig.value);
|
2814
2854
|
});
|
2815
2855
|
// list模式下搜索后的值
|
2816
2856
|
var filterList = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2995,7 +3035,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2995
3035
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
2996
3036
|
if (isEnableVirtualRender.value || disableScrollToSelectedOption.value) return;
|
2997
3037
|
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
|
3038
|
+
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
2999
3039
|
block: 'center'
|
3000
3040
|
});
|
3001
3041
|
};
|
@@ -3168,7 +3208,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3168
3208
|
var clearMultipleInputValue = function clearMultipleInputValue() {
|
3169
3209
|
if (['tag'].includes(multipleMode.value) && isInput.value) {
|
3170
3210
|
var _selectTagInputRef$va;
|
3171
|
-
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0
|
3211
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 || _selectTagInputRef$va.updateModelValue('');
|
3172
3212
|
}
|
3173
3213
|
};
|
3174
3214
|
// 聚焦输入框
|
@@ -3177,14 +3217,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3177
3217
|
setTimeout(function () {
|
3178
3218
|
if (!inputSearch.value && !allowCreate.value) {
|
3179
3219
|
var _searchRef$value;
|
3180
|
-
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0
|
3220
|
+
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 || _searchRef$value.focus();
|
3181
3221
|
} else {
|
3182
3222
|
if (multipleMode.value === 'tag') {
|
3183
3223
|
var _selectTagInputRef$va2;
|
3184
|
-
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0
|
3224
|
+
(_selectTagInputRef$va2 = selectTagInputRef.value) === null || _selectTagInputRef$va2 === void 0 || _selectTagInputRef$va2.focus();
|
3185
3225
|
} else {
|
3186
3226
|
var _inputRef$value;
|
3187
|
-
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
3227
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
3188
3228
|
}
|
3189
3229
|
}
|
3190
3230
|
}, 0);
|
@@ -3194,10 +3234,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3194
3234
|
setTimeout(function () {
|
3195
3235
|
if (multipleMode.value === 'tag') {
|
3196
3236
|
var _selectTagInputRef$va3;
|
3197
|
-
(_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0
|
3237
|
+
(_selectTagInputRef$va3 = selectTagInputRef.value) === null || _selectTagInputRef$va3 === void 0 || _selectTagInputRef$va3.blur();
|
3198
3238
|
} else {
|
3199
3239
|
var _inputRef$value2;
|
3200
|
-
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0
|
3240
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.blur();
|
3201
3241
|
}
|
3202
3242
|
}, 0);
|
3203
3243
|
};
|
@@ -3224,7 +3264,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3224
3264
|
if (option.disabled || tmpSelectedMap.has(option.optionID)) return;
|
3225
3265
|
tmpSelectedMap.set(option.optionID, option.optionName || option.optionID);
|
3226
3266
|
});
|
3227
|
-
(_list$value = list.value) === null || _list$value === void 0
|
3267
|
+
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
3228
3268
|
if (item.disabled || tmpSelectedMap.has(item[idKey.value])) return;
|
3229
3269
|
tmpSelectedMap.set(item[idKey.value], item[displayKey.value]);
|
3230
3270
|
});
|
@@ -3362,7 +3402,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3362
3402
|
}
|
3363
3403
|
if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
|
3364
3404
|
var _availableOptions$act2;
|
3365
|
-
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0
|
3405
|
+
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 || _availableOptions$act2.scrollIntoView();
|
3366
3406
|
}
|
3367
3407
|
activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
|
3368
3408
|
break;
|
@@ -3422,7 +3462,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3422
3462
|
});
|
3423
3463
|
var handlePopoverShown = function handlePopoverShown() {
|
3424
3464
|
var _virtualRenderRef$val;
|
3425
|
-
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0
|
3465
|
+
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
|
3426
3466
|
};
|
3427
3467
|
return {
|
3428
3468
|
t: t,
|
@@ -3492,9 +3532,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3492
3532
|
};
|
3493
3533
|
},
|
3494
3534
|
render: function render() {
|
3495
|
-
var
|
3496
|
-
|
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));
|
3535
|
+
var _this = this;
|
3536
|
+
var selectClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('select')), true), 'popover-show', this.isPopoverShow), 'is-disabled', this.isDisabled), 'is-focus', this.isFocus), 'is-filterable', this.filterable), this.size, true), this.behavior, true));
|
3498
3537
|
// 右侧ICON
|
3499
3538
|
var suffixIcon = function suffixIcon() {
|
3500
3539
|
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|
@@ -3766,7 +3805,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3766
3805
|
})]);
|
3767
3806
|
}
|
3768
3807
|
}));
|
3769
|
-
;//
|
3808
|
+
;// ../../packages/select/src/index.ts
|
3770
3809
|
/*
|
3771
3810
|
* Tencent is pleased to support the open source community by making
|
3772
3811
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3803,8 +3842,6 @@ var BkSelect = (0,shared_namespaceObject.withInstallProps)(src_select, {
|
|
3803
3842
|
});
|
3804
3843
|
/* harmony default export */ const src = (BkSelect);
|
3805
3844
|
|
3806
|
-
})();
|
3807
|
-
|
3808
3845
|
var __webpack_exports__BkOption = __webpack_exports__.BkOption;
|
3809
3846
|
var __webpack_exports__BkOptionGroup = __webpack_exports__.BkOptionGroup;
|
3810
3847
|
var __webpack_exports__BkSelect = __webpack_exports__.BkSelect;
|