wlwy-package 3.1.48 → 3.1.50

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.
@@ -14553,10 +14553,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14553
14553
  emits: /* @__PURE__ */ mergeModels(["ok", "cancel"], ["update:form"]),
14554
14554
  setup(__props, { expose: __expose, emit: __emit }) {
14555
14555
  useCssVars((_ctx) => ({
14556
- "b500bdba": unref(token).colorBgLayout,
14557
- "3884436b": `${unref(token).borderRadius}px`,
14558
- "ddde393a": unref(token).colorBgElevated,
14559
- "75a753e6": `${unref(token).controlHeight}px`
14556
+ "fd0b040a": unref(token).colorBgLayout,
14557
+ "2e2c1e43": `${unref(token).borderRadius}px`,
14558
+ "59c7ea3b": unref(token).colorBgElevated,
14559
+ "f7005396": `${unref(token).controlHeight}px`
14560
14560
  }));
14561
14561
  const { token } = theme.useToken();
14562
14562
  const { t: t2 } = useI18n();
@@ -14718,7 +14718,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14718
14718
  })) : createCommentVNode("", true),
14719
14719
  showRefresh.value ? (openBlock(), createBlock(unref(Button), {
14720
14720
  key: 1,
14721
- onClick: _cache[1] || (_cache[1] = ($event) => init())
14721
+ onClick: _cache[1] || (_cache[1] = ($event) => init()),
14722
+ loading: props.loading || unref(detailsLoading)
14722
14723
  }, {
14723
14724
  icon: withCtx(() => [
14724
14725
  createVNode(unref(WIcon), {
@@ -14730,7 +14731,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14730
14731
  createTextVNode(" " + toDisplayString$1(unref(t2)(props.refreshText)), 1)
14731
14732
  ]),
14732
14733
  _: 1
14733
- })) : createCommentVNode("", true),
14734
+ }, 8, ["loading"])) : createCommentVNode("", true),
14734
14735
  showOk.value ? (openBlock(), createBlock(unref(Button), {
14735
14736
  key: 2,
14736
14737
  onClick: okEvent,
@@ -14776,7 +14777,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14776
14777
  };
14777
14778
  }
14778
14779
  });
14779
- const page = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-291ba0fc"]]);
14780
+ const page = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-f0cd3f8f"]]);
14780
14781
  const _hoisted_1$k = { class: "form-wrap" };
14781
14782
  const _hoisted_2$d = { class: "form-title" };
14782
14783
  const _hoisted_3$8 = { class: "form-title-text" };
@@ -14812,11 +14813,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14812
14813
  emits: /* @__PURE__ */ mergeModels(["ok", "cancel", "refresh", "initDone", "afterDetails"], ["update:form"]),
14813
14814
  setup(__props, { expose: __expose, emit: __emit }) {
14814
14815
  useCssVars((_ctx) => ({
14815
- "77d77dec": unref(token).colorBgElevated,
14816
- "640f1d18": `${unref(token).borderRadius}px`,
14817
- "d926a3a2": `calc(-10px - ${unref(token).borderRadius}px)`,
14818
- "43842db8": `${unref(token).controlHeight}px`,
14819
- "3a484d36": unref(token).boxShadow
14816
+ "5d1e7335": unref(token).colorBgElevated,
14817
+ "20c19a3d": `${unref(token).borderRadius}px`,
14818
+ "af537990": `calc(-10px - ${unref(token).borderRadius}px)`,
14819
+ "36cc4d0a": `${unref(token).controlHeight}px`,
14820
+ "9e9a8d24": unref(token).boxShadow
14820
14821
  }));
14821
14822
  const wFormRef = ref();
14822
14823
  const { token } = theme.useToken();
@@ -14990,7 +14991,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14990
14991
  })) : createCommentVNode("", true),
14991
14992
  showRefresh.value ? (openBlock(), createBlock(unref(Button), {
14992
14993
  key: 1,
14993
- onClick: refreshEvent
14994
+ onClick: refreshEvent,
14995
+ loading: props.loading || unref(detailsLoading)
14994
14996
  }, {
14995
14997
  icon: withCtx(() => [
14996
14998
  createVNode(unref(WIcon), {
@@ -15002,7 +15004,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15002
15004
  createTextVNode(" " + toDisplayString$1(unref(t2)(props.refreshText)), 1)
15003
15005
  ]),
15004
15006
  _: 1
15005
- })) : createCommentVNode("", true),
15007
+ }, 8, ["loading"])) : createCommentVNode("", true),
15006
15008
  showOk.value ? (openBlock(), createBlock(unref(Button), {
15007
15009
  key: 2,
15008
15010
  onClick: okEvent,
@@ -15057,7 +15059,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15057
15059
  };
15058
15060
  }
15059
15061
  });
15060
- const wrap = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-f449c8f9"]]);
15062
+ const wrap = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-e2c13c29"]]);
15061
15063
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
15062
15064
  ...{
15063
15065
  name: "Channel",
@@ -15835,8 +15837,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
15835
15837
  emits: /* @__PURE__ */ mergeModels(["tabChange"], ["update:activeTabKey"]),
15836
15838
  setup(__props, { emit: __emit }) {
15837
15839
  useCssVars((_ctx) => ({
15838
- "60e2e526": unref(token).colorPrimary,
15839
- "62b53033": unref(token).colorError
15840
+ "5f02f252": unref(token).colorPrimary,
15841
+ "3b487c1d": unref(token).colorError
15840
15842
  }));
15841
15843
  const { t: t2 } = useI18n();
15842
15844
  const { token } = theme.useToken();
@@ -15870,8 +15872,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
15870
15872
  function onTabChange(key) {
15871
15873
  var _a;
15872
15874
  const original = (_a = props.tabList) == null ? void 0 : _a.find((item) => `${item.key}` === `${key}`);
15873
- activeTabKey.value = (original == null ? void 0 : original.key) ?? key;
15874
- emit("tabChange", activeTabKey.value ?? key, original);
15875
+ if (original == null ? void 0 : original.key) {
15876
+ key = original == null ? void 0 : original.key;
15877
+ }
15878
+ activeTabKey.value = key;
15879
+ emit("tabChange", key, original);
15875
15880
  }
15876
15881
  return (_ctx, _cache) => {
15877
15882
  return openBlock(), createBlock(unref(Card), mergeProps({ class: "w-card" }, { ...attrs.value }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlwy-package",
3
- "version": "3.1.48",
3
+ "version": "3.1.50",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/wlwy-package.es.js",