vue-devui 1.3.3 → 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/radio/index.es.js
CHANGED
|
@@ -49,8 +49,7 @@ const radioCommonProps = {
|
|
|
49
49
|
default: false
|
|
50
50
|
},
|
|
51
51
|
size: {
|
|
52
|
-
type: String
|
|
53
|
-
default: "md"
|
|
52
|
+
type: String
|
|
54
53
|
}
|
|
55
54
|
};
|
|
56
55
|
const radioProps = __spreadProps(__spreadValues({}, radioCommonProps), {
|
|
@@ -7833,7 +7832,7 @@ function useRadio(props, ctx) {
|
|
|
7833
7832
|
return (radioGroupConf == null ? void 0 : radioGroupConf.border.value) || props.border;
|
|
7834
7833
|
});
|
|
7835
7834
|
const size = computed(() => {
|
|
7836
|
-
return (
|
|
7835
|
+
return props.size || (radioGroupConf == null ? void 0 : radioGroupConf.size.value) || (formContext == null ? void 0 : formContext.size) || "md";
|
|
7837
7836
|
});
|
|
7838
7837
|
watch(() => props.modelValue, () => {
|
|
7839
7838
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
|
|
@@ -7848,6 +7847,7 @@ function useRadio(props, ctx) {
|
|
|
7848
7847
|
};
|
|
7849
7848
|
}
|
|
7850
7849
|
function useRadioGroup(props, ctx) {
|
|
7850
|
+
const formContext = inject(FORM_TOKEN, void 0);
|
|
7851
7851
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
7852
7852
|
const emitChange = (radioValue) => {
|
|
7853
7853
|
ctx.emit("update:modelValue", radioValue);
|
|
@@ -7856,12 +7856,13 @@ function useRadioGroup(props, ctx) {
|
|
|
7856
7856
|
watch(() => props.modelValue, () => {
|
|
7857
7857
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
|
|
7858
7858
|
});
|
|
7859
|
+
const radioGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
7859
7860
|
provide(radioGroupInjectionKey, {
|
|
7860
7861
|
modelValue: toRef(props, "modelValue"),
|
|
7861
7862
|
name: toRef(props, "name"),
|
|
7862
7863
|
disabled: toRef(props, "disabled"),
|
|
7863
7864
|
border: toRef(props, "border"),
|
|
7864
|
-
size:
|
|
7865
|
+
size: radioGroupSize,
|
|
7865
7866
|
beforeChange: props.beforeChange,
|
|
7866
7867
|
emitChange,
|
|
7867
7868
|
fill: toRef(props, "fill"),
|
|
@@ -7908,7 +7909,7 @@ var Radio = defineComponent({
|
|
|
7908
7909
|
disabled: isDisabled.value,
|
|
7909
7910
|
[ns2.b()]: true,
|
|
7910
7911
|
[ns2.m("bordered")]: border.value,
|
|
7911
|
-
[ns2.m(size.value)]:
|
|
7912
|
+
[ns2.m(size.value)]: size.value
|
|
7912
7913
|
};
|
|
7913
7914
|
return createVNode("div", {
|
|
7914
7915
|
"class": radioCls
|