@weitutech/by-components-v3 1.1.15 → 1.1.16

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.
@@ -28482,7 +28482,8 @@ const _hoisted_6$3 = { class: "by_page-info" };
28482
28482
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
28483
28483
  __name: "index",
28484
28484
  props: {
28485
- value: { default: "" },
28485
+ modelValue: { default: "" },
28486
+ value: {},
28486
28487
  type: { default: "select" },
28487
28488
  options: { default: () => [] },
28488
28489
  loadOptions: { type: Function, default: void 0 },
@@ -28500,7 +28501,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
28500
28501
  suffixInputUnit: { default: "" },
28501
28502
  suffixInputOptions: { default: () => ({}) }
28502
28503
  },
28503
- emits: ["input", "update:suffixInputValue", "suffix-input-change"],
28504
+ emits: ["update:modelValue", "input", "update:suffixInputValue", "suffix-input-change"],
28504
28505
  setup(__props, { expose: __expose, emit: __emit }) {
28505
28506
  const props = __props;
28506
28507
  const emit = __emit;
@@ -28632,13 +28633,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
28632
28633
  const initData = () => {
28633
28634
  dataList.value = [...localOptions.value];
28634
28635
  buildLatterList();
28635
- if (props.multiple && Array.isArray(props.value)) {
28636
- checkAll.value = props.value.length <= 0;
28636
+ if (props.multiple && Array.isArray(props.modelValue)) {
28637
+ checkAll.value = props.modelValue.length <= 0;
28637
28638
  } else {
28638
- checkAll.value = !props.value;
28639
+ checkAll.value = !props.modelValue;
28639
28640
  }
28640
- if (props.value) {
28641
- selectedValue.value = props.value;
28641
+ if (props.modelValue) {
28642
+ selectedValue.value = props.modelValue;
28642
28643
  } else {
28643
28644
  selectedValue.value = props.multiple ? [] : "";
28644
28645
  }
@@ -28791,6 +28792,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
28791
28792
  search();
28792
28793
  };
28793
28794
  const emitChange = (value) => {
28795
+ emit("update:modelValue", value);
28794
28796
  emit("input", value);
28795
28797
  };
28796
28798
  const handleSuffixInputChange = (value) => {
@@ -28799,7 +28801,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
28799
28801
  emit("update:suffixInputValue", value);
28800
28802
  };
28801
28803
  watch(
28802
- () => props.value,
28804
+ () => props.modelValue,
28803
28805
  (value) => {
28804
28806
  selectedValue.value = value;
28805
28807
  if (props.multiple) {