@dazhicheng/ui 1.5.149 → 1.5.150

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.
package/dist/plugins.js CHANGED
@@ -2,7 +2,7 @@ import { ElSwitch as x, ElMessageBox as U, ElMessage as y } from "element-plus";
2
2
  import { omit as _, cloneDeep as F } from "lodash-es";
3
3
  import { h as s, defineComponent as B, ref as D, shallowRef as O, onMounted as I } from "vue";
4
4
  import "axios";
5
- import { b as d } from "./index.modern-CTe-bW9A.js";
5
+ import { c as d } from "./index.modern-Cbpe_IBr.js";
6
6
  import "xe-utils";
7
7
  function M(l) {
8
8
  return l.split("-").filter(Boolean).map((o, u) => u === 0 ? o : o.charAt(0).toUpperCase() + o.slice(1)).join("");
@@ -60,13 +60,13 @@ function J() {
60
60
  cancelButtonText: "取消",
61
61
  showCancelButton: !0,
62
62
  type: "warning",
63
- beforeClose: async (L, V, b) => {
64
- var E, T;
63
+ beforeClose: async (L, V, E) => {
64
+ var b, T;
65
65
  if (L === "confirm") {
66
66
  V.confirmButtonLoading = !0;
67
67
  let v = { [a.field]: f, id: i.id };
68
68
  if (h.value = !0, d(e.beforeFetch)) {
69
- const S = await ((E = e.beforeFetch) == null ? void 0 : E.call(e, v, i, a));
69
+ const S = await ((b = e.beforeFetch) == null ? void 0 : b.call(e, v, i, a));
70
70
  v = {
71
71
  ...v,
72
72
  ...S
@@ -75,9 +75,9 @@ function J() {
75
75
  const R = await e.api(v).finally(() => {
76
76
  h.value = !1, V.confirmButtonLoading = !1;
77
77
  });
78
- (T = e.afterFetch) == null || T.call(e, R), y.success(r === n ? "禁用成功" : "启用成功"), V.confirmButtonLoading = !1, b(), C = !0;
78
+ (T = e.afterFetch) == null || T.call(e, R), y.success(r === n ? "禁用成功" : "启用成功"), V.confirmButtonLoading = !1, E(), C = !0;
79
79
  } else
80
- b();
80
+ E();
81
81
  }
82
82
  }), C;
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.5.149",
3
+ "version": "1.5.150",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -47,8 +47,8 @@
47
47
  "sortablejs": "^1.15.7",
48
48
  "vee-validate": "^4.15.1",
49
49
  "zod": "^4.3.6",
50
- "@dazhicheng/hooks": "1.4.39",
51
- "@dazhicheng/utils": "1.3.38"
50
+ "@dazhicheng/utils": "1.3.38",
51
+ "@dazhicheng/hooks": "1.4.39"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@element-plus/icons-vue": "^2.3.2",