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/checkbox/index.es.js
CHANGED
|
@@ -64,8 +64,7 @@ const commonProps = {
|
|
|
64
64
|
default: void 0
|
|
65
65
|
},
|
|
66
66
|
size: {
|
|
67
|
-
type: String
|
|
68
|
-
default: "md"
|
|
67
|
+
type: String
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
70
|
const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -7895,7 +7894,7 @@ function useCheckbox(props, ctx) {
|
|
|
7895
7894
|
$event.stopPropagation();
|
|
7896
7895
|
canChange(!isChecked.value, props.label).then((res) => res && toggle());
|
|
7897
7896
|
};
|
|
7898
|
-
const size = computed(() => (
|
|
7897
|
+
const size = computed(() => props.size || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || (formContext == null ? void 0 : formContext.size) || "md");
|
|
7899
7898
|
const border = computed(() => {
|
|
7900
7899
|
var _a;
|
|
7901
7900
|
return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.border.value) != null ? _a : props.border;
|
|
@@ -7917,6 +7916,7 @@ function useCheckbox(props, ctx) {
|
|
|
7917
7916
|
};
|
|
7918
7917
|
}
|
|
7919
7918
|
function useCheckboxGroup(props, ctx) {
|
|
7919
|
+
const formContext = inject(FORM_TOKEN, void 0);
|
|
7920
7920
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
7921
7921
|
const valList = toRef(props, "modelValue");
|
|
7922
7922
|
const defaultOpt = {
|
|
@@ -7960,6 +7960,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
7960
7960
|
watch(() => props.modelValue, () => {
|
|
7961
7961
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
|
|
7962
7962
|
}, { deep: true });
|
|
7963
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
7963
7964
|
provide(checkboxGroupInjectionKey, {
|
|
7964
7965
|
disabled: toRef(props, "disabled"),
|
|
7965
7966
|
isShowTitle: toRef(props, "isShowTitle"),
|
|
@@ -7970,7 +7971,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
7970
7971
|
toggleGroupVal,
|
|
7971
7972
|
itemWidth: toRef(props, "itemWidth"),
|
|
7972
7973
|
direction: toRef(props, "direction"),
|
|
7973
|
-
size:
|
|
7974
|
+
size: checkboxGroupSize,
|
|
7974
7975
|
border: toRef(props, "border"),
|
|
7975
7976
|
max: toRef(props, "max"),
|
|
7976
7977
|
modelValue: toRef(props, "modelValue"),
|
|
@@ -8036,7 +8037,7 @@ var Checkbox = defineComponent({
|
|
|
8036
8037
|
[ns2.m("no-animation")]: !mergedShowAnimation.value
|
|
8037
8038
|
};
|
|
8038
8039
|
const labelCls = {
|
|
8039
|
-
[ns2.m(size.value)]:
|
|
8040
|
+
[ns2.m(size.value)]: size.value,
|
|
8040
8041
|
[ns2.m("bordered")]: border.value
|
|
8041
8042
|
};
|
|
8042
8043
|
const stopPropagation = ($event) => $event.stopPropagation();
|