qidian-vue-ui 1.0.88 → 1.0.89

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.
@@ -12741,9 +12741,12 @@ const QdConfigProvider = vue.defineComponent({
12741
12741
  ...props.globalConfig
12742
12742
  };
12743
12743
  });
12744
- vue.provide(PROVIDE_USER, props.user);
12745
- vue.provide(PROVIDE_DICT, props.dict);
12746
- vue.provide(PROVIDE_UPLOAD, props.upload);
12744
+ const user = vue.computed(() => props.user);
12745
+ const dict = vue.computed(() => props.dict);
12746
+ const upload = vue.computed(() => props.upload);
12747
+ vue.provide(PROVIDE_USER, user);
12748
+ vue.provide(PROVIDE_DICT, dict);
12749
+ vue.provide(PROVIDE_UPLOAD, upload);
12747
12750
  vue.provide(PROVIDE_GLOBAL_CONFIG, mergedGlobalConfig);
12748
12751
  vue.watch(
12749
12752
  () => [props.user, props.dict, props.agentChat],
@@ -12759,8 +12762,8 @@ const QdConfigProvider = vue.defineComponent({
12759
12762
  vue.watchEffect(async () => {
12760
12763
  const localeMap = {
12761
12764
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12762
- "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-CoMdJzvj.js")),
12763
- "en-US": () => Promise.resolve().then(() => require("./en-US-BbEMmlGf.js"))
12765
+ "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-CpEagq9x.js")),
12766
+ "en-US": () => Promise.resolve().then(() => require("./en-US-DnuIFYoC.js"))
12764
12767
  };
12765
12768
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12766
12769
  const [err, res] = await to(
@@ -12769,13 +12772,7 @@ const QdConfigProvider = vue.defineComponent({
12769
12772
  if (err) return;
12770
12773
  qdGlobalConfig.value = res.default;
12771
12774
  });
12772
- return () => vue.h(
12773
- tdesignVueNext.ConfigProvider,
12774
- {
12775
- globalConfig: mergedGlobalConfig.value
12776
- },
12777
- slots.default
12778
- );
12775
+ return () => vue.h(tdesignVueNext.ConfigProvider, { globalConfig: mergedGlobalConfig.value }, slots.default);
12779
12776
  }
12780
12777
  });
12781
12778
  const watchHandleMap = /* @__PURE__ */ new Map();
@@ -28270,7 +28267,7 @@ class NodeFilterFactory extends BaseFilterFactory {
28270
28267
  }
28271
28268
  class NodeCanvasFactory extends BaseCanvasFactory {
28272
28269
  _createCanvas(width, height) {
28273
- const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-YsJcyYUi.js", document.baseURI).href);
28270
+ const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-DZxi0PUr.js", document.baseURI).href);
28274
28271
  const canvas = require$1("@napi-rs/canvas");
28275
28272
  return canvas.createCanvas(width, height);
28276
28273
  }
@@ -54908,7 +54905,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
54908
54905
  const { timer: uploadTimer, clearTimer: clearUploadTimer } = useTimer("interval");
54909
54906
  const delList = vue.ref([]);
54910
54907
  const popupFileList = vue.computed(() => [...fileList.value]);
54911
- const globalUploadProps = vue.inject(PROVIDE_UPLOAD, void 0);
54908
+ const globalUploadProps = vue.inject(
54909
+ PROVIDE_UPLOAD,
54910
+ vue.computed(() => void 0)
54911
+ );
54912
54912
  const reProps = vue.computed(() => {
54913
54913
  const {
54914
54914
  modelValue: modelValue2,
@@ -55019,8 +55019,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
55019
55019
  draggable: onlyView ? false : draggable,
55020
55020
  ...uploadOptions
55021
55021
  };
55022
- if (globalUploadProps) {
55023
- Object.entries(globalUploadProps).forEach(([key, value]) => {
55022
+ const globalUploadPropsV = globalUploadProps.value;
55023
+ if (globalUploadPropsV) {
55024
+ Object.entries(globalUploadPropsV).forEach(([key, value]) => {
55024
55025
  if (isEmpty(value)) return;
55025
55026
  reUploadOptions[key] = value;
55026
55027
  });
@@ -55033,14 +55034,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
55033
55034
  handlePopupRemove,
55034
55035
  onlyView,
55035
55036
  listOssByIds: {
55036
- ...globalUploadProps?.listOssByIds,
55037
+ ...globalUploadPropsV?.listOssByIds,
55037
55038
  ...listOssByIds
55038
55039
  },
55039
55040
  listOssByUrls: {
55040
- ...globalUploadProps?.listOssByUrls,
55041
+ ...globalUploadPropsV?.listOssByUrls,
55041
55042
  ...listOssByUrls
55042
55043
  },
55043
- del: { ...globalUploadProps?.del, ...del },
55044
+ del: { ...globalUploadPropsV?.del, ...del },
55044
55045
  uploadOptions: reUploadOptions,
55045
55046
  models: {
55046
55047
  modelValue: modelValue2,
@@ -55291,7 +55292,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
55291
55292
  };
55292
55293
  }
55293
55294
  });
55294
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91a0c8d5"]]);
55295
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-14a99db6"]]);
55295
55296
  exports.PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE;
55296
55297
  exports.PROVIDE_GRID_ITEM_PROPS_KEY = PROVIDE_GRID_ITEM_PROPS_KEY;
55297
55298
  exports.PROVIDE_GRID_WIDTH_KEY = PROVIDE_GRID_WIDTH_KEY;
@@ -55341,4 +55342,4 @@ exports.useDictDynamic = useDictDynamic;
55341
55342
  exports.useDisabled = useDisabled;
55342
55343
  exports.useModal = useModal;
55343
55344
  exports.useReadonly = useReadonly;
55344
- //# sourceMappingURL=index-YsJcyYUi.js.map
55345
+ //# sourceMappingURL=index-DZxi0PUr.js.map