qidian-vue-ui 1.1.14 → 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.
@@ -12803,8 +12803,8 @@ const QdConfigProvider = defineComponent({
12803
12803
  watchEffect(async () => {
12804
12804
  const localeMap = {
12805
12805
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12806
- "zh-TW": () => import("./zh-TW-Dsw4L9Gz.mjs"),
12807
- "en-US": () => import("./en-US-eJ0Nd4SB.mjs")
12806
+ "zh-TW": () => import("./zh-TW-D116IBq8.mjs"),
12807
+ "en-US": () => import("./en-US-DOV4CpBM.mjs")
12808
12808
  };
12809
12809
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12810
12810
  const [err, res] = await to(
@@ -14015,6 +14015,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14015
14015
  setup(__props, { emit: __emit }) {
14016
14016
  const props = __props;
14017
14017
  const emit = __emit;
14018
+ let initialized = false;
14018
14019
  const currentContext = computed(() => props.config.context || props.context || {});
14019
14020
  const reIfRender = computed(() => {
14020
14021
  const ifRender = props.config.ifRender;
@@ -14052,7 +14053,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14052
14053
  const propName = key.slice(6);
14053
14054
  const defaultKey = "default" + (key === "vModel" ? "ModelValue" : propName.charAt(0).toUpperCase() + key.slice(7));
14054
14055
  const defaultValue = config[defaultKey];
14055
- const vModelBinding = resolveVModelBinding(currentContext.value, value, defaultValue);
14056
+ const vModelBinding = resolveVModelBinding(
14057
+ currentContext.value,
14058
+ value,
14059
+ initialized ? void 0 : defaultValue
14060
+ );
14056
14061
  if (key === "vModel") {
14057
14062
  componentProps2.modelValue = vModelBinding.modelValue;
14058
14063
  componentProps2["onUpdate:modelValue"] = vModelBinding["onUpdate:modelValue"];
@@ -14063,6 +14068,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14063
14068
  }
14064
14069
  }
14065
14070
  });
14071
+ initialized = true;
14066
14072
  Object.entries(config).forEach(([key, value]) => {
14067
14073
  if (["is", "context", "slots", "ifRender"].includes(key)) return;
14068
14074
  if (key.startsWith("vModel")) return;
@@ -16627,9 +16633,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16627
16633
  const { multiple, keys: keys2 } = selectOptions2;
16628
16634
  const labelKey = keys2?.label || qdServiceSelectKeys.label;
16629
16635
  if (multiple) {
16630
- const selectedLabels = context.selectedOptions?.map(
16631
- (option) => option[labelKey]
16632
- ).filter(Boolean) || [];
16636
+ const selectedLabels = context.selectedOptions?.map((option) => option[labelKey]).filter(Boolean) || [];
16633
16637
  reValueLabel.value = selectedLabels;
16634
16638
  } else {
16635
16639
  reValueLabel.value = context.option?.[labelKey] || "";
@@ -16760,7 +16764,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16760
16764
  fillOptionsWatchStop = watch(
16761
16765
  () => reProps.value.fillOptions,
16762
16766
  (fillOpts) => {
16763
- if (fillOpts?.length) options.value = fillOpts;
16767
+ if (!fillOpts?.length) return;
16768
+ options.value = fillOpts;
16769
+ triggerServiceMerged = true;
16764
16770
  },
16765
16771
  { immediate: true, deep: true }
16766
16772
  );
@@ -16817,7 +16823,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16817
16823
  };
16818
16824
  }
16819
16825
  });
16820
- const QdServiceSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3096e760"]]);
16826
+ const QdServiceSelect = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b3729d31"]]);
16821
16827
  const qdDialogProps = {
16822
16828
  width: "min(960px, 100%)",
16823
16829
  theme: "default",
@@ -55167,7 +55173,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
55167
55173
  content: path,
55168
55174
  abbreviatedContent: path
55169
55175
  };
55170
- const abbreviatedContentSplit = res.abbreviatedContent.split("/");
55176
+ const abbreviatedContentSplit = res.abbreviatedContent?.split("/") || [];
55171
55177
  if (abbreviatedContentSplit.length > 2) {
55172
55178
  res.tooltipDisabled = false;
55173
55179
  res.abbreviatedContent = `${abbreviatedContentSplit[0]}/.../${abbreviatedContentSplit[abbreviatedContentSplit.length - 1]}`;
@@ -55858,4 +55864,4 @@ export {
55858
55864
  _sfc_main$1 as y,
55859
55865
  _sfc_main$b as z
55860
55866
  };
55861
- //# sourceMappingURL=index-CmNjNw2f.mjs.map
55867
+ //# sourceMappingURL=index-CVUolNBn.mjs.map