qidian-vue-ui 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.
@@ -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-CkcVMdfn.mjs"),
12807
- "en-US": () => import("./en-US-ChQ_hdMg.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;
@@ -55858,4 +55864,4 @@ export {
55858
55864
  _sfc_main$1 as y,
55859
55865
  _sfc_main$b as z
55860
55866
  };
55861
- //# sourceMappingURL=index-Dd5tbuJy.mjs.map
55867
+ //# sourceMappingURL=index-CVUolNBn.mjs.map