wlwy-package 3.1.53 → 3.1.55

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.
@@ -12,10 +12,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  watchForm: (...args: [cb: import("vue").WatchCallback] | [cb: import("vue").WatchCallback, options: import("vue").WatchOptions<boolean>] | [field: string, cb: import("vue").WatchCallback] | [field: string, cb: import("vue").WatchCallback, options: import("vue").WatchOptions<boolean>]) => import("vue").WatchStopHandle;
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  cancel: (event: Event) => any;
15
+ refresh: (event: Event) => any;
15
16
  ok: (event: Event, handle: WFormPageOkHandleType) => any;
16
17
  "update:form": (form: any) => any;
17
18
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
19
  onCancel?: ((event: Event) => any) | undefined;
20
+ onRefresh?: ((event: Event) => any) | undefined;
19
21
  onOk?: ((event: Event, handle: WFormPageOkHandleType) => any) | undefined;
20
22
  "onUpdate:form"?: ((form: any) => any) | undefined;
21
23
  }>, {
@@ -14550,13 +14550,13 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14550
14550
  "form": { default: reactive({}) },
14551
14551
  "formModifiers": {}
14552
14552
  }),
14553
- emits: /* @__PURE__ */ mergeModels(["ok", "cancel"], ["update:form"]),
14553
+ emits: /* @__PURE__ */ mergeModels(["ok", "refresh", "cancel"], ["update:form"]),
14554
14554
  setup(__props, { expose: __expose, emit: __emit }) {
14555
14555
  useCssVars((_ctx) => ({
14556
- "fd0b040a": unref(token).colorBgLayout,
14557
- "2e2c1e43": `${unref(token).borderRadius}px`,
14558
- "59c7ea3b": unref(token).colorBgElevated,
14559
- "f7005396": `${unref(token).controlHeight}px`
14556
+ "b1d5110e": unref(token).colorBgLayout,
14557
+ "31398141": `${unref(token).borderRadius}px`,
14558
+ "f6eb078e": unref(token).colorBgElevated,
14559
+ "39c25a12": `${unref(token).controlHeight}px`
14560
14560
  }));
14561
14561
  const { token } = theme.useToken();
14562
14562
  const { t: t2 } = useI18n();
@@ -14669,6 +14669,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14669
14669
  verifiedSubmit
14670
14670
  });
14671
14671
  }
14672
+ function refreshEvent(event) {
14673
+ init();
14674
+ emits("refresh", event);
14675
+ }
14672
14676
  function cancelEvent(event) {
14673
14677
  emits("cancel", event);
14674
14678
  }
@@ -14718,7 +14722,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14718
14722
  })) : createCommentVNode("", true),
