bkui-vue 0.0.1-beta.451 → 0.0.1-beta.453
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 +8 -8
- package/dist/index.esm.js +29 -26
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/modal/index.d.ts +4 -11
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +1 -2
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +1 -0
- package/lib/select/select.less +1 -0
- package/lib/select/select.variable.css +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -11151,7 +11151,7 @@ var Component$u = defineComponent({
|
|
11151
11151
|
return {
|
11152
11152
|
visible: false,
|
11153
11153
|
closeTimer: null,
|
11154
|
-
bkPopIndexManager:
|
11154
|
+
bkPopIndexManager: null
|
11155
11155
|
};
|
11156
11156
|
},
|
11157
11157
|
computed: {
|
@@ -11218,6 +11218,13 @@ var Component$u = defineComponent({
|
|
11218
11218
|
},
|
11219
11219
|
created() {
|
11220
11220
|
},
|
11221
|
+
mounted() {
|
11222
|
+
var _a;
|
11223
|
+
const popConfig = __spreadValues(__spreadValues({}, this.$props), {
|
11224
|
+
transfer: this.transfer === "parent" ? (_a = this.$el) == null ? void 0 : _a.parentElement : this.transfer
|
11225
|
+
});
|
11226
|
+
this.bkPopIndexManager = new BKPopIndexManager(popConfig);
|
11227
|
+
},
|
11221
11228
|
beforeUnmount() {
|
11222
11229
|
var _a, _b;
|
11223
11230
|
if (this.visible) {
|
@@ -16248,10 +16255,7 @@ var SelectTagInput = defineComponent({
|
|
16248
16255
|
[resolveClassName("select-tag--default")]: true,
|
16249
16256
|
"is-disabled": this.disabled,
|
16250
16257
|
"collapse-tag": this.collapseTags,
|
16251
|
-
"has-prefix": !!prefix
|
16252
|
-
var _a2;
|
16253
|
-
return !!((_a2 = item.children) == null ? void 0 : _a2.length);
|
16254
|
-
}))
|
16258
|
+
"has-prefix": !!prefix
|
16255
16259
|
});
|
16256
16260
|
const tagWrapperClass = classes({
|
16257
16261
|
[resolveClassName("select-tag-wrapper")]: true
|
@@ -16447,7 +16451,7 @@ var Component$k = defineComponent({
|
|
16447
16451
|
const isDisabled = computed(() => disabled.value || loading2.value);
|
16448
16452
|
const selectedLabel = computed(() => selected.value.map((item) => {
|
16449
16453
|
var _a, _b;
|
16450
|
-
return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(item.value)) == null ? void 0 : _b.label) ||
|
16454
|
+
return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(item.value)) == null ? void 0 : _b.label) || listMap.value[item.value] || item.label;
|
16451
16455
|
}));
|
16452
16456
|
const isAllSelected = computed(() => {
|
16453
16457
|
const normalSelectedValues = options.value.reduce((pre, option) => {
|
@@ -16698,7 +16702,7 @@ var Component$k = defineComponent({
|
|
16698
16702
|
}
|
16699
16703
|
}
|
16700
16704
|
}
|
16701
|
-
return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(tmpValue)) == null ? void 0 : _b.label) ||
|
16705
|
+
return ((_b = (_a = optionsMap.value) == null ? void 0 : _a.get(tmpValue)) == null ? void 0 : _b.label) || listMap.value[tmpValue] || cacheSelectedMap.value[tmpValue] || tmpValue;
|
16702
16706
|
};
|
16703
16707
|
const handleSetSelectedData = () => {
|
16704
16708
|
if (Array.isArray(modelValue.value)) {
|
@@ -16874,6 +16878,7 @@ var Component$k = defineComponent({
|
|
16874
16878
|
}, null);
|
16875
16879
|
};
|
16876
16880
|
const renderTriggerInput = () => {
|
16881
|
+
var _a, _b;
|
16877
16882
|
if (this.multipleMode === "tag") {
|
16878
16883
|
return createVNode(SelectTagInput, {
|
16879
16884
|
"ref": "selectTagInputRef",
|
@@ -16889,18 +16894,9 @@ var Component$k = defineComponent({
|
|
16889
16894
|
"onEnter": this.handleInputEnter,
|
16890
16895
|
"onKeydown": (_2, e) => this.handleKeydown(e)
|
16891
16896
|
}, {
|
16892
|
-
prefix: (
|
16893
|
-
|
16894
|
-
|
16895
|
-
return (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a);
|
16896
|
-
}
|
16897
|
-
if (this.prefix) {
|
16898
|
-
return createVNode("div", {
|
16899
|
-
"class": "bk-select--prefix-area"
|
16900
|
-
}, [createVNode("span", null, [this.prefix])]);
|
16901
|
-
}
|
16902
|
-
return "";
|
16903
|
-
},
|
16897
|
+
prefix: this.prefix ? createVNode("div", {
|
16898
|
+
"class": "bk-select--prefix-area"
|
16899
|
+
}, [createVNode("span", null, [this.prefix])]) : (_b = (_a = this.$slots).prefix) == null ? void 0 : _b.call(_a),
|
16904
16900
|
default: this.$slots.tag && (() => this.$slots.tag({
|
16905
16901
|
selected: this.selected
|
16906
16902
|
})),
|
@@ -16925,8 +16921,8 @@ var Component$k = defineComponent({
|
|
16925
16921
|
prefix: this.prefix
|
16926
16922
|
} : null), __spreadProps(__spreadValues({}, typeof this.$slots.prefix === "function" ? {
|
16927
16923
|
prefix: () => {
|
16928
|
-
var
|
16929
|
-
return (
|
16924
|
+
var _a2, _b2;
|
16925
|
+
return (_b2 = (_a2 = this.$slots).prefix) == null ? void 0 : _b2.call(_a2);
|
16930
16926
|
}
|
16931
16927
|
} : null), {
|
16932
16928
|
suffix: () => suffixIcon()
|
@@ -16993,11 +16989,18 @@ var Component$k = defineComponent({
|
|
16993
16989
|
}, {
|
16994
16990
|
default: ({
|
16995
16991
|
data: data2
|
16996
|
-
}) => data2.map((item) =>
|
16997
|
-
|
16998
|
-
|
16999
|
-
|
17000
|
-
|
16992
|
+
}) => data2.map((item) => {
|
16993
|
+
var _a2, _b2;
|
16994
|
+
return createVNode(BkOption, {
|
16995
|
+
"key": item[this.idKey],
|
16996
|
+
"value": item[this.idKey],
|
16997
|
+
"label": item[this.displayKey]
|
16998
|
+
}, {
|
16999
|
+
default: (_b2 = (_a2 = this.$slots).virtualScrollRender) == null ? void 0 : _b2.call(_a2, {
|
17000
|
+
item
|
17001
|
+
})
|
17002
|
+
});
|
17003
|
+
})
|
17001
17004
|
}) : this.list.map((item) => createVNode(BkOption, {
|
17002
17005
|
"value": item[this.idKey],
|
17003
17006
|
"label": item[this.displayKey]
|