vue-devui 1.3.3-alpha.5 → 1.3.4-alpha.0
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/checkbox/index.es.js +6 -5
- package/checkbox/index.umd.js +7 -7
- package/notification/index.es.js +2 -2
- package/notification/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +8 -7
- package/pagination/index.umd.js +4 -4
- package/radio/index.es.js +6 -5
- package/radio/index.umd.js +4 -4
- package/select/index.es.js +8 -7
- package/select/index.umd.js +12 -12
- package/style.css +1 -1
- package/switch/index.es.js +14 -10
- package/switch/index.umd.js +2 -2
- package/switch/style.css +1 -1
- package/table/index.es.js +6 -5
- package/table/index.umd.js +9 -9
- package/time-select/index.es.js +8 -7
- package/time-select/index.umd.js +11 -11
- package/tree/index.es.js +6 -5
- package/tree/index.umd.js +4 -4
- package/types/checkbox/src/checkbox-button.d.ts +0 -3
- package/types/checkbox/src/checkbox-group.d.ts +0 -3
- package/types/checkbox/src/checkbox-types.d.ts +1 -3
- package/types/checkbox/src/checkbox.d.ts +0 -3
- package/types/color-picker/src/components/color-picker-panel/color-picker-panel.d.ts +2 -2
- package/types/color-picker/src/utils/{composeable.d.ts → composable.d.ts} +0 -0
- package/types/radio/src/radio-button.d.ts +0 -3
- package/types/radio/src/radio-group.d.ts +0 -3
- package/types/radio/src/radio-types.d.ts +0 -2
- package/types/radio/src/radio.d.ts +0 -3
- package/types/select/src/select-types.d.ts +1 -1
- package/types/select/src/select.d.ts +2 -2
- package/types/shared/hooks/use-namespace.d.ts +0 -1
- package/types/switch/src/switch-types.d.ts +0 -1
- package/types/switch/src/switch.d.ts +0 -3
- package/upload/index.es.js +2 -2
- package/upload/index.umd.js +1 -1
- package/vue-devui.es.js +88 -81
- package/vue-devui.umd.js +12 -12
package/select/index.es.js
CHANGED
|
@@ -7748,7 +7748,7 @@ function useSelect(props, selectRef, ctx, focus, blur, isSelectFocus, t) {
|
|
|
7748
7748
|
const ns2 = useNamespace("select");
|
|
7749
7749
|
const dropdownRef = ref();
|
|
7750
7750
|
const selectDisabled = computed(() => (formContext == null ? void 0 : formContext.disabled) || props.disabled);
|
|
7751
|
-
const selectSize = computed(() => (formContext == null ? void 0 : formContext.size) ||
|
|
7751
|
+
const selectSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
|
|
7752
7752
|
const isObjectOption = ref(false);
|
|
7753
7753
|
const originRef = ref();
|
|
7754
7754
|
const isOpen = ref(false);
|
|
@@ -8064,7 +8064,7 @@ const selectProps = {
|
|
|
8064
8064
|
},
|
|
8065
8065
|
size: {
|
|
8066
8066
|
type: String,
|
|
8067
|
-
default: "
|
|
8067
|
+
default: ""
|
|
8068
8068
|
},
|
|
8069
8069
|
overview: {
|
|
8070
8070
|
type: String,
|
|
@@ -8201,8 +8201,7 @@ const commonProps = {
|
|
|
8201
8201
|
default: void 0
|
|
8202
8202
|
},
|
|
8203
8203
|
size: {
|
|
8204
|
-
type: String
|
|
8205
|
-
default: "md"
|
|
8204
|
+
type: String
|
|
8206
8205
|
}
|
|
8207
8206
|
};
|
|
8208
8207
|
const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -8331,7 +8330,7 @@ function useCheckbox(props, ctx) {
|
|
|
8331
8330
|
$event.stopPropagation();
|
|
8332
8331
|
canChange(!isChecked.value, props.label).then((res) => res && toggle());
|
|
8333
8332
|
};
|
|
8334
|
-
const size = computed(() => (
|
|
8333
|
+
const size = computed(() => props.size || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || (formContext == null ? void 0 : formContext.size) || "md");
|
|
8335
8334
|
const border = computed(() => {
|
|
8336
8335
|
var _a;
|
|
8337
8336
|
return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.border.value) != null ? _a : props.border;
|
|
@@ -8353,6 +8352,7 @@ function useCheckbox(props, ctx) {
|
|
|
8353
8352
|
};
|
|
8354
8353
|
}
|
|
8355
8354
|
function useCheckboxGroup(props, ctx) {
|
|
8355
|
+
const formContext = inject(FORM_TOKEN, void 0);
|
|
8356
8356
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
8357
8357
|
const valList = toRef(props, "modelValue");
|
|
8358
8358
|
const defaultOpt = {
|
|
@@ -8396,6 +8396,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
8396
8396
|
watch(() => props.modelValue, () => {
|
|
8397
8397
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
|
|
8398
8398
|
}, { deep: true });
|
|
8399
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
8399
8400
|
provide(checkboxGroupInjectionKey, {
|
|
8400
8401
|
disabled: toRef(props, "disabled"),
|
|
8401
8402
|
isShowTitle: toRef(props, "isShowTitle"),
|
|
@@ -8406,7 +8407,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
8406
8407
|
toggleGroupVal,
|
|
8407
8408
|
itemWidth: toRef(props, "itemWidth"),
|
|
8408
8409
|
direction: toRef(props, "direction"),
|
|
8409
|
-
size:
|
|
8410
|
+
size: checkboxGroupSize,
|
|
8410
8411
|
border: toRef(props, "border"),
|
|
8411
8412
|
max: toRef(props, "max"),
|
|
8412
8413
|
modelValue: toRef(props, "modelValue"),
|
|
@@ -8472,7 +8473,7 @@ var Checkbox = defineComponent({
|
|
|
8472
8473
|
[ns2.m("no-animation")]: !mergedShowAnimation.value
|
|
8473
8474
|
};
|
|
8474
8475
|
const labelCls = {
|
|
8475
|
-
[ns2.m(size.value)]:
|
|
8476
|
+
[ns2.m(size.value)]: size.value,
|
|
8476
8477
|
[ns2.m("bordered")]: border.value
|
|
8477
8478
|
};
|
|
8478
8479
|
const stopPropagation = ($event) => $event.stopPropagation();
|