@juit/vue-z 0.0.16 → 0.0.17

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/dist/index.d.ts CHANGED
@@ -850,7 +850,7 @@ options: {
850
850
  type: PropType<Record<string, string> | {
851
851
  value: string;
852
852
  label: string;
853
- }[]>;
853
+ }[] | string[]>;
854
854
  required: true;
855
855
  };
856
856
  /** The label for this input text */
@@ -939,7 +939,7 @@ options: {
939
939
  type: PropType<Record<string, string> | {
940
940
  value: string;
941
941
  label: string;
942
- }[]>;
942
+ }[] | string[]>;
943
943
  required: true;
944
944
  };
945
945
  /** The label for this input text */
package/dist/index.js CHANGED
@@ -2597,7 +2597,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2597
2597
  })
2598
2598
  });
2599
2599
  const _options = computed(() => {
2600
- if (Array.isArray(_props.options)) return _props.options;
2600
+ if (Array.isArray(_props.options)) {
2601
+ return _props.options.map((value) => typeof value === "string" ? { label: value, value } : value);
2602
+ }
2601
2603
  return Object.entries(_props.options).map(([value, label]) => ({ value, label })).sort((a, b) => a.label.localeCompare(b.label));
2602
2604
  });
2603
2605
  const _rules = computed(() => {