wlwy-package 3.1.49 → 3.1.51

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.
@@ -15837,8 +15837,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
15837
15837
  emits: /* @__PURE__ */ mergeModels(["tabChange"], ["update:activeTabKey"]),
15838
15838
  setup(__props, { emit: __emit }) {
15839
15839
  useCssVars((_ctx) => ({
15840
- "60e2e526": unref(token).colorPrimary,
15841
- "62b53033": unref(token).colorError
15840
+ "5f02f252": unref(token).colorPrimary,
15841
+ "3b487c1d": unref(token).colorError
15842
15842
  }));
15843
15843
  const { t: t2 } = useI18n();
15844
15844
  const { token } = theme.useToken();
@@ -15872,8 +15872,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
15872
15872
  function onTabChange(key) {
15873
15873
  var _a;
15874
15874
  const original = (_a = props.tabList) == null ? void 0 : _a.find((item) => `${item.key}` === `${key}`);
15875
- activeTabKey.value = (original == null ? void 0 : original.key) ?? key;
15876
- 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);
15877
15880
  }
15878
15881
  return (_ctx, _cache) => {
15879
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.49",
3
+ "version": "3.1.51",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/wlwy-package.es.js",