14719
14723
  showRefresh.value ? (openBlock(), createBlock(unref(Button), {
14720
14724
  key: 1,
14721
- onClick: _cache[1] || (_cache[1] = ($event) => init()),
14725
+ onClick: _cache[1] || (_cache[1] = ($event) => refreshEvent(_ctx.$)),
14722
14726
  loading: props.loading || unref(detailsLoading)
14723
14727
  }, {
14724
14728
  icon: withCtx(() => [
@@ -14777,7 +14781,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14777
14781
  };
14778
14782
  }
14779
14783
  });
14780
- const page = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-f0cd3f8f"]]);
14784
+ const page = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dc5f4376"]]);
14781
14785
  const _hoisted_1$k = { class: "form-wrap" };
14782
14786
  const _hoisted_2$d = { class: "form-title" };
14783
14787
  const _hoisted_3$8 = { class: "form-title-text" };
@@ -17447,7 +17451,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17447
17451
  emits: ["selectAction"],
17448
17452
  setup(__props, { expose: __expose, emit: __emit }) {
17449
17453
  useCssVars((_ctx) => ({
17450
- "7fecfe95": unref(token).colorError
17454
+ "38e16e88": unref(token).colorError
17451
17455
  }));
17452
17456
  const { token } = theme.useToken();
17453
17457
  const userPermissionStore = useUserPermissionStoreWithOut();
@@ -17455,11 +17459,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17455
17459
  const { t: t2 } = useI18n();
17456
17460
  const props = __props;
17457
17461
  const emits = __emit;
17458
- const { tableData, hideToolbar, buttons = [] } = props;
17459
17462
  const tBtns = computed(() => {
17463
+ var _a;
17460
17464
  const displayed = [];
17461
17465
  const more = [];
17462
- const [a, b, c, ...d] = (buttons == null ? void 0 : buttons.filter((item) => !item.hide && userPermissionStore.hasAuth(item.authCode))) ?? [];
17466
+ const [a, b, c, ...d] = ((_a = props.buttons) == null ? void 0 : _a.filter((item) => !item.hide && userPermissionStore.hasAuth(item.authCode))) ?? [];
17463
17467
  displayed.push(a, b, c);
17464
17468
  if (d.length === 1) {
17465
17469
  displayed.push(...d);
@@ -17485,9 +17489,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17485
17489
  });
17486
17490
  return _props2;
17487
17491
  });
17488
- watch(tableData.records, () => {
17492
+ watch(() => props.tableData.records, () => {
17489
17493
  clearCheckbox();
17490
- });
17494
+ }, { deep: true });
17491
17495
  const expose = {
17492
17496
  getCheckboxRecords: () => getTableCheckboxRecords(),
17493
17497
  getToolbarInstance: () => {
@@ -17525,9 +17529,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17525
17529
  ref_key: "wTableRef",
17526
17530
  ref: wTableRef
17527
17531
  }, { ..._ctx.$attrs, ..._props.value }, {
17528
- loading: unref(tableData).loading,
17529
- data: unref(tableData).records,
17530
- seqConfig: { startIndex: (unref(tableData).current - 1) * unref(tableData).size },
17532
+ loading: props.tableData.loading,
17533
+ data: props.tableData.records,
17534
+ seqConfig: { startIndex: (props.tableData.current - 1) * props.tableData.size },
17531
17535
  onCheckboxChange: handleCheckboxChange,
17532
17536
  onCheckboxAll: handleCheckboxAll,
17533
17537
  onCheckboxRangeEnd: handleCheckboxRangeEnd
@@ -17543,13 +17547,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17543
17547
  ]),
17544
17548
  _: 2
17545
17549
  }, [
17546
- !unref(hideToolbar) ? {
17550
+ !props.hideToolbar ? {
17547
17551
  name: "buttons",
17548
17552
  fn: withCtx(() => [
17549
17553
  props.checkbox ? (openBlock(), createElementBlock("span", _hoisted_1$c, [
17550
17554
  createTextVNode(toDisplayString$1(unref(t2)("com_msg_078")) + " ", 1),
17551
17555
  createElementVNode("span", _hoisted_2$7, " " + toDisplayString$1(checkedData.value.length) + " ", 1),
17552
- createTextVNode(" " + toDisplayString$1(unref(t2)("com_lab_1109")) + " " + toDisplayString$1(unref(tableData).total) + " " + toDisplayString$1(unref(t2)("com_lab_1110")) + "    ", 1)
17556
+ createTextVNode(" " + toDisplayString$1(unref(t2)("com_lab_1109")) + " " + toDisplayString$1(props.tableData.total) + " " + toDisplayString$1(unref(t2)("com_lab_1110")) + "    ", 1)
17553
17557
  ])) : createCommentVNode("", true),
17554
17558
  (openBlock(true), createElementBlock(Fragment, null, renderList(tBtns.value.displayed, (button) => {
17555
17559
  return openBlock(), createBlock(unref(Button), {
@@ -17637,7 +17641,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17637
17641
  };
17638
17642
  }
17639
17643
  });
17640
- const ListTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-143fe840"]]);
17644
+ const ListTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-0613b1d9"]]);
17641
17645
  const _hoisted_1$b = { class: "list-pager-wrapper" };
17642
17646
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
17643
17647
  ...{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlwy-package",
3
- "version": "3.1.53",
3
+ "version": "3.1.55",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/wlwy-package.es.js",