vue-devui 1.3.3 → 1.3.4-alpha.1
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/tree/index.es.js
CHANGED
|
@@ -7662,8 +7662,7 @@ const commonProps = {
|
|
|
7662
7662
|
default: void 0
|
|
7663
7663
|
},
|
|
7664
7664
|
size: {
|
|
7665
|
-
type: String
|
|
7666
|
-
default: "md"
|
|
7665
|
+
type: String
|
|
7667
7666
|
}
|
|
7668
7667
|
};
|
|
7669
7668
|
const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -10039,7 +10038,7 @@ function useCheckbox(props, ctx) {
|
|
|
10039
10038
|
$event.stopPropagation();
|
|
10040
10039
|
canChange(!isChecked.value, props.label).then((res) => res && toggle());
|
|
10041
10040
|
};
|
|
10042
|
-
const size = computed(() => (
|
|
10041
|
+
const size = computed(() => props.size || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || (formContext == null ? void 0 : formContext.size) || "md");
|
|
10043
10042
|
const border = computed(() => {
|
|
10044
10043
|
var _a;
|
|
10045
10044
|
return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.border.value) != null ? _a : props.border;
|
|
@@ -10061,6 +10060,7 @@ function useCheckbox(props, ctx) {
|
|
|
10061
10060
|
};
|
|
10062
10061
|
}
|
|
10063
10062
|
function useCheckboxGroup(props, ctx) {
|
|
10063
|
+
const formContext = inject(FORM_TOKEN, void 0);
|
|
10064
10064
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
10065
10065
|
const valList = toRef(props, "modelValue");
|
|
10066
10066
|
const defaultOpt = {
|
|
@@ -10104,6 +10104,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
10104
10104
|
watch(() => props.modelValue, () => {
|
|
10105
10105
|
formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
|
|
10106
10106
|
}, { deep: true });
|
|
10107
|
+
const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
|
|
10107
10108
|
provide(checkboxGroupInjectionKey, {
|
|
10108
10109
|
disabled: toRef(props, "disabled"),
|
|
10109
10110
|
isShowTitle: toRef(props, "isShowTitle"),
|
|
@@ -10114,7 +10115,7 @@ function useCheckboxGroup(props, ctx) {
|
|
|
10114
10115
|
toggleGroupVal,
|
|
10115
10116
|
itemWidth: toRef(props, "itemWidth"),
|
|
10116
10117
|
direction: toRef(props, "direction"),
|
|
10117
|
-
size:
|
|
10118
|
+
size: checkboxGroupSize,
|
|
10118
10119
|
border: toRef(props, "border"),
|
|
10119
10120
|
max: toRef(props, "max"),
|
|
10120
10121
|
modelValue: toRef(props, "modelValue"),
|
|
@@ -10180,7 +10181,7 @@ var Checkbox = defineComponent({
|
|
|
10180
10181
|
[ns2.m("no-animation")]: !mergedShowAnimation.value
|
|
10181
10182
|
};
|
|
10182
10183
|
const labelCls = {
|
|
10183
|
-
[ns2.m(size.value)]:
|
|
10184
|
+
[ns2.m(size.value)]: size.value,
|
|
10184
10185
|
[ns2.m("bordered")]: border.value
|
|
10185
10186
|
};
|
|
10186
10187
|
const stopPropagation = ($event) => $event.stopPropagation();
|