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
@@ -7917,7 +7917,7 @@ function useSelect(props, selectRef, ctx, focus, blur, isSelectFocus, t) {
7917
7917
  const ns2 = useNamespace("select");
7918
7918
  const dropdownRef = ref();
7919
7919
  const selectDisabled = computed(() => (formContext == null ? void 0 : formContext.disabled) || props.disabled);
7920
- const selectSize = computed(() => (formContext == null ? void 0 : formContext.size) || props.size);
7920
+ const selectSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "md");
7921
7921
  const isObjectOption = ref(false);
7922
7922
  const originRef = ref();
7923
7923
  const isOpen = ref(false);
@@ -8233,7 +8233,7 @@ const selectProps = {
8233
8233
  },
8234
8234
  size: {
8235
8235
  type: String,
8236
- default: "md"
8236
+ default: ""
8237
8237
  },
8238
8238
  overview: {
8239
8239
  type: String,
@@ -8370,8 +8370,7 @@ const commonProps = {
8370
8370
  default: void 0
8371
8371
  },
8372
8372
  size: {
8373
- type: String,
8374
- default: "md"
8373
+ type: String
8375
8374
  }
8376
8375
  };
8377
8376
  const checkboxProps = __spreadProps(__spreadValues({}, commonProps), {
@@ -8500,7 +8499,7 @@ function useCheckbox(props, ctx) {
8500
8499
  $event.stopPropagation();
8501
8500
  canChange(!isChecked.value, props.label).then((res) => res && toggle());
8502
8501
  };
8503
- const size = computed(() => (formContext == null ? void 0 : formContext.size) || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || props.size);
8502
+ const size = computed(() => props.size || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || (formContext == null ? void 0 : formContext.size) || "md");
8504
8503
  const border = computed(() => {
8505
8504
  var _a;
8506
8505
  return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.border.value) != null ? _a : props.border;
@@ -8522,6 +8521,7 @@ function useCheckbox(props, ctx) {
8522
8521
  };
8523
8522
  }
8524
8523
  function useCheckboxGroup(props, ctx) {
8524
+ const formContext = inject(FORM_TOKEN, void 0);
8525
8525
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
8526
8526
  const valList = toRef(props, "modelValue");
8527
8527
  const defaultOpt = {
@@ -8565,6 +8565,7 @@ function useCheckboxGroup(props, ctx) {
8565
8565
  watch(() => props.modelValue, () => {
8566
8566
  formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
8567
8567
  }, { deep: true });
8568
+ const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
8568
8569
  provide(checkboxGroupInjectionKey, {
8569
8570
  disabled: toRef(props, "disabled"),
8570
8571
  isShowTitle: toRef(props, "isShowTitle"),
@@ -8575,7 +8576,7 @@ function useCheckboxGroup(props, ctx) {
8575
8576
  toggleGroupVal,
8576
8577
  itemWidth: toRef(props, "itemWidth"),
8577
8578
  direction: toRef(props, "direction"),
8578
- size: toRef(props, "size"),
8579
+ size: checkboxGroupSize,
8579
8580
  border: toRef(props, "border"),
8580
8581
  max: toRef(props, "max"),
8581
8582
  modelValue: toRef(props, "modelValue"),
@@ -8641,7 +8642,7 @@ var Checkbox = defineComponent({
8641
8642
  [ns2.m("no-animation")]: !mergedShowAnimation.value
8642
8643
  };
8643
8644
  const labelCls = {
8644
- [ns2.m(size.value)]: border.value,
8645
+ [ns2.m(size.value)]: size.value,
8645
8646
  [ns2.m("bordered")]: border.value
8646
8647
  };
8647
8648
  const stopPropagation = ($event) => $event.stopPropagation();