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.
Files changed (40) hide show
  1. package/checkbox/index.es.js +6 -5
  2. package/checkbox/index.umd.js +7 -7
  3. package/notification/index.es.js +2 -2
  4. package/notification/index.umd.js +1 -1
  5. package/package.json +1 -1
  6. package/pagination/index.es.js +8 -7
  7. package/pagination/index.umd.js +4 -4
  8. package/radio/index.es.js +6 -5
  9. package/radio/index.umd.js +4 -4
  10. package/select/index.es.js +8 -7
  11. package/select/index.umd.js +12 -12
  12. package/style.css +1 -1
  13. package/switch/index.es.js +14 -10
  14. package/switch/index.umd.js +2 -2
  15. package/switch/style.css +1 -1
  16. package/table/index.es.js +6 -5
  17. package/table/index.umd.js +9 -9
  18. package/time-select/index.es.js +8 -7
  19. package/time-select/index.umd.js +11 -11
  20. package/tree/index.es.js +6 -5
  21. package/tree/index.umd.js +4 -4
  22. package/types/checkbox/src/checkbox-button.d.ts +0 -3
  23. package/types/checkbox/src/checkbox-group.d.ts +0 -3
  24. package/types/checkbox/src/checkbox-types.d.ts +1 -3
  25. package/types/checkbox/src/checkbox.d.ts +0 -3
  26. package/types/color-picker/src/components/color-picker-panel/color-picker-panel.d.ts +2 -2
  27. package/types/color-picker/src/utils/{composeable.d.ts → composable.d.ts} +0 -0
  28. package/types/radio/src/radio-button.d.ts +0 -3
  29. package/types/radio/src/radio-group.d.ts +0 -3
  30. package/types/radio/src/radio-types.d.ts +0 -2
  31. package/types/radio/src/radio.d.ts +0 -3
  32. package/types/select/src/select-types.d.ts +1 -1
  33. package/types/select/src/select.d.ts +2 -2
  34. package/types/shared/hooks/use-namespace.d.ts +0 -1
  35. package/types/switch/src/switch-types.d.ts +0 -1
  36. package/types/switch/src/switch.d.ts +0 -3
  37. package/upload/index.es.js +2 -2
  38. package/upload/index.umd.js +1 -1
  39. package/vue-devui.es.js +88 -81
  40. 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(() => (formContext == null ? void 0 : formContext.size) || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || props.size);
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: toRef(props, "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)]: border.value,
10184
+ [ns2.m(size.value)]: size.value,
10184
10185
  [ns2.m("bordered")]: border.value
10185
10186
  };
10186
10187
  const stopPropagation = ($event) => $event.stopPropagation();