bkui-vue 0.0.1-beta.335 → 0.0.1-beta.337
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 +48 -48
- package/dist/index.esm.js +19 -14
- package/dist/index.umd.js +48 -48
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox.css +1 -1
- package/lib/checkbox/checkbox.less +1 -1
- package/lib/checkbox/checkbox.variable.css +1 -1
- package/lib/checkbox/index.js +1 -1
- package/lib/collapse/index.js +1 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/form/index.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.css +2 -1
- package/lib/radio/radio.less +2 -1
- package/lib/radio/radio.variable.css +2 -1
- package/lib/select/index.d.ts +24 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +11 -0
- package/lib/table/table.css +1 -1
- package/lib/table/table.variable.css +1 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tree/tree.css +1 -1
- package/lib/tree/tree.variable.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -9724,8 +9724,8 @@ const useCheckbox = () => {
|
|
9724
9724
|
const $targetInput = event.target;
|
9725
9725
|
isChecked.value = $targetInput.checked;
|
9726
9726
|
const nextValue = isChecked.value ? props2.trueLabel : props2.falseLabel;
|
9727
|
-
emit("change", nextValue);
|
9728
9727
|
emit("update:modelValue", nextValue);
|
9728
|
+
emit("change", nextValue);
|
9729
9729
|
if (isGroup) {
|
9730
9730
|
checkboxGroup.handleChange();
|
9731
9731
|
}
|
@@ -10023,8 +10023,8 @@ var CollapsePanel = defineComponent({
|
|
10023
10023
|
name
|
10024
10024
|
};
|
10025
10025
|
isActive.value = !isActive.value;
|
10026
|
-
emit("change", data2);
|
10027
10026
|
emit("update:modelValue", isActive.value);
|
10027
|
+
emit("change", data2);
|
10028
10028
|
if (typeof itemClick === "function") {
|
10029
10029
|
itemClick(data2);
|
10030
10030
|
} else if (typeof handleItemClick === "function") {
|
@@ -13903,8 +13903,8 @@ const useRadio = () => {
|
|
13903
13903
|
const $targetInput = event.target;
|
13904
13904
|
isChecked.value = $targetInput.checked;
|
13905
13905
|
const nextValue = isChecked.value ? props2.label : "";
|
13906
|
-
emit("change", nextValue);
|
13907
13906
|
emit("update:modelValue", nextValue);
|
13907
|
+
emit("change", nextValue);
|
13908
13908
|
if (isGroup) {
|
13909
13909
|
radioGroup.handleChange(currentInstance.proxy);
|
13910
13910
|
}
|
@@ -14038,7 +14038,7 @@ var RadioButton = defineComponent({
|
|
14038
14038
|
if (!this.label && !this.$slots.default) {
|
14039
14039
|
return null;
|
14040
14040
|
}
|
14041
|
-
return createVNode("
|
14041
|
+
return createVNode("div", {
|
14042
14042
|
"class": "bk-radio-button-label"
|
14043
14043
|
}, [this.$slots.default ? this.$slots.default() : this.label]);
|
14044
14044
|
};
|
@@ -15222,7 +15222,8 @@ var Component$j = defineComponent({
|
|
15222
15222
|
showSelectedIcon: PropTypes.bool.def(true),
|
15223
15223
|
inputSearch: PropTypes.bool.def(true),
|
15224
15224
|
enableVirtualRender: PropTypes.bool.def(false),
|
15225
|
-
allowEmptyValues: PropTypes.array.def([])
|
15225
|
+
allowEmptyValues: PropTypes.array.def([]),
|
15226
|
+
autoFocus: PropTypes.bool.def(false)
|
15226
15227
|
},
|
15227
15228
|
emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur"],
|
15228
15229
|
setup(props2, {
|
@@ -15253,7 +15254,8 @@ var Component$j = defineComponent({
|
|
15253
15254
|
collapseTags,
|
15254
15255
|
autoHeight,
|
15255
15256
|
popoverOptions,
|
15256
|
-
allowEmptyValues
|
15257
|
+
allowEmptyValues,
|
15258
|
+
autoFocus
|
15257
15259
|
} = toRefs(props2);
|
15258
15260
|
const formItem = useFormItem();
|
15259
15261
|
const inputRef = ref();
|
@@ -15368,6 +15370,9 @@ var Component$j = defineComponent({
|
|
15368
15370
|
} = usePopover({
|
15369
15371
|
popoverMinWidth: popoverMinWidth.value
|
15370
15372
|
}, triggerRef);
|
15373
|
+
watch(isPopoverShow, () => {
|
15374
|
+
emit("toggle", isPopoverShow.value);
|
15375
|
+
});
|
15371
15376
|
const isInput = computed(() => (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value);
|
15372
15377
|
watch(isPopoverShow, (isShow) => {
|
15373
15378
|
if (!isShow) {
|
@@ -15402,15 +15407,14 @@ var Component$j = defineComponent({
|
|
15402
15407
|
const emitChange = (val) => {
|
15403
15408
|
if (val === modelValue.value)
|
15404
15409
|
return;
|
15405
|
-
emit("change", val, modelValue.value);
|
15406
15410
|
emit("update:modelValue", val, modelValue.value);
|
15411
|
+
emit("change", val, modelValue.value);
|
15407
15412
|
};
|
15408
15413
|
const handleTogglePopover = () => {
|
15409
15414
|
if (isDisabled.value)
|
15410
15415
|
return;
|
15411
15416
|
handleFocus();
|
15412
15417
|
togglePopover();
|
15413
|
-
emit("toggle", isPopoverShow.value);
|
15414
15418
|
};
|
15415
15419
|
const handleInputChange = (value) => {
|
15416
15420
|
if (!filterable.value)
|
@@ -15618,6 +15622,7 @@ var Component$j = defineComponent({
|
|
15618
15622
|
handleSetSelectedData();
|
15619
15623
|
setTimeout(() => {
|
15620
15624
|
showOnInit.value && showPopover();
|
15625
|
+
autoFocus.value && focusInput();
|
15621
15626
|
});
|
15622
15627
|
on$2(document, "keydown", handleKeydown);
|
15623
15628
|
});
|
@@ -19937,9 +19942,9 @@ var Component$d = defineComponent({
|
|
19937
19942
|
tagInputRef.value.style.width = `${INPUT_MIN_WIDTH}px`;
|
19938
19943
|
};
|
19939
19944
|
const handleChange = (type, data2) => {
|
19940
|
-
emit("change", tagList.value);
|
19941
19945
|
emit(type, data2);
|
19942
19946
|
emit("update:modelValue", tagList.value);
|
19947
|
+
emit("change", tagList.value);
|
19943
19948
|
};
|
19944
19949
|
const handleClear = (e) => {
|
19945
19950
|
e.stopPropagation();
|
@@ -25300,7 +25305,7 @@ var DatePanel = defineComponent({
|
|
25300
25305
|
"onPick-toggle-time": this.handleToggleTime,
|
25301
25306
|
"onPick-clear": this.handlePickClear,
|
25302
25307
|
"onPick-success": this.handlePickSuccess
|
25303
|
-
},
|
25308
|
+
}, this.$slots) : ""]), this.hasShortcuts ? createVNode("div", {
|
25304
25309
|
"class": "bk-picker-panel-sidebar"
|
25305
25310
|
}, [(_c = (_b = (_a = this.$slots).shortcuts) == null ? void 0 : _b.call(_a)) != null ? _c : null]) : null]);
|
25306
25311
|
}
|
@@ -26213,8 +26218,8 @@ var Component$a = defineComponent({
|
|
26213
26218
|
const emitChange = (type) => {
|
26214
26219
|
nextTick(() => {
|
26215
26220
|
var _a;
|
26216
|
-
emit("change", publicStringValue.value, type);
|
26217
26221
|
emit("update:modelValue", publicVModelValue.value);
|
26222
|
+
emit("change", publicStringValue.value, type);
|
26218
26223
|
if (props2.type.indexOf("time") < 0) {
|
26219
26224
|
(_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.blur();
|
26220
26225
|
}
|
@@ -26766,8 +26771,8 @@ var TimePicker = defineComponent({
|
|
26766
26771
|
const emitChange = (type) => {
|
26767
26772
|
nextTick(() => {
|
26768
26773
|
var _a;
|
26769
|
-
emit("change", publicStringValue.value, type);
|
26770
26774
|
emit("update:modelValue", publicVModelValue.value);
|
26775
|
+
emit("change", publicStringValue.value, type);
|
26771
26776
|
if (props2.type.indexOf("time") < 0) {
|
26772
26777
|
(_a = inputRef == null ? void 0 : inputRef.value) == null ? void 0 : _a.blur();
|
26773
26778
|
}
|
@@ -28811,7 +28816,7 @@ const getRuleMessage = (rule) => {
|
|
28811
28816
|
};
|
28812
28817
|
var defaultValidator = {
|
28813
28818
|
required: (value) => {
|
28814
|
-
if (typeof value === "number") {
|
28819
|
+
if (typeof value === "number" || typeof value === "boolean" || _$1.isDate(value)) {
|
28815
28820
|
return true;
|
28816
28821
|
}
|
28817
28822
|
return !_$1.isEmpty(value);
|
@@ -36987,8 +36992,8 @@ var Component$1 = defineComponent({
|
|
36987
36992
|
const handleColorStr = handleColorObj.rgba.a === 1 ? handleColorObj.hex : toRGBAString(handleColorObj.rgba);
|
36988
36993
|
colorStr.value = handleColorStr;
|
36989
36994
|
Object.assign(colorObj, handleColorObj);
|
36990
|
-
emit("change", handleColorStr);
|
36991
36995
|
emit("update:modelValue", colorStr.value);
|
36996
|
+
emit("change", handleColorStr);
|
36992
36997
|
};
|
36993
36998
|
const hideDropDown = () => {
|
36994
36999
|
showDropdown.value = false;
|