qidian-vue-ui 1.0.92 → 1.0.94

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.
@@ -12760,8 +12760,8 @@ const QdConfigProvider = defineComponent({
12760
12760
  watchEffect(async () => {
12761
12761
  const localeMap = {
12762
12762
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12763
- "zh-TW": () => import("./zh-TW-CiABPzok.mjs"),
12764
- "en-US": () => import("./en-US-CsNKuhlB.mjs")
12763
+ "zh-TW": () => import("./zh-TW-D2a6nw90.mjs"),
12764
+ "en-US": () => import("./en-US-DUXzmHl2.mjs")
12765
12765
  };
12766
12766
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12767
12767
  const [err, res] = await to(
@@ -16964,7 +16964,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16964
16964
  const formRef = useTemplateRef("form");
16965
16965
  const submitShowErrorMessage = ref();
16966
16966
  const reProps = computed(() => {
16967
- const { grid, gutter, items, onSubmit, data: data2, scrollToFirstError, loading: externalLoad, ...formOptions } = props;
16967
+ const {
16968
+ grid,
16969
+ gutter,
16970
+ items,
16971
+ onSubmit,
16972
+ data: data2,
16973
+ scrollToFirstError,
16974
+ loading: externalLoad,
16975
+ ...formOptions
16976
+ } = props;
16968
16977
  return {
16969
16978
  externalLoad,
16970
16979
  formOptions: {
@@ -17262,7 +17271,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
17262
17271
  gutter: {},
17263
17272
  grid: {}
17264
17273
  }, qdCrudSearchProps),
17265
- emits: ["update:modelValue"],
17274
+ emits: ["update:data"],
17266
17275
  setup(__props, { expose: __expose, emit: __emit }) {
17267
17276
  const props = __props;
17268
17277
  const emit = __emit;
@@ -17281,29 +17290,38 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
17281
17290
  });
17282
17291
  __expose(expose);
17283
17292
  return (_ctx, _cache) => {
17284
- return openBlock(), createBlock(unref(_sfc_main$j), { class: "qd-crud-search" }, {
17293
+ return openBlock(), createBlock(unref(_sfc_main$j), { class: "qd-crud-search" }, createSlots({
17285
17294
  default: withCtx(() => [
17286
17295
  createVNode(unref(_sfc_main$a), mergeProps({
17287
17296
  ref: "form",
17288
17297
  data: unref(data),
17289
17298
  "onUpdate:data": _cache[0] || (_cache[0] = ($event) => isRef(data) ? data.value = $event : null)
17290
17299
  }, reProps.value.formOptions), createSlots({ _: 2 }, [
17291
- renderList(_ctx.$slots, (_, name) => {
17300
+ renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "form"), (item) => {
17292
17301
  return {
17293
- name,
17302
+ name: item.filterName,
17294
17303
  fn: withCtx((slotProps) => [
17295
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
17304
+ renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
17296
17305
  ])
17297
17306
  };
17298
17307
  })
17299
17308
  ]), 1040, ["data"])
17300
17309
  ]),
17301
- _: 3
17302
- });
17310
+ _: 2
17311
+ }, [
17312
+ renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "card"), (item) => {
17313
+ return {
17314
+ name: item.filterName,
17315
+ fn: withCtx((slotProps) => [
17316
+ renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
17317
+ ])
17318
+ };
17319
+ })
17320
+ ]), 1024);
17303
17321
  };
17304
17322
  }
17305
17323
  });
17306
- const QdCrudSearch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-13ddedb2"]]);
17324
+ const QdCrudSearch = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-2cf11b71"]]);
17307
17325
  async function getBytes(stream, onChunk) {
17308
17326
  const reader = stream.getReader();
17309
17327
  let result;
@@ -18621,7 +18639,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18621
18639
  }
18622
18640
  function handleRefresh() {
18623
18641
  searchMode = "refresh";
18624
- handleSearch();
18642
+ searchRef.value?.submit();
18625
18643
  }
18626
18644
  function toggleSearchVisible() {
18627
18645
  searchVisible.value = !searchVisible.value;
@@ -18901,8 +18919,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18901
18919
  class: [!searchVisible.value ? "qd-crud-search--hide" : ""]
18902
18920
  }, reProps.value.searchOptions, {
18903
18921
  "on-submit": triggerSearch
18904
- }), {
18905
- footer: withCtx(() => [createVNode(unref(Space), {
18922
+ }), createSlots({
18923
+ "form-footer": withCtx(() => [createVNode(unref(Space), {
18906
18924
  align: "center",
18907
18925
  size: "small"
18908
18926
  }, {
@@ -18921,8 +18939,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18921
18939
  })]),
18922
18940
  _: 1
18923
18941
  })]),
18924
- _: 1
18925
- }, 16, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true), createVNode(unref(_sfc_main$j), {
18942
+ _: 2
18943
+ }, [renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "search"), (item) => {
18944
+ return {
18945
+ name: item.filterName,
18946
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
18947
+ };
18948
+ })]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true), createVNode(unref(_sfc_main$j), {
18926
18949
  class: "qd-crud-table__body"
18927
18950
  }, {
18928
18951
  default: withCtx(() => [createElementVNode("div", _hoisted_2$2, [createVNode(unref(Space), {
@@ -19072,7 +19095,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
19072
19095
  };
19073
19096
  }
19074
19097
  });
19075
- const table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e86f79a1"]]);
19098
+ const table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-0c80b92a"]]);
19076
19099
  const _hoisted_1$2 = {
19077
19100
  key: 0,
19078
19101
  class: "qd-crud-list__header"
@@ -19202,8 +19225,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19202
19225
  "onUpdate:data": _cache[0] || (_cache[0] = ($event) => isRef(searchData) ? searchData.value = $event : null)
19203
19226
  }, reProps.value.searchOptions, {
19204
19227
  "on-submit": triggerSearch
19205
- }), {
19206
- footer: withCtx(() => [createVNode(unref(Space), {
19228
+ }), createSlots({
19229
+ "form-footer": withCtx(() => [createVNode(unref(Space), {
19207
19230
  align: "center",
19208
19231
  size: "small"
19209
19232
  }, {
@@ -19222,8 +19245,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19222
19245
  })]),
19223
19246
  _: 1
19224
19247
  })]),
19225
- _: 1
19226
- }, 16, ["data"])) : createCommentVNode("", true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(unref(Space), {
19248
+ _: 2
19249
+ }, [renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "search"), (item) => {
19250
+ return {
19251
+ name: item.filterName,
19252
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
19253
+ };
19254
+ })]), 1040, ["data"])) : createCommentVNode("", true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(unref(Space), {
19227
19255
  align: "center",
19228
19256
  size: "small"
19229
19257
  }, {
@@ -19248,7 +19276,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19248
19276
  };
19249
19277
  }
19250
19278
  });
19251
- const list = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-c15e270f"]]);
19279
+ const list = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-2fd63a2a"]]);
19252
19280
  function defineQdCrudTable(config) {
19253
19281
  return config;
19254
19282
  }
@@ -55351,4 +55379,4 @@ export {
55351
55379
  _sfc_main$a as y,
55352
55380
  QdFormItem as z
55353
55381
  };
55354
- //# sourceMappingURL=index-nH2m5m9w.mjs.map
55382
+ //# sourceMappingURL=index-D_PYGHES.mjs.map