@dazhicheng/ui 1.5.221 → 1.5.222

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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as V, mergeModels as d, useModel as y, useAttrs as B, computed as k, ref as p, watch as x, createBlock as w, openBlock as L, unref as m, mergeProps as M, withCtx as P, renderSlot as A } from "vue";
1
+ import { defineComponent as V, mergeModels as d, useModel as y, useAttrs as B, computed as k, ref as c, watch as x, createBlock as L, openBlock as w, unref as p, mergeProps as E, withCtx as M, renderSlot as P } from "vue";
2
2
  import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
3
- import { useDesign as D } from "../../packages/hooks/src/useDesign.js";
3
+ import { useDesign as A } from "../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
- import { useFormItem as F, ElRadioGroup as G } from "element-plus";
5
+ import { useFormItem as D, ElRadioGroup as F } from "element-plus";
6
6
  import "dayjs";
7
7
  import "xe-utils";
8
8
  import "dayjs/plugin/utc";
@@ -12,7 +12,7 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
12
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
13
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
14
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
- import { omit as c } from "lodash-es";
15
+ import { omit as m } from "lodash-es";
16
16
  const O = /* @__PURE__ */ V({
17
17
  name: "TtRadioGroup",
18
18
  inheritAttrs: !1,
@@ -37,37 +37,37 @@ const O = /* @__PURE__ */ V({
37
37
  }),
38
38
  emits: /* @__PURE__ */ d(["change"], ["update:modelValue"]),
39
39
  setup(n, { emit: f }) {
40
- const a = n, l = y(n, "modelValue"), s = f, g = B(), { prefixCls: v } = D("radio-group"), h = k(() => ({
41
- ...c(a, ["clearable", "beforeChange", "modelValue"]),
42
- ...c(g, ["onUpdate:modelValue", "onChange", "class"])
43
- })), r = p(l.value), { formItem: i } = F(), u = p(!1);
40
+ const o = n, l = y(n, "modelValue"), s = f, g = B(), { prefixCls: v } = A("radio-group"), h = k(() => ({
41
+ ...m(o, ["clearable", "beforeChange", "modelValue"]),
42
+ ...m(g, ["onUpdate:modelValue", "onChange", "class"])
43
+ })), r = c(l.value), { formItem: i } = D(), u = c(!1);
44
44
  async function C(e) {
45
- const o = l.value;
45
+ const a = l.value;
46
46
  let t = !0;
47
- a.beforeChange && (t = await a.beforeChange(e, o)), t ? (l.value = e, s("change", e)) : r.value = o;
47
+ o.beforeChange && (t = await o.beforeChange(e, a)), t ? (l.value = e, s("change", e)) : r.value = a;
48
48
  }
49
49
  function b(e) {
50
- if (!a.clearable || a.disabled) return;
50
+ if (!o.clearable || o.disabled) return;
51
51
  const t = e.target.closest(".el-radio, .el-radio-button");
52
- t != null && t.classList.contains("is-checked") && (t.classList.contains("is-disabled") || (e.stopPropagation(), e.preventDefault(), l.value = void 0, r.value = void 0, s("change", void 0)));
52
+ t && (!t.classList.contains("is-checked") && !t.classList.contains("is-active") || t.classList.contains("is-disabled") || (e.stopPropagation(), e.preventDefault(), l.value = void 0, r.value = void 0, s("change", void 0)));
53
53
  }
54
54
  return x(
55
55
  l,
56
56
  (e) => {
57
- r.value = e, u.value && (i == null || i.validate("change").catch((o) => {
57
+ r.value = e, u.value && (i == null || i.validate("change").catch((a) => {
58
58
  })), u.value = !0;
59
59
  },
60
60
  { immediate: !0 }
61
- ), (e, o) => (L(), w(m(G), M(h.value, {
61
+ ), (e, a) => (w(), L(p(F), E(h.value, {
62
62
  modelValue: r.value,
63
- "onUpdate:modelValue": o[0] || (o[0] = (t) => r.value = t),
64
- class: [m(v), e.$attrs.class],
63
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => r.value = t),
64
+ class: [p(v), e.$attrs.class],
65
65
  "validate-event": !1,
66
66
  onClickCapture: b,
67
67
  onChange: C
68
68
  }), {
69
- default: P(() => [
70
- A(e.$slots, "default")
69
+ default: M(() => [
70
+ P(e.$slots, "default")
71
71
  ]),
72
72
  _: 3
73
73
  }, 16, ["modelValue", "class"]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.5.221",
3
+ "version": "1.5.222",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",