bkui-vue 2.0.1-beta.106 → 2.0.1-beta.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +71 -71
- package/dist/index.esm.js +18609 -18772
- package/dist/index.umd.js +70 -70
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +268 -270
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +41 -43
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +22 -25
- package/lib/config-provider/use-global-config.d.ts +0 -1
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +33 -41
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/message/index.js +25 -24
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +21 -20
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/plugin-popover/index.js +135 -233
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +361 -423
- package/lib/popover/index.js +135 -233
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.d.ts +169 -132
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +350 -338
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +150 -104
- package/lib/table-column/index.js +19 -18
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +206 -191
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/cascader/index.js
CHANGED
@@ -21,304 +21,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
|
|
21
21
|
function _regeneratorRuntime() {
|
22
22
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
23
23
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
24
|
-
return
|
24
|
+
return exports;
|
25
25
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
26
|
-
var
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
t[e] = r.value;
|
26
|
+
var exports = {},
|
27
|
+
Op = Object.prototype,
|
28
|
+
hasOwn = Op.hasOwnProperty,
|
29
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
30
|
+
obj[key] = desc.value;
|
32
31
|
},
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
function define(
|
38
|
-
return Object.defineProperty(
|
39
|
-
value:
|
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,
|
40
39
|
enumerable: !0,
|
41
40
|
configurable: !0,
|
42
41
|
writable: !0
|
43
|
-
}),
|
42
|
+
}), obj[key];
|
44
43
|
}
|
45
44
|
try {
|
46
45
|
define({}, "");
|
47
|
-
} catch (
|
48
|
-
define = function define(
|
49
|
-
return
|
46
|
+
} catch (err) {
|
47
|
+
define = function define(obj, key, value) {
|
48
|
+
return obj[key] = value;
|
50
49
|
};
|
51
50
|
}
|
52
|
-
function wrap(
|
53
|
-
var
|
54
|
-
|
55
|
-
|
56
|
-
return
|
57
|
-
value: makeInvokeMethod(
|
58
|
-
}),
|
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;
|
59
58
|
}
|
60
|
-
function tryCatch(
|
59
|
+
function tryCatch(fn, obj, arg) {
|
61
60
|
try {
|
62
61
|
return {
|
63
62
|
type: "normal",
|
64
|
-
arg:
|
63
|
+
arg: fn.call(obj, arg)
|
65
64
|
};
|
66
|
-
} catch (
|
65
|
+
} catch (err) {
|
67
66
|
return {
|
68
67
|
type: "throw",
|
69
|
-
arg:
|
68
|
+
arg: err
|
70
69
|
};
|
71
70
|
}
|
72
71
|
}
|
73
|
-
|
74
|
-
var
|
75
|
-
l = "suspendedYield",
|
76
|
-
f = "executing",
|
77
|
-
s = "completed",
|
78
|
-
y = {};
|
72
|
+
exports.wrap = wrap;
|
73
|
+
var ContinueSentinel = {};
|
79
74
|
function Generator() {}
|
80
75
|
function GeneratorFunction() {}
|
81
76
|
function GeneratorFunctionPrototype() {}
|
82
|
-
var
|
83
|
-
define(
|
77
|
+
var IteratorPrototype = {};
|
78
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
84
79
|
return this;
|
85
80
|
});
|
86
|
-
var
|
87
|
-
|
88
|
-
|
89
|
-
var
|
90
|
-
function defineIteratorMethods(
|
91
|
-
["next", "throw", "return"].forEach(function (
|
92
|
-
define(
|
93
|
-
return this._invoke(
|
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);
|
94
89
|
});
|
95
90
|
});
|
96
91
|
}
|
97
|
-
function AsyncIterator(
|
98
|
-
function invoke(
|
99
|
-
var
|
100
|
-
if ("throw" !==
|
101
|
-
var
|
102
|
-
|
103
|
-
return
|
104
|
-
invoke("next",
|
105
|
-
}, function (
|
106
|
-
invoke("throw",
|
107
|
-
}) :
|
108
|
-
|
109
|
-
}, function (
|
110
|
-
return invoke("throw",
|
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);
|
111
106
|
});
|
112
107
|
}
|
113
|
-
|
108
|
+
reject(record.arg);
|
114
109
|
}
|
115
|
-
var
|
116
|
-
|
117
|
-
value: function value(
|
110
|
+
var previousPromise;
|
111
|
+
defineProperty(this, "_invoke", {
|
112
|
+
value: function value(method, arg) {
|
118
113
|
function callInvokeWithMethodAndArg() {
|
119
|
-
return new
|
120
|
-
invoke(
|
114
|
+
return new PromiseImpl(function (resolve, reject) {
|
115
|
+
invoke(method, arg, resolve, reject);
|
121
116
|
});
|
122
117
|
}
|
123
|
-
return
|
118
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
124
119
|
}
|
125
120
|
});
|
126
121
|
}
|
127
|
-
function makeInvokeMethod(
|
128
|
-
var
|
129
|
-
return function (
|
130
|
-
if (
|
131
|
-
if (
|
132
|
-
if ("throw" ===
|
133
|
-
return
|
134
|
-
value: t,
|
135
|
-
done: !0
|
136
|
-
};
|
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();
|
137
129
|
}
|
138
|
-
for (
|
139
|
-
var
|
140
|
-
if (
|
141
|
-
var
|
142
|
-
if (
|
143
|
-
if (
|
144
|
-
return
|
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;
|
145
137
|
}
|
146
138
|
}
|
147
|
-
if ("next" ===
|
148
|
-
if (
|
149
|
-
|
150
|
-
} else "return" ===
|
151
|
-
|
152
|
-
var
|
153
|
-
if ("normal" ===
|
154
|
-
if (
|
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;
|
155
147
|
return {
|
156
|
-
value:
|
157
|
-
done:
|
148
|
+
value: record.arg,
|
149
|
+
done: context.done
|
158
150
|
};
|
159
151
|
}
|
160
|
-
"throw" ===
|
152
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
161
153
|
}
|
162
154
|
};
|
163
155
|
}
|
164
|
-
function maybeInvokeDelegate(
|
165
|
-
var
|
166
|
-
|
167
|
-
if (
|
168
|
-
var
|
169
|
-
if ("throw" ===
|
170
|
-
var
|
171
|
-
return
|
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);
|
172
164
|
}
|
173
|
-
function pushTryEntry(
|
174
|
-
var
|
175
|
-
tryLoc:
|
165
|
+
function pushTryEntry(locs) {
|
166
|
+
var entry = {
|
167
|
+
tryLoc: locs[0]
|
176
168
|
};
|
177
|
-
1 in
|
169
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
178
170
|
}
|
179
|
-
function resetTryEntry(
|
180
|
-
var
|
181
|
-
|
171
|
+
function resetTryEntry(entry) {
|
172
|
+
var record = entry.completion || {};
|
173
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
182
174
|
}
|
183
|
-
function Context(
|
175
|
+
function Context(tryLocsList) {
|
184
176
|
this.tryEntries = [{
|
185
177
|
tryLoc: "root"
|
186
|
-
}],
|
178
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
187
179
|
}
|
188
|
-
function values(
|
189
|
-
if (
|
190
|
-
var
|
191
|
-
if (
|
192
|
-
if ("function" == typeof
|
193
|
-
if (!isNaN(
|
194
|
-
var
|
195
|
-
|
196
|
-
for (; ++
|
197
|
-
return next.value =
|
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;
|
198
190
|
};
|
199
|
-
return
|
191
|
+
return next.next = next;
|
200
192
|
}
|
201
193
|
}
|
202
|
-
|
194
|
+
return {
|
195
|
+
next: doneResult
|
196
|
+
};
|
197
|
+
}
|
198
|
+
function doneResult() {
|
199
|
+
return {
|
200
|
+
value: undefined,
|
201
|
+
done: !0
|
202
|
+
};
|
203
203
|
}
|
204
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
204
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
205
205
|
value: GeneratorFunctionPrototype,
|
206
206
|
configurable: !0
|
207
|
-
}),
|
207
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
208
208
|
value: GeneratorFunction,
|
209
209
|
configurable: !0
|
210
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
211
|
-
var
|
212
|
-
return !!
|
213
|
-
},
|
214
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
215
|
-
},
|
210
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, 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
216
|
return {
|
217
|
-
__await:
|
217
|
+
__await: arg
|
218
218
|
};
|
219
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
219
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
220
220
|
return this;
|
221
|
-
}),
|
222
|
-
void 0 ===
|
223
|
-
var
|
224
|
-
return
|
225
|
-
return
|
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
226
|
});
|
227
|
-
}, defineIteratorMethods(
|
227
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
228
228
|
return this;
|
229
|
-
}), define(
|
229
|
+
}), define(Gp, "toString", function () {
|
230
230
|
return "[object Generator]";
|
231
|
-
}),
|
232
|
-
var
|
233
|
-
|
234
|
-
for (var
|
235
|
-
return
|
236
|
-
for (;
|
237
|
-
var
|
238
|
-
if (
|
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
239
|
}
|
240
240
|
return next.done = !0, next;
|
241
241
|
};
|
242
|
-
},
|
242
|
+
}, exports.values = values, Context.prototype = {
|
243
243
|
constructor: Context,
|
244
|
-
reset: function reset(
|
245
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
244
|
+
reset: function reset(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
246
|
},
|
247
247
|
stop: function stop() {
|
248
248
|
this.done = !0;
|
249
|
-
var
|
250
|
-
if ("throw" ===
|
249
|
+
var rootRecord = this.tryEntries[0].completion;
|
250
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
251
251
|
return this.rval;
|
252
252
|
},
|
253
|
-
dispatchException: function dispatchException(
|
254
|
-
if (this.done) throw
|
255
|
-
var
|
256
|
-
function handle(
|
257
|
-
return
|
253
|
+
dispatchException: function dispatchException(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
258
|
}
|
259
|
-
for (var
|
260
|
-
var
|
261
|
-
|
262
|
-
if ("root" ===
|
263
|
-
if (
|
264
|
-
var
|
265
|
-
|
266
|
-
if (
|
267
|
-
if (this.prev <
|
268
|
-
if (this.prev <
|
269
|
-
} else if (
|
270
|
-
if (this.prev <
|
259
|
+
for (var 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
271
|
} else {
|
272
|
-
if (!
|
273
|
-
if (this.prev <
|
272
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
273
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
274
274
|
}
|
275
275
|
}
|
276
276
|
}
|
277
277
|
},
|
278
|
-
abrupt: function abrupt(
|
279
|
-
for (var
|
280
|
-
var
|
281
|
-
if (
|
282
|
-
var
|
278
|
+
abrupt: function abrupt(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
283
|
break;
|
284
284
|
}
|
285
285
|
}
|
286
|
-
|
287
|
-
var
|
288
|
-
return
|
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
289
|
},
|
290
|
-
complete: function complete(
|
291
|
-
if ("throw" ===
|
292
|
-
return "break" ===
|
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
293
|
},
|
294
|
-
finish: function finish(
|
295
|
-
for (var
|
296
|
-
var
|
297
|
-
if (
|
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
298
|
}
|
299
299
|
},
|
300
|
-
"catch": function _catch(
|
301
|
-
for (var
|
302
|
-
var
|
303
|
-
if (
|
304
|
-
var
|
305
|
-
if ("throw" ===
|
306
|
-
var
|
307
|
-
resetTryEntry(
|
300
|
+
"catch": function _catch(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
308
|
}
|
309
|
-
return
|
309
|
+
return thrown;
|
310
310
|
}
|
311
311
|
}
|
312
312
|
throw new Error("illegal catch attempt");
|
313
313
|
},
|
314
|
-
delegateYield: function delegateYield(
|
314
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
315
315
|
return this.delegate = {
|
316
|
-
iterator: values(
|
317
|
-
resultName:
|
318
|
-
nextLoc:
|
319
|
-
}, "next" === this.method && (this.arg =
|
316
|
+
iterator: values(iterable),
|
317
|
+
resultName: resultName,
|
318
|
+
nextLoc: nextLoc
|
319
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
320
320
|
}
|
321
|
-
},
|
321
|
+
}, exports;
|
322
322
|
}
|
323
323
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
324
324
|
|
@@ -327,14 +327,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
327
327
|
/***/ 7425:
|
328
328
|
/***/ ((module) => {
|
329
329
|
|
330
|
-
function _typeof(
|
330
|
+
function _typeof(obj) {
|
331
331
|
"@babel/helpers - typeof";
|
332
332
|
|
333
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
334
|
-
return typeof
|
335
|
-
} : function (
|
336
|
-
return
|
337
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(
|
333
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (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
338
|
}
|
339
339
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
340
340
|
|
@@ -425,7 +425,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
425
425
|
;// CONCATENATED MODULE: external "vue"
|
426
426
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
427
427
|
var external_vue_y = x => () => x
|
428
|
-
const external_vue_namespaceObject = external_vue_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 });
|
429
429
|
;// CONCATENATED MODULE: external "vue-types"
|
430
430
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
431
431
|
var external_vue_types_y = x => () => x
|
@@ -577,7 +577,7 @@ function usePopover(config, triggerRef) {
|
|
577
577
|
});
|
578
578
|
onBeforeUnmount(function () {
|
579
579
|
var _observerIns;
|
580
|
-
(_observerIns = observerIns) === null || _observerIns === void 0
|
580
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 ? void 0 : _observerIns.stop();
|
581
581
|
observerIns = null;
|
582
582
|
});
|
583
583
|
return {
|
@@ -595,7 +595,7 @@ function useRemoteSearch(method, callBack) {
|
|
595
595
|
return searchValue.value || customOptionName.value;
|
596
596
|
});
|
597
597
|
var searchLoading = ref(false);
|
598
|
-
watch(curSearchValue, /*#__PURE__*/_asyncToGenerator(
|
598
|
+
watch(curSearchValue, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
599
599
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
600
600
|
while (1) switch (_context.prev = _context.next) {
|
601
601
|
case 0:
|
@@ -613,7 +613,7 @@ function useRemoteSearch(method, callBack) {
|
|
613
613
|
console.error(_context.t0);
|
614
614
|
case 10:
|
615
615
|
_context.prev = 10;
|
616
|
-
callBack === null || callBack === void 0
|
616
|
+
callBack === null || callBack === void 0 ? void 0 : callBack();
|
617
617
|
return _context.finish(10);
|
618
618
|
case 13:
|
619
619
|
case "end":
|
@@ -834,10 +834,9 @@ var checkbox_less_y = x => () => x
|
|
834
834
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
835
835
|
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
|
836
836
|
|
837
|
-
function _createForOfIteratorHelper(
|
838
|
-
function _unsupportedIterableToArray(
|
839
|
-
function _arrayLikeToArray(
|
840
|
-
/*
|
837
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
838
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
839
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /*
|
841
840
|
* Tencent is pleased to support the open source community by making
|
842
841
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
843
842
|
*
|
@@ -868,12 +867,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
868
867
|
|
869
868
|
|
870
869
|
|
871
|
-
|
872
870
|
/**
|
873
871
|
* CascaderPanel 组件
|
874
872
|
* 用于展示级联选择器的面板,支持多选、单选、远程加载等功能。
|
875
873
|
*/
|
876
|
-
/* harmony default export */ const cascader_panel = (
|
874
|
+
/* harmony default export */ const cascader_panel = (defineComponent({
|
877
875
|
name: 'CascaderPanel',
|
878
876
|
props: {
|
879
877
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def('auto'),
|
@@ -892,11 +890,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
892
890
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
893
891
|
resolveClassName = _usePrefix.resolveClassName;
|
894
892
|
var store = props.store;
|
895
|
-
var menus =
|
893
|
+
var menus = reactive({
|
896
894
|
list: [props.store.getNodes()]
|
897
895
|
});
|
898
|
-
var activePath =
|
899
|
-
var checkValue =
|
896
|
+
var activePath = ref([]);
|
897
|
+
var checkValue = ref([]);
|
900
898
|
/**
|
901
899
|
* 根据传入的值计算尺寸
|
902
900
|
* @param value - 数字或字符串类型的尺寸值
|
@@ -1049,7 +1047,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1049
1047
|
// 查找当前级别中选中的或已勾选的节点
|
1050
1048
|
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')));
|
1051
1049
|
if (selectedNode) {
|
1052
|
-
|
1050
|
+
nextTick(function () {
|
1053
1051
|
selectedNode.scrollIntoView();
|
1054
1052
|
});
|
1055
1053
|
}
|
@@ -1099,7 +1097,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1099
1097
|
}, null);
|
1100
1098
|
};
|
1101
1099
|
// 监听 modelValue 的变化,更新选中值
|
1102
|
-
|
1100
|
+
watch(function () {
|
1103
1101
|
return props.modelValue;
|
1104
1102
|
}, function (value) {
|
1105
1103
|
updateCheckValue(value);
|
@@ -1107,7 +1105,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1107
1105
|
immediate: true
|
1108
1106
|
});
|
1109
1107
|
// 监听 store 的变化,更新菜单列表
|
1110
|
-
|
1108
|
+
watch(function () {
|
1111
1109
|
return props.store;
|
1112
1110
|
}, function (value) {
|
1113
1111
|
menus.list = [value.getNodes()];
|
@@ -1206,33 +1204,33 @@ function _classCallCheck(instance, Constructor) {
|
|
1206
1204
|
}
|
1207
1205
|
}
|
1208
1206
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1209
|
-
function _typeof(
|
1207
|
+
function _typeof(obj) {
|
1210
1208
|
"@babel/helpers - typeof";
|
1211
1209
|
|
1212
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
1213
|
-
return typeof
|
1214
|
-
} : function (
|
1215
|
-
return
|
1216
|
-
}, _typeof(
|
1210
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
1211
|
+
return typeof obj;
|
1212
|
+
} : function (obj) {
|
1213
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1214
|
+
}, _typeof(obj);
|
1217
1215
|
}
|
1218
1216
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1219
1217
|
|
1220
|
-
function
|
1221
|
-
if ("object"
|
1222
|
-
var
|
1223
|
-
if (
|
1224
|
-
var
|
1225
|
-
if ("object"
|
1218
|
+
function _toPrimitive(input, hint) {
|
1219
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
1220
|
+
var prim = input[Symbol.toPrimitive];
|
1221
|
+
if (prim !== undefined) {
|
1222
|
+
var res = prim.call(input, hint || "default");
|
1223
|
+
if (_typeof(res) !== "object") return res;
|
1226
1224
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1227
1225
|
}
|
1228
|
-
return ("string"
|
1226
|
+
return (hint === "string" ? String : Number)(input);
|
1229
1227
|
}
|
1230
1228
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1231
1229
|
|
1232
1230
|
|
1233
|
-
function
|
1234
|
-
var
|
1235
|
-
return "symbol"
|
1231
|
+
function _toPropertyKey(arg) {
|
1232
|
+
var key = _toPrimitive(arg, "string");
|
1233
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
1236
1234
|
}
|
1237
1235
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1238
1236
|
|
@@ -1242,7 +1240,7 @@ function _defineProperties(target, props) {
|
|
1242
1240
|
descriptor.enumerable = descriptor.enumerable || false;
|
1243
1241
|
descriptor.configurable = true;
|
1244
1242
|
if ("value" in descriptor) descriptor.writable = true;
|
1245
|
-
Object.defineProperty(target,
|
1243
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
1246
1244
|
}
|
1247
1245
|
}
|
1248
1246
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -1372,7 +1370,7 @@ var Node = /*#__PURE__*/function () {
|
|
1372
1370
|
var _child$handlerName;
|
1373
1371
|
// 自底向上广播事件
|
1374
1372
|
child.broadcast(event, checkStatus);
|
1375
|
-
(_child$handlerName = child[handlerName]) === null || _child$handlerName === void 0
|
1373
|
+
(_child$handlerName = child[handlerName]) === null || _child$handlerName === void 0 ? void 0 : _child$handlerName.call(child, checkStatus);
|
1376
1374
|
}
|
1377
1375
|
});
|
1378
1376
|
}
|
@@ -1384,7 +1382,7 @@ var Node = /*#__PURE__*/function () {
|
|
1384
1382
|
var handlerName = "onChild".concat((0,shared_namespaceObject.capitalize)(event));
|
1385
1383
|
if (parent) {
|
1386
1384
|
var _parent$handlerName;
|
1387
|
-
(_parent$handlerName = parent[handlerName]) === null || _parent$handlerName === void 0
|
1385
|
+
(_parent$handlerName = parent[handlerName]) === null || _parent$handlerName === void 0 ? void 0 : _parent$handlerName.call(parent);
|
1388
1386
|
parent.emit(event);
|
1389
1387
|
}
|
1390
1388
|
}
|
@@ -1649,7 +1647,7 @@ var Store = /*#__PURE__*/function () {
|
|
1649
1647
|
* Cascader 组件
|
1650
1648
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
1651
1649
|
*/
|
1652
|
-
/* harmony default export */ const cascader = (
|
1650
|
+
/* harmony default export */ const cascader = (defineComponent({
|
1653
1651
|
name: 'Cascader',
|
1654
1652
|
directives: {
|
1655
1653
|
bkTooltips: directives_namespaceObject.bkTooltips
|
@@ -1701,29 +1699,29 @@ var Store = /*#__PURE__*/function () {
|
|
1701
1699
|
isHover = _useHover.isHover,
|
1702
1700
|
setHover = _useHover.setHover,
|
1703
1701
|
cancelHover = _useHover.cancelHover;
|
1704
|
-
var store =
|
1702
|
+
var store = ref(new src_store(props));
|
1705
1703
|
// 定义selectedText变量用于记录当前选择的值的文本
|
1706
|
-
var selectedText =
|
1704
|
+
var selectedText = ref('');
|
1707
1705
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
1708
|
-
var selectedTags =
|
1709
|
-
var _toRefs =
|
1706
|
+
var selectedTags = ref([]);
|
1707
|
+
var _toRefs = toRefs(props),
|
1710
1708
|
modelValue = _toRefs.modelValue;
|
1711
1709
|
// 定义cascaderPanel 引用
|
1712
|
-
var cascaderPanel =
|
1710
|
+
var cascaderPanel = ref();
|
1713
1711
|
// 定义searchKey变量,支持搜索时,搜索框绑定变量
|
1714
|
-
var searchKey =
|
1712
|
+
var searchKey = ref('');
|
1715
1713
|
// 定义suggestions变量,搜索功能打开时,面板给出的列表
|
1716
|
-
var suggestions =
|
1714
|
+
var suggestions = ref([]);
|
1717
1715
|
// 定义isFiltering变量,记录是否正在搜索,过滤
|
1718
|
-
var isFiltering =
|
1716
|
+
var isFiltering = ref(false);
|
1719
1717
|
// 定义isEdit变量,记录是否处于编辑状态
|
1720
|
-
var isEdit =
|
1718
|
+
var isEdit = ref(false);
|
1721
1719
|
// 定义isFocus变量,记录是否处于焦点状态
|
1722
|
-
var isFocus =
|
1720
|
+
var isFocus = ref(false);
|
1723
1721
|
// 定义isShowPanel变量,用于标致面板显示
|
1724
|
-
var isShowPanel =
|
1722
|
+
var isShowPanel = ref(false);
|
1725
1723
|
// 用computed定义checkedValue变量,用于监听modelValue的变化
|
1726
|
-
var checkedValue =
|
1724
|
+
var checkedValue = computed({
|
1727
1725
|
get: function get() {
|
1728
1726
|
return modelValue.value;
|
1729
1727
|
},
|
@@ -1732,15 +1730,15 @@ var Store = /*#__PURE__*/function () {
|
|
1732
1730
|
}
|
1733
1731
|
});
|
1734
1732
|
// 定义popover变量
|
1735
|
-
var popover =
|
1733
|
+
var popover = ref(null);
|
1736
1734
|
// 定义bkCascaderRef和inputRef变量
|
1737
|
-
var bkCascaderRef =
|
1738
|
-
var inputRef =
|
1735
|
+
var bkCascaderRef = ref(null);
|
1736
|
+
var inputRef = ref(null);
|
1739
1737
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
1740
|
-
var placeholder =
|
1738
|
+
var placeholder = computed(function () {
|
1741
1739
|
return props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
1742
1740
|
});
|
1743
|
-
var displayText =
|
1741
|
+
var displayText = computed(function () {
|
1744
1742
|
if (props.customTextFillback) {
|
1745
1743
|
return props.customTextFillback(props.modelValue, store.value.getFlattedNodes());
|
1746
1744
|
}
|
@@ -1785,7 +1783,7 @@ var Store = /*#__PURE__*/function () {
|
|
1785
1783
|
// 如果 checkAnyLevel 配置为 false,则隐藏弹出框
|
1786
1784
|
if (!props.checkAnyLevel) {
|
1787
1785
|
var _popover$value;
|
1788
|
-
popover === null || popover === void 0 || (_popover$value = popover.value) === null || _popover$value === void 0
|
1786
|
+
popover === null || popover === void 0 || (_popover$value = popover.value) === null || _popover$value === void 0 ? void 0 : _popover$value.hide();
|
1789
1787
|
}
|
1790
1788
|
// 获取与选中值对应的节点
|
1791
1789
|
var node = store.value.getNodeByValue(val);
|
@@ -1825,7 +1823,7 @@ var Store = /*#__PURE__*/function () {
|
|
1825
1823
|
emit('update:modelValue', value);
|
1826
1824
|
oldValue !== undefined && emit('change', value); // oldValue = undefined代表初始化,init不派发change事件
|
1827
1825
|
// 如果有过滤搜索,选择后,自动focus到input
|
1828
|
-
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0
|
1826
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
1829
1827
|
// 选择后过滤条件清除,面板初始化渲染
|
1830
1828
|
isFiltering.value = false;
|
1831
1829
|
};
|
@@ -1841,12 +1839,12 @@ var Store = /*#__PURE__*/function () {
|
|
1841
1839
|
isEdit.value = val.isShow;
|
1842
1840
|
// popover激活后,focus相应事件
|
1843
1841
|
isFocus.value = val.isShow;
|
1844
|
-
|
1842
|
+
nextTick(function () {
|
1845
1843
|
var _inputRef$value2;
|
1846
1844
|
val && ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus());
|
1847
1845
|
if (val.isShow) {
|
1848
1846
|
var _cascaderPanel$value;
|
1849
|
-
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0
|
1847
|
+
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0 ? void 0 : _cascaderPanel$value.scrollToSelected(); // 滚动到选中的节点
|
1850
1848
|
}
|
1851
1849
|
});
|
1852
1850
|
val.isShow && focusEmitter(); // 面板打开,触发focus事件
|
@@ -1889,28 +1887,28 @@ var Store = /*#__PURE__*/function () {
|
|
1889
1887
|
emit('focus');
|
1890
1888
|
};
|
1891
1889
|
// 监听modelValue的变化
|
1892
|
-
|
1890
|
+
watch(function () {
|
1893
1891
|
return props.modelValue;
|
1894
1892
|
}, modelValueChangeHandler, {
|
1895
1893
|
immediate: true
|
1896
1894
|
});
|
1897
1895
|
// 监听list的变化
|
1898
|
-
|
1896
|
+
watch(function () {
|
1899
1897
|
return props.list;
|
1900
1898
|
}, listChangeHandler, {
|
1901
1899
|
deep: true,
|
1902
1900
|
immediate: true
|
1903
1901
|
});
|
1904
1902
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
1905
|
-
var tagList =
|
1903
|
+
var tagList = computed(function () {
|
1906
1904
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
1907
1905
|
return item.text;
|
1908
1906
|
});
|
1909
1907
|
});
|
1910
|
-
var isCollapse =
|
1908
|
+
var isCollapse = computed(function () {
|
1911
1909
|
return props.collapseTags ? props.collapseTags && isFocus.value : props.collapseTags;
|
1912
1910
|
});
|
1913
|
-
var isEditMode =
|
1911
|
+
var isEditMode = computed(function () {
|
1914
1912
|
return props.collapseTags ? props.collapseTags && isEdit.value : props.collapseTags;
|
1915
1913
|
});
|
1916
1914
|
// 如果使用了trigger插槽,则不存在bkCascaderRef,做兼容处理
|