qidian-vue-ui 1.1.5 → 1.1.7

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.
@@ -12774,8 +12774,8 @@ const QdConfigProvider = vue.defineComponent({
12774
12774
  vue.watchEffect(async () => {
12775
12775
  const localeMap = {
12776
12776
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12777
- "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-U2_ebcB2.js")),
12778
- "en-US": () => Promise.resolve().then(() => require("./en-US-DXE73Bpb.js"))
12777
+ "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-CPCj26uh.js")),
12778
+ "en-US": () => Promise.resolve().then(() => require("./en-US-DXG9LD9M.js"))
12779
12779
  };
12780
12780
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12781
12781
  const [err, res] = await to(
@@ -13979,7 +13979,8 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
13979
13979
  __name: "index",
13980
13980
  props: {
13981
13981
  config: {},
13982
- context: {}
13982
+ context: {},
13983
+ fnInjectCtx: { type: Boolean }
13983
13984
  },
13984
13985
  emits: ["vIfChange"],
13985
13986
  setup(__props, { emit: __emit }) {
@@ -13998,26 +13999,10 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
13998
13999
  }
13999
14000
  return vIf;
14000
14001
  });
14001
- const vShowValue = vue.computed(() => {
14002
- const vShow = props.config.vShow;
14003
- if (vShow === void 0) return true;
14004
- if (vShow?.__qdCompute || vShow?.__qdAsyncCompute) {
14005
- const { result } = qdUseComputeValue(
14006
- vShow,
14007
- currentContext
14008
- );
14009
- return result.value;
14010
- }
14011
- return vShow;
14012
- });
14013
14002
  const shouldRender = vue.computed(() => {
14014
14003
  const value = vIfValue.value;
14015
14004
  return value !== false && value !== null && value !== void 0;
14016
14005
  });
14017
- const shouldShow = vue.computed(() => {
14018
- const value = vShowValue.value;
14019
- return value !== false && value !== null && value !== void 0;
14020
- });
14021
14006
  const resolvedComponent = vue.computed(() => {
14022
14007
  const { is, render } = props.config;
14023
14008
  if (render) {
@@ -14054,7 +14039,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
14054
14039
  }
14055
14040
  });
14056
14041
  Object.entries(config).forEach(([key, value]) => {
14057
- if (["is", "context", "slots", "vIf", "vShow"].includes(key)) return;
14042
+ if (["is", "context", "slots", "vIf"].includes(key)) return;
14058
14043
  if (key.startsWith("vModel")) return;
14059
14044
  if (key.startsWith("default")) {
14060
14045
  const propName = key.slice(7);
@@ -14067,7 +14052,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
14067
14052
  currentContext
14068
14053
  );
14069
14054
  componentProps2[key] = result.value;
14070
- } else if (typeof value === "function" && key.startsWith("on")) {
14055
+ } else if (props.fnInjectCtx && typeof value === "function" && key.startsWith("on")) {
14071
14056
  componentProps2[key] = (...args) => {
14072
14057
  return value(currentContext.value, ...args);
14073
14058
  };
@@ -14077,12 +14062,16 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
14077
14062
  });
14078
14063
  return componentProps2;
14079
14064
  });
14080
- vue.watch(shouldRender, (newV, oldV) => {
14081
- if (newV === oldV) return;
14082
- emit("vIfChange", newV);
14083
- }, { immediate: true });
14065
+ vue.watch(
14066
+ shouldRender,
14067
+ (newV, oldV) => {
14068
+ if (newV === oldV) return;
14069
+ emit("vIfChange", newV);
14070
+ },
14071
+ { immediate: true }
14072
+ );
14084
14073
  return (_ctx, _cache) => {
14085
- return shouldRender.value ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(resolvedComponent.value), vue.normalizeProps(vue.mergeProps({ key: 0 }, componentProps.value)), vue.createSlots({ _: 2 }, [
14074
+ return shouldRender.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(resolvedComponent.value), vue.normalizeProps(vue.mergeProps({ key: 0 }, componentProps.value)), vue.createSlots({ _: 2 }, [
14086
14075
  vue.renderList(__props.config.slots, (slotConfig, slotName) => {
14087
14076
  return {
14088
14077
  name: slotName,
@@ -14095,9 +14084,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
14095
14084
  ])
14096
14085
  };
14097
14086
  })
14098
- ]), 1040)), [
14099
- [vue.vShow, shouldShow.value]
14100
- ]) : vue.createCommentVNode("", true);
14087
+ ]), 1040)) : vue.createCommentVNode("", true);
14101
14088
  };
14102
14089
  }
14103
14090
  });
@@ -19089,6 +19076,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
19089
19076
  }, [getActionSeparator(item, {
19090
19077
  index: index2
19091
19078
  }) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1)) : vue.createCommentVNode("", true), vue.withDirectives(vue.createVNode(vue.unref(_sfc_main$j), {
19079
+ "fn-inject-ctx": "",
19092
19080
  context: getConfigRendererCtx(item),
19093
19081
  config: {
19094
19082
  is: vue.unref(tdesignVueNext.Button),
@@ -19200,6 +19188,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
19200
19188
  layout: "vertical"
19201
19189
  })) : vue.createCommentVNode("", true), vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$j), {
19202
19190
  key: `${slotProps.colIndex}.${slotProps.rowIndex}.${index2}.renderer`,
19191
+ "fn-inject-ctx": "",
19203
19192
  context: getConfigRendererCtx(item, slotProps),
19204
19193
  config: {
19205
19194
  is: vue.unref(tdesignVueNext.Link),
@@ -19239,7 +19228,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
19239
19228
  };
19240
19229
  }
19241
19230
  });
19242
- const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-99ff6f87"]]);
19231
+ const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-fc26ed53"]]);
19243
19232
  const _hoisted_1$3 = {
19244
19233
  key: 0,
19245
19234
  class: "qd-crud-list__header"
@@ -28438,7 +28427,7 @@ class NodeFilterFactory extends BaseFilterFactory {
28438
28427
  }
28439
28428
  class NodeCanvasFactory extends BaseCanvasFactory {
28440
28429
  _createCanvas(width, height) {
28441
- 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-DqYBn3_5.js", document.baseURI).href);
28430
+ 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-OO-422ST.js", document.baseURI).href);
28442
28431
  const canvas = require$1("@napi-rs/canvas");
28443
28432
  return canvas.createCanvas(width, height);
28444
28433
  }
@@ -55791,4 +55780,4 @@ exports.useDictDynamic = useDictDynamic;
55791
55780
  exports.useDisabled = useDisabled;
55792
55781
  exports.useModal = useModal;
55793
55782
  exports.useReadonly = useReadonly;
55794
- //# sourceMappingURL=index-DqYBn3_5.js.map
55783
+ //# sourceMappingURL=index-OO-422ST.js.map