bkui-vue 2.0.1-beta.110 → 2.0.1-beta.112
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 +23106 -23099
- 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 +17 -17
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +8 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +121 -156
- package/lib/button/index.js +19 -20
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +20 -22
- package/lib/cascader/cascader.d.ts +5 -5
- package/lib/cascader/index.d.ts +395 -356
- package/lib/cascader/index.js +74 -805
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +381 -438
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +28 -27
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +4 -3
- 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 +50 -294
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +28 -26
- 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 +382 -352
- package/lib/date-picker/index.js +154 -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 +227 -228
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +29 -29
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +24 -22
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +21 -22
- 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 +113 -149
- package/lib/image/index.js +27 -26
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +232 -233
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +46 -48
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +32 -33
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +26 -25
- package/lib/message/index.js +24 -25
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +20 -21
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +11 -10
- package/lib/pagination/index.d.ts +185 -199
- package/lib/pagination/index.js +49 -56
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +4 -3898
- package/lib/pop-confirm/index.d.ts +119 -157
- package/lib/pop-confirm/index.js +5 -4
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.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 +241 -264
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +22 -21
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +46 -48
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +19 -20
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +20 -21
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +678 -895
- 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 +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1380 -1221
- package/lib/select/index.js +336 -334
- package/lib/select/select.d.ts +134 -171
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +54 -56
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +227 -228
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +226 -225
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +230 -231
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +20 -22
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +20 -19
- 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 +459 -364
- package/lib/table/index.js +336 -348
- package/lib/table/table.d.ts +3 -3
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +7 -731
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +750 -533
- package/lib/tag-input/index.js +151 -151
- package/lib/tag-input/tag-input.d.ts +9 -9
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +192 -207
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +71 -74
- 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 +261 -264
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- 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/cascader/index.js
CHANGED
@@ -8,385 +8,14 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from ".
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
10
10
|
import "../popover/popover.less";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../select";
|
11
12
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
12
13
|
import "../tag/tag.less";
|
14
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
|
13
15
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
14
16
|
import "../checkbox/checkbox.less";
|
15
|
-
/******/
|
16
|
-
|
17
|
-
/***/ 7609:
|
18
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
19
|
-
|
20
|
-
var _typeof = (__webpack_require__(7425)["default"]);
|
21
|
-
function _regeneratorRuntime() {
|
22
|
-
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
23
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
24
|
-
return exports;
|
25
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
26
|
-
var exports = {},
|
27
|
-
Op = Object.prototype,
|
28
|
-
hasOwn = Op.hasOwnProperty,
|
29
|
-
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
30
|
-
obj[key] = desc.value;
|
31
|
-
},
|
32
|
-
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
33
|
-
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
34
|
-
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
35
|
-
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
36
|
-
function define(obj, key, value) {
|
37
|
-
return Object.defineProperty(obj, key, {
|
38
|
-
value: value,
|
39
|
-
enumerable: !0,
|
40
|
-
configurable: !0,
|
41
|
-
writable: !0
|
42
|
-
}), obj[key];
|
43
|
-
}
|
44
|
-
try {
|
45
|
-
define({}, "");
|
46
|
-
} catch (err) {
|
47
|
-
define = function define(obj, key, value) {
|
48
|
-
return obj[key] = value;
|
49
|
-
};
|
50
|
-
}
|
51
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
52
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
53
|
-
generator = Object.create(protoGenerator.prototype),
|
54
|
-
context = new Context(tryLocsList || []);
|
55
|
-
return defineProperty(generator, "_invoke", {
|
56
|
-
value: makeInvokeMethod(innerFn, self, context)
|
57
|
-
}), generator;
|
58
|
-
}
|
59
|
-
function tryCatch(fn, obj, arg) {
|
60
|
-
try {
|
61
|
-
return {
|
62
|
-
type: "normal",
|
63
|
-
arg: fn.call(obj, arg)
|
64
|
-
};
|
65
|
-
} catch (err) {
|
66
|
-
return {
|
67
|
-
type: "throw",
|
68
|
-
arg: err
|
69
|
-
};
|
70
|
-
}
|
71
|
-
}
|
72
|
-
exports.wrap = wrap;
|
73
|
-
var ContinueSentinel = {};
|
74
|
-
function Generator() {}
|
75
|
-
function GeneratorFunction() {}
|
76
|
-
function GeneratorFunctionPrototype() {}
|
77
|
-
var IteratorPrototype = {};
|
78
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
79
|
-
return this;
|
80
|
-
});
|
81
|
-
var getProto = Object.getPrototypeOf,
|
82
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
83
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
84
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
85
|
-
function defineIteratorMethods(prototype) {
|
86
|
-
["next", "throw", "return"].forEach(function (method) {
|
87
|
-
define(prototype, method, function (arg) {
|
88
|
-
return this._invoke(method, arg);
|
89
|
-
});
|
90
|
-
});
|
91
|
-
}
|
92
|
-
function AsyncIterator(generator, PromiseImpl) {
|
93
|
-
function invoke(method, arg, resolve, reject) {
|
94
|
-
var record = tryCatch(generator[method], generator, arg);
|
95
|
-
if ("throw" !== record.type) {
|
96
|
-
var result = record.arg,
|
97
|
-
value = result.value;
|
98
|
-
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
99
|
-
invoke("next", value, resolve, reject);
|
100
|
-
}, function (err) {
|
101
|
-
invoke("throw", err, resolve, reject);
|
102
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
103
|
-
result.value = unwrapped, resolve(result);
|
104
|
-
}, function (error) {
|
105
|
-
return invoke("throw", error, resolve, reject);
|
106
|
-
});
|
107
|
-
}
|
108
|
-
reject(record.arg);
|
109
|
-
}
|
110
|
-
var previousPromise;
|
111
|
-
defineProperty(this, "_invoke", {
|
112
|
-
value: function value(method, arg) {
|
113
|
-
function callInvokeWithMethodAndArg() {
|
114
|
-
return new PromiseImpl(function (resolve, reject) {
|
115
|
-
invoke(method, arg, resolve, reject);
|
116
|
-
});
|
117
|
-
}
|
118
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
119
|
-
}
|
120
|
-
});
|
121
|
-
}
|
122
|
-
function makeInvokeMethod(innerFn, self, context) {
|
123
|
-
var state = "suspendedStart";
|
124
|
-
return function (method, arg) {
|
125
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
126
|
-
if ("completed" === state) {
|
127
|
-
if ("throw" === method) throw arg;
|
128
|
-
return doneResult();
|
129
|
-
}
|
130
|
-
for (context.method = method, context.arg = arg;;) {
|
131
|
-
var delegate = context.delegate;
|
132
|
-
if (delegate) {
|
133
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
134
|
-
if (delegateResult) {
|
135
|
-
if (delegateResult === ContinueSentinel) continue;
|
136
|
-
return delegateResult;
|
137
|
-
}
|
138
|
-
}
|
139
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
140
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
141
|
-
context.dispatchException(context.arg);
|
142
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
143
|
-
state = "executing";
|
144
|
-
var record = tryCatch(innerFn, self, context);
|
145
|
-
if ("normal" === record.type) {
|
146
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
147
|
-
return {
|
148
|
-
value: record.arg,
|
149
|
-
done: context.done
|
150
|
-
};
|
151
|
-
}
|
152
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
153
|
-
}
|
154
|
-
};
|
155
|
-
}
|
156
|
-
function maybeInvokeDelegate(delegate, context) {
|
157
|
-
var methodName = context.method,
|
158
|
-
method = delegate.iterator[methodName];
|
159
|
-
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;
|
160
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
161
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
162
|
-
var info = record.arg;
|
163
|
-
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);
|
164
|
-
}
|
165
|
-
function pushTryEntry(locs) {
|
166
|
-
var entry = {
|
167
|
-
tryLoc: locs[0]
|
168
|
-
};
|
169
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
170
|
-
}
|
171
|
-
function resetTryEntry(entry) {
|
172
|
-
var record = entry.completion || {};
|
173
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
174
|
-
}
|
175
|
-
function Context(tryLocsList) {
|
176
|
-
this.tryEntries = [{
|
177
|
-
tryLoc: "root"
|
178
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
179
|
-
}
|
180
|
-
function values(iterable) {
|
181
|
-
if (iterable) {
|
182
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
183
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
184
|
-
if ("function" == typeof iterable.next) return iterable;
|
185
|
-
if (!isNaN(iterable.length)) {
|
186
|
-
var i = -1,
|
187
|
-
next = function next() {
|
188
|
-
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
189
|
-
return next.value = undefined, next.done = !0, next;
|
190
|
-
};
|
191
|
-
return next.next = next;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
return {
|
195
|
-
next: doneResult
|
196
|
-
};
|
197
|
-
}
|
198
|
-
function doneResult() {
|
199
|
-
return {
|
200
|
-
value: undefined,
|
201
|
-
done: !0
|
202
|
-
};
|
203
|
-
}
|
204
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
205
|
-
value: GeneratorFunctionPrototype,
|
206
|
-
configurable: !0
|
207
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
208
|
-
value: GeneratorFunction,
|
209
|
-
configurable: !0
|
210
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
211
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
212
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
213
|
-
}, exports.mark = function (genFun) {
|
214
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
215
|
-
}, exports.awrap = function (arg) {
|
216
|
-
return {
|
217
|
-
__await: arg
|
218
|
-
};
|
219
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
220
|
-
return this;
|
221
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
222
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
223
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
224
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
225
|
-
return result.done ? result.value : iter.next();
|
226
|
-
});
|
227
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
228
|
-
return this;
|
229
|
-
}), define(Gp, "toString", function () {
|
230
|
-
return "[object Generator]";
|
231
|
-
}), exports.keys = function (val) {
|
232
|
-
var object = Object(val),
|
233
|
-
keys = [];
|
234
|
-
for (var key in object) keys.push(key);
|
235
|
-
return keys.reverse(), function next() {
|
236
|
-
for (; keys.length;) {
|
237
|
-
var key = keys.pop();
|
238
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
239
|
-
}
|
240
|
-
return next.done = !0, next;
|
241
|
-
};
|
242
|
-
}, exports.values = values, Context.prototype = {
|
243
|
-
constructor: Context,
|
244
|
-
reset: function reset(skipTempReset) {
|
245
|
-
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);
|
246
|
-
},
|
247
|
-
stop: function stop() {
|
248
|
-
this.done = !0;
|
249
|
-
var rootRecord = this.tryEntries[0].completion;
|
250
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
251
|
-
return this.rval;
|
252
|
-
},
|
253
|
-
dispatchException: function dispatchException(exception) {
|
254
|
-
if (this.done) throw exception;
|
255
|
-
var context = this;
|
256
|
-
function handle(loc, caught) {
|
257
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
258
|
-
}
|
259
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
260
|
-
var entry = this.tryEntries[i],
|
261
|
-
record = entry.completion;
|
262
|
-
if ("root" === entry.tryLoc) return handle("end");
|
263
|
-
if (entry.tryLoc <= this.prev) {
|
264
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
265
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
266
|
-
if (hasCatch && hasFinally) {
|
267
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
268
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
269
|
-
} else if (hasCatch) {
|
270
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
271
|
-
} else {
|
272
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
273
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
274
|
-
}
|
275
|
-
}
|
276
|
-
}
|
277
|
-
},
|
278
|
-
abrupt: function abrupt(type, arg) {
|
279
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
280
|
-
var entry = this.tryEntries[i];
|
281
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
282
|
-
var finallyEntry = entry;
|
283
|
-
break;
|
284
|
-
}
|
285
|
-
}
|
286
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
287
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
288
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
289
|
-
},
|
290
|
-
complete: function complete(record, afterLoc) {
|
291
|
-
if ("throw" === record.type) throw record.arg;
|
292
|
-
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;
|
293
|
-
},
|
294
|
-
finish: function finish(finallyLoc) {
|
295
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
296
|
-
var entry = this.tryEntries[i];
|
297
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
298
|
-
}
|
299
|
-
},
|
300
|
-
"catch": function _catch(tryLoc) {
|
301
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
302
|
-
var entry = this.tryEntries[i];
|
303
|
-
if (entry.tryLoc === tryLoc) {
|
304
|
-
var record = entry.completion;
|
305
|
-
if ("throw" === record.type) {
|
306
|
-
var thrown = record.arg;
|
307
|
-
resetTryEntry(entry);
|
308
|
-
}
|
309
|
-
return thrown;
|
310
|
-
}
|
311
|
-
}
|
312
|
-
throw new Error("illegal catch attempt");
|
313
|
-
},
|
314
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
315
|
-
return this.delegate = {
|
316
|
-
iterator: values(iterable),
|
317
|
-
resultName: resultName,
|
318
|
-
nextLoc: nextLoc
|
319
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
320
|
-
}
|
321
|
-
}, exports;
|
322
|
-
}
|
323
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
324
|
-
|
325
|
-
/***/ }),
|
326
|
-
|
327
|
-
/***/ 7425:
|
328
|
-
/***/ ((module) => {
|
329
|
-
|
330
|
-
function _typeof(obj) {
|
331
|
-
"@babel/helpers - typeof";
|
332
|
-
|
333
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
334
|
-
return typeof obj;
|
335
|
-
} : function (obj) {
|
336
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
337
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
338
|
-
}
|
339
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
340
|
-
|
341
|
-
/***/ }),
|
342
|
-
|
343
|
-
/***/ 2841:
|
344
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
345
|
-
|
346
|
-
// TODO(Babel 8): Remove this file.
|
347
|
-
|
348
|
-
var runtime = __webpack_require__(7609)();
|
349
|
-
module.exports = runtime;
|
350
|
-
|
351
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
352
|
-
try {
|
353
|
-
regeneratorRuntime = runtime;
|
354
|
-
} catch (accidentalStrictMode) {
|
355
|
-
if (typeof globalThis === "object") {
|
356
|
-
globalThis.regeneratorRuntime = runtime;
|
357
|
-
} else {
|
358
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
359
|
-
}
|
360
|
-
}
|
361
|
-
|
362
|
-
|
363
|
-
/***/ })
|
364
|
-
|
365
|
-
/******/ });
|
366
|
-
/************************************************************************/
|
367
|
-
/******/ // The module cache
|
368
|
-
/******/ var __webpack_module_cache__ = {};
|
369
|
-
/******/
|
370
|
-
/******/ // The require function
|
371
|
-
/******/ function __webpack_require__(moduleId) {
|
372
|
-
/******/ // Check if module is in cache
|
373
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
374
|
-
/******/ if (cachedModule !== undefined) {
|
375
|
-
/******/ return cachedModule.exports;
|
376
|
-
/******/ }
|
377
|
-
/******/ // Create a new module (and put it into the cache)
|
378
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
379
|
-
/******/ // no module.id needed
|
380
|
-
/******/ // no module.loaded needed
|
381
|
-
/******/ exports: {}
|
382
|
-
/******/ };
|
383
|
-
/******/
|
384
|
-
/******/ // Execute the module function
|
385
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
386
|
-
/******/
|
387
|
-
/******/ // Return the exports of the module
|
388
|
-
/******/ return module.exports;
|
389
|
-
/******/ }
|
17
|
+
/******/ // The require scope
|
18
|
+
/******/ var __webpack_require__ = {};
|
390
19
|
/******/
|
391
20
|
/************************************************************************/
|
392
21
|
/******/ /* webpack/runtime/define property getters */
|
@@ -408,8 +37,6 @@ try {
|
|
408
37
|
/******/
|
409
38
|
/************************************************************************/
|
410
39
|
var __webpack_exports__ = {};
|
411
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
412
|
-
(() => {
|
413
40
|
|
414
41
|
// EXPORTS
|
415
42
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -425,7 +52,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
425
52
|
;// CONCATENATED MODULE: external "vue"
|
426
53
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
427
54
|
var external_vue_y = x => () => x
|
428
|
-
const external_vue_namespaceObject = external_vue_x({ ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
55
|
+
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, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
429
56
|
;// CONCATENATED MODULE: external "vue-types"
|
430
57
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
431
58
|
var external_vue_types_y = x => () => x
|
@@ -450,6 +77,10 @@ const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
450
77
|
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
451
78
|
var popover_less_y = x => () => x
|
452
79
|
const popover_less_namespaceObject = popover_less_x({ });
|
80
|
+
;// CONCATENATED MODULE: external "../select"
|
81
|
+
var select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
82
|
+
var select_y = x => () => x
|
83
|
+
const select_namespaceObject = select_x({ ["useHover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.useHover });
|
453
84
|
;// CONCATENATED MODULE: external "../tag"
|
454
85
|
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
455
86
|
var tag_y = x => () => x
|
@@ -458,372 +89,10 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
458
89
|
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
459
90
|
var tag_less_y = x => () => x
|
460
91
|
const tag_less_namespaceObject = tag_less_x({ });
|
461
|
-
|
462
|
-
var
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
/*
|
467
|
-
* Tencent is pleased to support the open source community by making
|
468
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
469
|
-
*
|
470
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
471
|
-
*
|
472
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
473
|
-
*
|
474
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
475
|
-
*
|
476
|
-
* ---------------------------------------------------
|
477
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
478
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
479
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
480
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
481
|
-
*
|
482
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
483
|
-
* the Software.
|
484
|
-
*
|
485
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
486
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
487
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
488
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
489
|
-
* IN THE SOFTWARE.
|
490
|
-
*/
|
491
|
-
|
492
|
-
|
493
|
-
var selectKey = Symbol('BkSelect');
|
494
|
-
var optionGroupKey = Symbol('BkOptionGroup');
|
495
|
-
function useHover() {
|
496
|
-
var isHover = (0,external_vue_namespaceObject.ref)(false);
|
497
|
-
var setHover = function setHover() {
|
498
|
-
isHover.value = true;
|
499
|
-
};
|
500
|
-
var cancelHover = function cancelHover() {
|
501
|
-
isHover.value = false;
|
502
|
-
};
|
503
|
-
return {
|
504
|
-
isHover: isHover,
|
505
|
-
setHover: setHover,
|
506
|
-
cancelHover: cancelHover
|
507
|
-
};
|
508
|
-
}
|
509
|
-
function useRegistry(data) {
|
510
|
-
// 注册item
|
511
|
-
var register = function register(key, item) {
|
512
|
-
if (!item) return;
|
513
|
-
return data.value.set(key, item);
|
514
|
-
};
|
515
|
-
// 删除item
|
516
|
-
var unregister = function unregister(key, item) {
|
517
|
-
if (item) {
|
518
|
-
if (data.value.get(key) !== item) return;
|
519
|
-
data.value["delete"](key);
|
520
|
-
} else {
|
521
|
-
data.value["delete"](key);
|
522
|
-
}
|
523
|
-
};
|
524
|
-
return {
|
525
|
-
register: register,
|
526
|
-
unregister: unregister
|
527
|
-
};
|
528
|
-
}
|
529
|
-
function useDebouncedRef(value) {
|
530
|
-
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
531
|
-
var timeout;
|
532
|
-
var innerValue = value;
|
533
|
-
return customRef(function (track, trigger) {
|
534
|
-
return {
|
535
|
-
get: function get() {
|
536
|
-
track();
|
537
|
-
return innerValue;
|
538
|
-
},
|
539
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
540
|
-
set: function set(newValue) {
|
541
|
-
clearTimeout(timeout);
|
542
|
-
if (newValue === undefined || newValue === '') {
|
543
|
-
innerValue = newValue;
|
544
|
-
trigger();
|
545
|
-
} else {
|
546
|
-
timeout = setTimeout(function () {
|
547
|
-
innerValue = newValue;
|
548
|
-
trigger();
|
549
|
-
}, delay);
|
550
|
-
}
|
551
|
-
}
|
552
|
-
};
|
553
|
-
});
|
554
|
-
}
|
555
|
-
function usePopover(config, triggerRef) {
|
556
|
-
var popoverMinWidth = config.popoverMinWidth;
|
557
|
-
var observerIns = null;
|
558
|
-
var popperWidth = ref('auto');
|
559
|
-
var isPopoverShow = ref(false);
|
560
|
-
var togglePopover = function togglePopover() {
|
561
|
-
isPopoverShow.value = !isPopoverShow.value;
|
562
|
-
};
|
563
|
-
var hidePopover = function hidePopover() {
|
564
|
-
isPopoverShow.value = false;
|
565
|
-
};
|
566
|
-
var showPopover = function showPopover() {
|
567
|
-
isPopoverShow.value = true;
|
568
|
-
};
|
569
|
-
var triggerRefResize = function triggerRefResize() {
|
570
|
-
var _triggerRef$value;
|
571
|
-
popperWidth.value = Math.max((_triggerRef$value = triggerRef.value) === null || _triggerRef$value === void 0 ? void 0 : _triggerRef$value.offsetWidth, popoverMinWidth);
|
572
|
-
};
|
573
|
-
onMounted(function () {
|
574
|
-
if (!triggerRef.value) return;
|
575
|
-
observerIns = observerResize(triggerRef.value, triggerRefResize, 60, true);
|
576
|
-
observerIns.start();
|
577
|
-
});
|
578
|
-
onBeforeUnmount(function () {
|
579
|
-
var _observerIns;
|
580
|
-
(_observerIns = observerIns) === null || _observerIns === void 0 ? void 0 : _observerIns.stop();
|
581
|
-
observerIns = null;
|
582
|
-
});
|
583
|
-
return {
|
584
|
-
isPopoverShow: isPopoverShow,
|
585
|
-
popperWidth: popperWidth,
|
586
|
-
togglePopover: togglePopover,
|
587
|
-
hidePopover: hidePopover,
|
588
|
-
showPopover: showPopover
|
589
|
-
};
|
590
|
-
}
|
591
|
-
function useRemoteSearch(method, callBack) {
|
592
|
-
var customOptionName = useDebouncedRef(''); // 自定义创建选项(自定义创建也会触发搜索)
|
593
|
-
var searchValue = useDebouncedRef('');
|
594
|
-
var curSearchValue = computed(function () {
|
595
|
-
return searchValue.value || customOptionName.value;
|
596
|
-
});
|
597
|
-
var searchLoading = ref(false);
|
598
|
-
watch(curSearchValue, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
599
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
600
|
-
while (1) switch (_context.prev = _context.next) {
|
601
|
-
case 0:
|
602
|
-
_context.prev = 0;
|
603
|
-
searchLoading.value = true;
|
604
|
-
_context.next = 4;
|
605
|
-
return method(curSearchValue.value);
|
606
|
-
case 4:
|
607
|
-
searchLoading.value = false;
|
608
|
-
_context.next = 10;
|
609
|
-
break;
|
610
|
-
case 7:
|
611
|
-
_context.prev = 7;
|
612
|
-
_context.t0 = _context["catch"](0);
|
613
|
-
console.error(_context.t0);
|
614
|
-
case 10:
|
615
|
-
_context.prev = 10;
|
616
|
-
callBack === null || callBack === void 0 ? void 0 : callBack();
|
617
|
-
return _context.finish(10);
|
618
|
-
case 13:
|
619
|
-
case "end":
|
620
|
-
return _context.stop();
|
621
|
-
}
|
622
|
-
}, _callee, null, [[0, 7, 10, 13]]);
|
623
|
-
})));
|
624
|
-
return {
|
625
|
-
customOptionName: customOptionName,
|
626
|
-
searchValue: searchValue,
|
627
|
-
curSearchValue: curSearchValue,
|
628
|
-
searchLoading: searchLoading
|
629
|
-
};
|
630
|
-
}
|
631
|
-
function toLowerCase() {
|
632
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
633
|
-
if (!value) return value;
|
634
|
-
return String(value).trim().toLowerCase();
|
635
|
-
}
|
636
|
-
function isInViewPort(el, client) {
|
637
|
-
if (!el || !client) return true;
|
638
|
-
var _el$getBoundingClient = el.getBoundingClientRect(),
|
639
|
-
elTop = _el$getBoundingClient.top,
|
640
|
-
elBottom = _el$getBoundingClient.bottom;
|
641
|
-
var _client$getBoundingCl = client.getBoundingClientRect(),
|
642
|
-
clientTop = _client$getBoundingCl.top,
|
643
|
-
clientBottom = _client$getBoundingCl.bottom;
|
644
|
-
return elTop >= clientTop && elBottom <= clientBottom;
|
645
|
-
}
|
646
|
-
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
647
|
-
|
648
|
-
|
649
|
-
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; }
|
650
|
-
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; }
|
651
|
-
/*
|
652
|
-
* Tencent is pleased to support the open source community by making
|
653
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
654
|
-
*
|
655
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
656
|
-
*
|
657
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
658
|
-
*
|
659
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
660
|
-
*
|
661
|
-
* ---------------------------------------------------
|
662
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
663
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
664
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
665
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
666
|
-
*
|
667
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
668
|
-
* the Software.
|
669
|
-
*
|
670
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
671
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
672
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
673
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
674
|
-
* IN THE SOFTWARE.
|
675
|
-
*/
|
676
|
-
|
677
|
-
var INPUT_MIN_WIDTH = 10;
|
678
|
-
function common_useDebouncedRef(value) {
|
679
|
-
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
680
|
-
var timeout;
|
681
|
-
var innerValue = value;
|
682
|
-
return customRef(function (track, trigger) {
|
683
|
-
return {
|
684
|
-
get: function get() {
|
685
|
-
track();
|
686
|
-
return innerValue;
|
687
|
-
},
|
688
|
-
set: function set(newValue) {
|
689
|
-
clearTimeout(timeout);
|
690
|
-
timeout = setTimeout(function () {
|
691
|
-
innerValue = newValue;
|
692
|
-
trigger();
|
693
|
-
}, delay);
|
694
|
-
}
|
695
|
-
};
|
696
|
-
});
|
697
|
-
}
|
698
|
-
function usePage(pageSize) {
|
699
|
-
var state = reactive({
|
700
|
-
curPage: 1,
|
701
|
-
totalSize: 0,
|
702
|
-
totalPage: 0,
|
703
|
-
pageSize: pageSize,
|
704
|
-
isPageLoading: false,
|
705
|
-
curPageList: [],
|
706
|
-
renderListPaged: []
|
707
|
-
});
|
708
|
-
// 初始化分页信息
|
709
|
-
var initPage = function initPage() {
|
710
|
-
var _state$renderListPage, _state$curPageList;
|
711
|
-
var allList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
712
|
-
state.curPage = 1;
|
713
|
-
state.totalSize = allList.length;
|
714
|
-
state.totalPage = Math.ceil(state.totalSize / state.pageSize) || 1;
|
715
|
-
var list = [];
|
716
|
-
// 小于等于0会无限循环
|
717
|
-
if (state.pageSize > 0) {
|
718
|
-
for (var i = 0; i < state.totalSize; i += state.pageSize) {
|
719
|
-
list.push(allList.slice(i, i + state.pageSize));
|
720
|
-
}
|
721
|
-
}
|
722
|
-
(_state$renderListPage = state.renderListPaged).splice.apply(_state$renderListPage, [0, state.renderListPaged.length].concat(list));
|
723
|
-
(_state$curPageList = state.curPageList).splice.apply(_state$curPageList, [0, state.curPageList.length].concat(_toConsumableArray(state.renderListPaged[state.curPage - 1] || [])));
|
724
|
-
};
|
725
|
-
var pageChange = function pageChange(page) {
|
726
|
-
var _state$curPageList2;
|
727
|
-
state.curPage = page;
|
728
|
-
(_state$curPageList2 = state.curPageList).splice.apply(_state$curPageList2, [state.curPageList.length, 0].concat(_toConsumableArray(state.renderListPaged[state.curPage - 1] || [])));
|
729
|
-
state.isPageLoading = false;
|
730
|
-
};
|
731
|
-
return {
|
732
|
-
pageState: state,
|
733
|
-
initPage: initPage,
|
734
|
-
pageChange: pageChange
|
735
|
-
};
|
736
|
-
}
|
737
|
-
function useFlatList(props) {
|
738
|
-
var _toRefs = toRefs(props),
|
739
|
-
useGroup = _toRefs.useGroup,
|
740
|
-
saveKey = _toRefs.saveKey,
|
741
|
-
displayKey = _toRefs.displayKey,
|
742
|
-
list = _toRefs.list;
|
743
|
-
var flatList = ref([]);
|
744
|
-
var saveKeyMap = ref({});
|
745
|
-
watch([useGroup, saveKey, displayKey, list], function () {
|
746
|
-
flatList.value = [];
|
747
|
-
var formatList = markRaw(list.value);
|
748
|
-
if (useGroup.value) {
|
749
|
-
formatList = formatList.reduce(function (formatList, item) {
|
750
|
-
var children = [];
|
751
|
-
if (item.children) {
|
752
|
-
children = item.children.map(function (child) {
|
753
|
-
return _objectSpread({
|
754
|
-
group: {
|
755
|
-
groupId: item[saveKey.value],
|
756
|
-
groupName: item[displayKey.value]
|
757
|
-
}
|
758
|
-
}, child);
|
759
|
-
});
|
760
|
-
}
|
761
|
-
return formatList.concat(children);
|
762
|
-
}, []);
|
763
|
-
}
|
764
|
-
flatList.value = formatList;
|
765
|
-
saveKeyMap.value = formatList.reduce(function (acc, item) {
|
766
|
-
acc[item[saveKey.value]] = item;
|
767
|
-
return acc;
|
768
|
-
}, {});
|
769
|
-
}, {
|
770
|
-
immediate: true,
|
771
|
-
deep: true
|
772
|
-
});
|
773
|
-
return {
|
774
|
-
flatList: flatList,
|
775
|
-
saveKeyMap: saveKeyMap
|
776
|
-
};
|
777
|
-
}
|
778
|
-
/**
|
779
|
-
* 获取字符长度,汉字两个字节
|
780
|
-
* @param str 需要计算长度的字符
|
781
|
-
* @returns 字符长度
|
782
|
-
*/
|
783
|
-
var getCharLength = function getCharLength(str) {
|
784
|
-
var len = str.length;
|
785
|
-
var bitLen = 0;
|
786
|
-
for (var i = 0; i < len; i++) {
|
787
|
-
if ((str.charCodeAt(i) & 0xff00) !== 0) {
|
788
|
-
bitLen += 1;
|
789
|
-
}
|
790
|
-
bitLen += 1;
|
791
|
-
}
|
792
|
-
return bitLen;
|
793
|
-
};
|
794
|
-
/**
|
795
|
-
* 获取隐藏 tag index
|
796
|
-
* @param tagInputRef 组件容器 ref
|
797
|
-
* @param collapseTags 是否折叠 tags
|
798
|
-
* @param selectedTagList 已选择 tags
|
799
|
-
*/
|
800
|
-
var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, selectedTagList) {
|
801
|
-
(0,external_vue_namespaceObject.watch)([selectedTagList, collapseTags], function () {
|
802
|
-
calcOverflow();
|
803
|
-
}, {
|
804
|
-
flush: 'post'
|
805
|
-
});
|
806
|
-
var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
|
807
|
-
// 计算出现换行的索引
|
808
|
-
var calcOverflow = function calcOverflow() {
|
809
|
-
if (!collapseTags.value) return;
|
810
|
-
overflowTagIndex.value = null;
|
811
|
-
setTimeout(function () {
|
812
|
-
var tags = Array.from(tagInputRef.value.querySelectorAll('.tag-item'));
|
813
|
-
var tagIndexInSecondRow = tags.findIndex(function (currentTag, index) {
|
814
|
-
if (!index) {
|
815
|
-
return false;
|
816
|
-
}
|
817
|
-
var previousTag = tags[index - 1];
|
818
|
-
return previousTag.offsetTop !== currentTag.offsetTop;
|
819
|
-
});
|
820
|
-
overflowTagIndex.value = tagIndexInSecondRow > 0 ? tagIndexInSecondRow - 1 : null;
|
821
|
-
});
|
822
|
-
};
|
823
|
-
return {
|
824
|
-
overflowTagIndex: overflowTagIndex
|
825
|
-
};
|
826
|
-
};
|
92
|
+
;// CONCATENATED MODULE: external "../tag-input"
|
93
|
+
var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
94
|
+
var tag_input_y = x => () => x
|
95
|
+
const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
|
827
96
|
;// CONCATENATED MODULE: external "../checkbox"
|
828
97
|
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
829
98
|
var checkbox_y = x => () => x
|
@@ -834,9 +103,10 @@ var checkbox_less_y = x => () => x
|
|
834
103
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
835
104
|
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
|
836
105
|
|
837
|
-
function _createForOfIteratorHelper(
|
838
|
-
function _unsupportedIterableToArray(
|
839
|
-
function _arrayLikeToArray(
|
106
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _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; } } }; }
|
107
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _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 _arrayLikeToArray(o, minLen); }
|
108
|
+
function _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; }
|
109
|
+
/*
|
840
110
|
* Tencent is pleased to support the open source community by making
|
841
111
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
842
112
|
*
|
@@ -867,11 +137,12 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
867
137
|
|
868
138
|
|
869
139
|
|
140
|
+
|
870
141
|
/**
|
871
142
|
* CascaderPanel 组件
|
872
143
|
* 用于展示级联选择器的面板,支持多选、单选、远程加载等功能。
|
873
144
|
*/
|
874
|
-
/* harmony default export */ const cascader_panel = (defineComponent({
|
145
|
+
/* harmony default export */ const cascader_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
875
146
|
name: 'CascaderPanel',
|
876
147
|
props: {
|
877
148
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def('auto'),
|
@@ -890,11 +161,11 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
890
161
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
891
162
|
resolveClassName = _usePrefix.resolveClassName;
|
892
163
|
var store = props.store;
|
893
|
-
var menus = reactive({
|
164
|
+
var menus = (0,external_vue_namespaceObject.reactive)({
|
894
165
|
list: [props.store.getNodes()]
|
895
166
|
});
|
896
|
-
var activePath = ref([]);
|
897
|
-
var checkValue = ref([]);
|
167
|
+
var activePath = (0,external_vue_namespaceObject.ref)([]);
|
168
|
+
var checkValue = (0,external_vue_namespaceObject.ref)([]);
|
898
169
|
/**
|
899
170
|
* 根据传入的值计算尺寸
|
900
171
|
* @param value - 数字或字符串类型的尺寸值
|
@@ -1047,7 +318,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1047
318
|
// 查找当前级别中选中的或已勾选的节点
|
1048
319
|
var selectedNode = document.querySelector(".".concat(resolveClassName('cascader-panel'), ":nth-child(").concat(level + 1, ") .").concat(resolveClassName('cascader-node.is-selected'), ", .").concat(resolveClassName('cascader-node.is-checked')));
|
1049
320
|
if (selectedNode) {
|
1050
|
-
nextTick(function () {
|
321
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1051
322
|
selectedNode.scrollIntoView();
|
1052
323
|
});
|
1053
324
|
}
|
@@ -1097,7 +368,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1097
368
|
}, null);
|
1098
369
|
};
|
1099
370
|
// 监听 modelValue 的变化,更新选中值
|
1100
|
-
watch(function () {
|
371
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1101
372
|
return props.modelValue;
|
1102
373
|
}, function (value) {
|
1103
374
|
updateCheckValue(value);
|
@@ -1105,7 +376,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
1105
376
|
immediate: true
|
1106
377
|
});
|
1107
378
|
// 监听 store 的变化,更新菜单列表
|
1108
|
-
watch(function () {
|
379
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1109
380
|
return props.store;
|
1110
381
|
}, function (value) {
|
1111
382
|
menus.list = [value.getNodes()];
|
@@ -1204,33 +475,33 @@ function _classCallCheck(instance, Constructor) {
|
|
1204
475
|
}
|
1205
476
|
}
|
1206
477
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1207
|
-
function _typeof(
|
478
|
+
function _typeof(o) {
|
1208
479
|
"@babel/helpers - typeof";
|
1209
480
|
|
1210
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
1211
|
-
return typeof
|
1212
|
-
} : function (
|
1213
|
-
return
|
1214
|
-
}, _typeof(
|
481
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
482
|
+
return typeof o;
|
483
|
+
} : function (o) {
|
484
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
485
|
+
}, _typeof(o);
|
1215
486
|
}
|
1216
487
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1217
488
|
|
1218
|
-
function
|
1219
|
-
if (
|
1220
|
-
var
|
1221
|
-
if (
|
1222
|
-
var
|
1223
|
-
if (
|
489
|
+
function toPrimitive(t, r) {
|
490
|
+
if ("object" != _typeof(t) || !t) return t;
|
491
|
+
var e = t[Symbol.toPrimitive];
|
492
|
+
if (void 0 !== e) {
|
493
|
+
var i = e.call(t, r || "default");
|
494
|
+
if ("object" != _typeof(i)) return i;
|
1224
495
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1225
496
|
}
|
1226
|
-
return (
|
497
|
+
return ("string" === r ? String : Number)(t);
|
1227
498
|
}
|
1228
499
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1229
500
|
|
1230
501
|
|
1231
|
-
function
|
1232
|
-
var
|
1233
|
-
return _typeof(
|
502
|
+
function toPropertyKey(t) {
|
503
|
+
var i = toPrimitive(t, "string");
|
504
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
1234
505
|
}
|
1235
506
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1236
507
|
|
@@ -1240,7 +511,7 @@ function _defineProperties(target, props) {
|
|
1240
511
|
descriptor.enumerable = descriptor.enumerable || false;
|
1241
512
|
descriptor.configurable = true;
|
1242
513
|
if ("value" in descriptor) descriptor.writable = true;
|
1243
|
-
Object.defineProperty(target,
|
514
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
1244
515
|
}
|
1245
516
|
}
|
1246
517
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -1370,7 +641,7 @@ var Node = /*#__PURE__*/function () {
|
|
1370
641
|
var _child$handlerName;
|
1371
642
|
// 自底向上广播事件
|
1372
643
|
child.broadcast(event, checkStatus);
|
1373
|
-
(_child$handlerName = child[handlerName]) === null || _child$handlerName === void 0
|
644
|
+
(_child$handlerName = child[handlerName]) === null || _child$handlerName === void 0 || _child$handlerName.call(child, checkStatus);
|
1374
645
|
}
|
1375
646
|
});
|
1376
647
|
}
|
@@ -1382,7 +653,7 @@ var Node = /*#__PURE__*/function () {
|
|
1382
653
|
var handlerName = "onChild".concat((0,shared_namespaceObject.capitalize)(event));
|
1383
654
|
if (parent) {
|
1384
655
|
var _parent$handlerName;
|
1385
|
-
(_parent$handlerName = parent[handlerName]) === null || _parent$handlerName === void 0
|
656
|
+
(_parent$handlerName = parent[handlerName]) === null || _parent$handlerName === void 0 || _parent$handlerName.call(parent);
|
1386
657
|
parent.emit(event);
|
1387
658
|
}
|
1388
659
|
}
|
@@ -1647,7 +918,7 @@ var Store = /*#__PURE__*/function () {
|
|
1647
918
|
* Cascader 组件
|
1648
919
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
1649
920
|
*/
|
1650
|
-
/* harmony default export */ const cascader = (defineComponent({
|
921
|
+
/* harmony default export */ const cascader = ((0,external_vue_namespaceObject.defineComponent)({
|
1651
922
|
name: 'Cascader',
|
1652
923
|
directives: {
|
1653
924
|
bkTooltips: directives_namespaceObject.bkTooltips
|
@@ -1695,33 +966,33 @@ var Store = /*#__PURE__*/function () {
|
|
1695
966
|
var separator = props.separator,
|
1696
967
|
multiple = props.multiple;
|
1697
968
|
// 用useHover自定义hook来处理鼠标hover状态
|
1698
|
-
var _useHover = useHover(),
|
969
|
+
var _useHover = (0,select_namespaceObject.useHover)(),
|
1699
970
|
isHover = _useHover.isHover,
|
1700
971
|
setHover = _useHover.setHover,
|
1701
972
|
cancelHover = _useHover.cancelHover;
|
1702
|
-
var store = ref(new src_store(props));
|
973
|
+
var store = (0,external_vue_namespaceObject.ref)(new src_store(props));
|
1703
974
|
// 定义selectedText变量用于记录当前选择的值的文本
|
1704
|
-
var selectedText = ref('');
|
975
|
+
var selectedText = (0,external_vue_namespaceObject.ref)('');
|
1705
976
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
1706
|
-
var selectedTags = ref([]);
|
1707
|
-
var _toRefs = toRefs(props),
|
977
|
+
var selectedTags = (0,external_vue_namespaceObject.ref)([]);
|
978
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
1708
979
|
modelValue = _toRefs.modelValue;
|
1709
980
|
// 定义cascaderPanel 引用
|
1710
|
-
var cascaderPanel = ref();
|
981
|
+
var cascaderPanel = (0,external_vue_namespaceObject.ref)();
|
1711
982
|
// 定义searchKey变量,支持搜索时,搜索框绑定变量
|
1712
|
-
var searchKey = ref('');
|
983
|
+
var searchKey = (0,external_vue_namespaceObject.ref)('');
|
1713
984
|
// 定义suggestions变量,搜索功能打开时,面板给出的列表
|
1714
|
-
var suggestions = ref([]);
|
985
|
+
var suggestions = (0,external_vue_namespaceObject.ref)([]);
|
1715
986
|
// 定义isFiltering变量,记录是否正在搜索,过滤
|
1716
|
-
var isFiltering = ref(false);
|
987
|
+
var isFiltering = (0,external_vue_namespaceObject.ref)(false);
|
1717
988
|
// 定义isEdit变量,记录是否处于编辑状态
|
1718
|
-
var isEdit = ref(false);
|
989
|
+
var isEdit = (0,external_vue_namespaceObject.ref)(false);
|
1719
990
|
// 定义isFocus变量,记录是否处于焦点状态
|
1720
|
-
var isFocus = ref(false);
|
991
|
+
var isFocus = (0,external_vue_namespaceObject.ref)(false);
|
1721
992
|
// 定义isShowPanel变量,用于标致面板显示
|
1722
|
-
var isShowPanel = ref(false);
|
993
|
+
var isShowPanel = (0,external_vue_namespaceObject.ref)(false);
|
1723
994
|
// 用computed定义checkedValue变量,用于监听modelValue的变化
|
1724
|
-
var checkedValue = computed({
|
995
|
+
var checkedValue = (0,external_vue_namespaceObject.computed)({
|
1725
996
|
get: function get() {
|
1726
997
|
return modelValue.value;
|
1727
998
|
},
|
@@ -1730,15 +1001,15 @@ var Store = /*#__PURE__*/function () {
|
|
1730
1001
|
}
|
1731
1002
|
});
|
1732
1003
|
// 定义popover变量
|
1733
|
-
var popover = ref(null);
|
1004
|
+
var popover = (0,external_vue_namespaceObject.ref)(null);
|
1734
1005
|
// 定义bkCascaderRef和inputRef变量
|
1735
|
-
var bkCascaderRef = ref(null);
|
1736
|
-
var inputRef = ref(null);
|
1006
|
+
var bkCascaderRef = (0,external_vue_namespaceObject.ref)(null);
|
1007
|
+
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
1737
1008
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
1738
|
-
var placeholder = computed(function () {
|
1009
|
+
var placeholder = (0,external_vue_namespaceObject.computed)(function () {
|
1739
1010
|
return props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
1740
1011
|
});
|
1741
|
-
var displayText = computed(function () {
|
1012
|
+
var displayText = (0,external_vue_namespaceObject.computed)(function () {
|
1742
1013
|
if (props.customTextFillback) {
|
1743
1014
|
return props.customTextFillback(props.modelValue, store.value.getFlattedNodes());
|
1744
1015
|
}
|
@@ -1783,7 +1054,7 @@ var Store = /*#__PURE__*/function () {
|
|
1783
1054
|
// 如果 checkAnyLevel 配置为 false,则隐藏弹出框
|
1784
1055
|
if (!props.checkAnyLevel) {
|
1785
1056
|
var _popover$value;
|
1786
|
-
popover === null || popover === void 0 || (_popover$value = popover.value) === null || _popover$value === void 0
|
1057
|
+
popover === null || popover === void 0 || (_popover$value = popover.value) === null || _popover$value === void 0 || _popover$value.hide();
|
1787
1058
|
}
|
1788
1059
|
// 获取与选中值对应的节点
|
1789
1060
|
var node = store.value.getNodeByValue(val);
|
@@ -1823,7 +1094,7 @@ var Store = /*#__PURE__*/function () {
|
|
1823
1094
|
emit('update:modelValue', value);
|
1824
1095
|
oldValue !== undefined && emit('change', value); // oldValue = undefined代表初始化,init不派发change事件
|
1825
1096
|
// 如果有过滤搜索,选择后,自动focus到input
|
1826
|
-
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1097
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
1827
1098
|
// 选择后过滤条件清除,面板初始化渲染
|
1828
1099
|
isFiltering.value = false;
|
1829
1100
|
};
|
@@ -1839,12 +1110,12 @@ var Store = /*#__PURE__*/function () {
|
|
1839
1110
|
isEdit.value = val.isShow;
|
1840
1111
|
// popover激活后,focus相应事件
|
1841
1112
|
isFocus.value = val.isShow;
|
1842
|
-
nextTick(function () {
|
1113
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1843
1114
|
var _inputRef$value2;
|
1844
1115
|
val && ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus());
|
1845
1116
|
if (val.isShow) {
|
1846
1117
|
var _cascaderPanel$value;
|
1847
|
-
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0
|
1118
|
+
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0 || _cascaderPanel$value.scrollToSelected(); // 滚动到选中的节点
|
1848
1119
|
}
|
1849
1120
|
});
|
1850
1121
|
val.isShow && focusEmitter(); // 面板打开,触发focus事件
|
@@ -1887,34 +1158,34 @@ var Store = /*#__PURE__*/function () {
|
|
1887
1158
|
emit('focus');
|
1888
1159
|
};
|
1889
1160
|
// 监听modelValue的变化
|
1890
|
-
watch(function () {
|
1161
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1891
1162
|
return props.modelValue;
|
1892
1163
|
}, modelValueChangeHandler, {
|
1893
1164
|
immediate: true
|
1894
1165
|
});
|
1895
1166
|
// 监听list的变化
|
1896
|
-
watch(function () {
|
1167
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1897
1168
|
return props.list;
|
1898
1169
|
}, listChangeHandler, {
|
1899
1170
|
deep: true,
|
1900
1171
|
immediate: true
|
1901
1172
|
});
|
1902
1173
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
1903
|
-
var tagList = computed(function () {
|
1174
|
+
var tagList = (0,external_vue_namespaceObject.computed)(function () {
|
1904
1175
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
1905
1176
|
return item.text;
|
1906
1177
|
});
|
1907
1178
|
});
|
1908
|
-
var isCollapse = computed(function () {
|
1179
|
+
var isCollapse = (0,external_vue_namespaceObject.computed)(function () {
|
1909
1180
|
return props.collapseTags ? props.collapseTags && isFocus.value : props.collapseTags;
|
1910
1181
|
});
|
1911
|
-
var isEditMode = computed(function () {
|
1182
|
+
var isEditMode = (0,external_vue_namespaceObject.computed)(function () {
|
1912
1183
|
return props.collapseTags ? props.collapseTags && isEdit.value : props.collapseTags;
|
1913
1184
|
});
|
1914
1185
|
// 如果使用了trigger插槽,则不存在bkCascaderRef,做兼容处理
|
1915
1186
|
var _ref2 = slots.trigger ? {
|
1916
1187
|
overflowTagIndex: null
|
1917
|
-
} : useTagsOverflow(bkCascaderRef, isEditMode, tagList),
|
1188
|
+
} : (0,tag_input_namespaceObject.useTagsOverflow)(bkCascaderRef, isEditMode, tagList),
|
1918
1189
|
overflowTagIndex = _ref2.overflowTagIndex;
|
1919
1190
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1920
1191
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -2029,8 +1300,8 @@ var Store = /*#__PURE__*/function () {
|
|
2029
1300
|
"disabled": _this.disabled,
|
2030
1301
|
"offset": 4,
|
2031
1302
|
"placement": "bottom-start",
|
2032
|
-
"theme": "light ".concat(_this.resolveClassName('cascader-popover')),
|
2033
1303
|
"referenceCls": _this.resolveClassName('cascader-popover-reference'),
|
1304
|
+
"theme": "light ".concat(_this.resolveClassName('cascader-popover')),
|
2034
1305
|
"trigger": "click",
|
2035
1306
|
"onAfterHidden": _this.popoverChangeEmitter,
|
2036
1307
|
"onAfterShow": _this.popoverChangeEmitter
|
@@ -2133,8 +1404,6 @@ var BkCascader = (0,shared_namespaceObject.withInstallProps)(cascader, {
|
|
2133
1404
|
});
|
2134
1405
|
/* harmony default export */ const src = (BkCascader);
|
2135
1406
|
|
2136
|
-
})();
|
2137
|
-
|
2138
1407
|
var __webpack_exports__BkCascader = __webpack_exports__.BkCascader;
|
2139
1408
|
var __webpack_exports__BkCascaderPanel = __webpack_exports__.BkCascaderPanel;
|
2140
1409
|
var __webpack_exports__default = __webpack_exports__["default"];
|