qidian-vue-ui 1.1.6 → 1.1.8

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-XpacV6TK.js")),
12778
- "en-US": () => Promise.resolve().then(() => require("./en-US-Px1PHQVa.js"))
12777
+ "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-DDJbkEBG.js")),
12778
+ "en-US": () => Promise.resolve().then(() => require("./en-US-BMj7fOeo.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 }) {
@@ -14051,7 +14052,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
14051
14052
  currentContext
14052
14053
  );
14053
14054
  componentProps2[key] = result.value;
14054
- } else if (typeof value === "function" && key.startsWith("on")) {
14055
+ } else if (props.fnInjectCtx && typeof value === "function" && key.startsWith("on")) {
14055
14056
  componentProps2[key] = (...args) => {
14056
14057
  return value(currentContext.value, ...args);
14057
14058
  };
@@ -17233,6 +17234,10 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
17233
17234
  wrapper.onOpened?.();
17234
17235
  Object.assign(expose, formRef.value);
17235
17236
  },
17237
+ onClose: (context) => {
17238
+ wrapper.onClose?.(context);
17239
+ formRef.value?.reset();
17240
+ },
17236
17241
  confirmLoading: reConfirmLoading,
17237
17242
  closeOnEscKeydown: loading || reConfirmLoading ? false : wrapper.closeOnEscKeydown,
17238
17243
  closeOnOverlayClick: loading || reConfirmLoading ? false : wrapper.closeOnOverlayClick,
@@ -19075,6 +19080,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
19075
19080
  }, [getActionSeparator(item, {
19076
19081
  index: index2
19077
19082
  }) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1)) : vue.createCommentVNode("", true), vue.withDirectives(vue.createVNode(vue.unref(_sfc_main$j), {
19083
+ "fn-inject-ctx": "",
19078
19084
  context: getConfigRendererCtx(item),
19079
19085
  config: {
19080
19086
  is: vue.unref(tdesignVueNext.Button),
@@ -19186,6 +19192,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
19186
19192
  layout: "vertical"
19187
19193
  })) : vue.createCommentVNode("", true), vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$j), {
19188
19194
  key: `${slotProps.colIndex}.${slotProps.rowIndex}.${index2}.renderer`,
19195
+ "fn-inject-ctx": "",
19189
19196
  context: getConfigRendererCtx(item, slotProps),
19190
19197
  config: {
19191
19198
  is: vue.unref(tdesignVueNext.Link),
@@ -19225,7 +19232,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
19225
19232
  };
19226
19233
  }
19227
19234
  });
19228
- const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-99ff6f87"]]);
19235
+ const table = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-fc26ed53"]]);
19229
19236
  const _hoisted_1$3 = {
19230
19237
  key: 0,
19231
19238
  class: "qd-crud-list__header"
@@ -28424,7 +28431,7 @@ class NodeFilterFactory extends BaseFilterFactory {
28424
28431
  }
28425
28432
  class NodeCanvasFactory extends BaseCanvasFactory {
28426
28433
  _createCanvas(width, height) {
28427
- 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-C04tKvtW.js", document.baseURI).href);
28434
+ 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-DERmcLRl.js", document.baseURI).href);
28428
28435
  const canvas = require$1("@napi-rs/canvas");
28429
28436
  return canvas.createCanvas(width, height);
28430
28437
  }
@@ -55777,4 +55784,4 @@ exports.useDictDynamic = useDictDynamic;
55777
55784
  exports.useDisabled = useDisabled;
55778
55785
  exports.useModal = useModal;
55779
55786
  exports.useReadonly = useReadonly;
55780
- //# sourceMappingURL=index-C04tKvtW.js.map
55787
+ //# sourceMappingURL=index-DERmcLRl.js.map