ep-craft 0.1.18 → 0.1.19

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,70 +1,82 @@
1
- import { defineComponent as f, h as l, withDirectives as b, withModifiers as t, vModelRadio as h, renderSlot as E, nextTick as k } from "vue";
2
- import { CHANGE_EVENT as C } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/constants/event.js";
3
- import { useNamespace as R } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/hooks/use-namespace/index.js";
4
- import { radioEmits as V, radioProps as g } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/radio/src/radio.js";
1
+ import { defineComponent as b, h as a, withDirectives as h, withModifiers as d, vModelRadio as g, renderSlot as x, nextTick as k } from "vue";
2
+ import { CHANGE_EVENT as y } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/constants/event.js";
3
+ import { useNamespace as E } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/hooks/use-namespace/index.js";
4
+ import { radioEmits as C, radioProps as R } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/radio/src/radio.js";
5
5
  import { useRadio as w } from "../../node_modules/.pnpm/element-plus@2.14.3_vue@3.5.40_typescript@5.9.3_/node_modules/element-plus/es/components/radio/src/use-radio.js";
6
- const _ = f({
6
+ const _ = b({
7
7
  name: "EpRadio",
8
- props: g,
9
- emits: V,
10
- setup(o, { emit: n, slots: r }) {
11
- const e = R("radio"), { radioRef: c, radioGroup: i, focus: u, size: m, disabled: d, modelValue: a, actualValue: s } = w(o, n), v = () => {
12
- k(() => n(C, a.value));
13
- };
14
- return () => l(
8
+ props: R,
9
+ emits: C,
10
+ setup(l, { emit: n, slots: t }) {
11
+ const e = E("radio"), { radioRef: u, radioGroup: c, focus: o, size: v, disabled: r, modelValue: i, actualValue: s } = w(l, n), m = () => {
12
+ k(() => n(y, i.value));
13
+ }, p = () => a("svg", { class: e.e("indicator"), viewBox: "0 0 16 16" }, [
14
+ a("circle", { class: e.e("indicator-ring"), cx: 8, cy: 8, r: 7 }),
15
+ a("g", { class: e.e("indicator-checked") }, [
16
+ a("circle", {
17
+ class: e.e("indicator-ring-outer"),
18
+ cx: 8,
19
+ cy: 8,
20
+ r: 7.5
21
+ }),
22
+ a("circle", { class: e.e("indicator-gap"), cx: 8, cy: 8, r: 6 }),
23
+ a("circle", { class: e.e("indicator-dot"), cx: 8, cy: 8, r: 4.09 })
24
+ ])
25
+ ]);
26
+ return () => a(
15
27
  "label",
16
28
  {
17
29
  class: [
18
30
  e.b(),
19
- e.is("disabled", d.value),
20
- e.is("focus", u.value),
21
- e.is("bordered", o.border),
22
- e.is("checked", a.value === s.value),
23
- e.m(m.value)
31
+ e.is("disabled", r.value),
32
+ e.is("focus", o.value),
33
+ e.is("bordered", l.border),
34
+ e.is("checked", i.value === s.value),
35
+ e.m(v.value)
24
36
  ]
25
37
  },
26
38
  [
27
- l(
39
+ a(
28
40
  "span",
29
41
  {
30
42
  class: [
31
43
  e.e("input"),
32
- e.is("disabled", d.value),
33
- e.is("checked", a.value === s.value)
44
+ e.is("disabled", r.value),
45
+ e.is("checked", i.value === s.value)
34
46
  ]
35
47
  },
36
48
  [
37
- b(
38
- l("input", {
39
- ref: c,
49
+ h(
50
+ a("input", {
51
+ ref: u,
40
52
  class: e.e("original"),
41
53
  value: s.value,
42
- name: o.name || (i == null ? void 0 : i.name),
43
- disabled: d.value,
44
- checked: a.value === s.value,
54
+ name: l.name || (c == null ? void 0 : c.name),
55
+ disabled: r.value,
56
+ checked: i.value === s.value,
45
57
  type: "radio",
46
- onFocus: () => u.value = !0,
47
- onBlur: () => u.value = !1,
48
- onChange: v,
49
- onClick: t(() => {
58
+ onFocus: () => o.value = !0,
59
+ onBlur: () => o.value = !1,
60
+ onChange: m,
61
+ onClick: d(() => {
50
62
  }, ["stop"]),
51
- "onUpdate:modelValue": (p) => {
52
- a.value = p;
63
+ "onUpdate:modelValue": (f) => {
64
+ i.value = f;
53
65
  }
54
66
  }),
55
- [[h, a.value]]
67
+ [[g, i.value]]
56
68
  ),
57
- l("span", { class: e.e("inner") })
69
+ a("span", { class: e.e("inner") }, [p()])
58
70
  ]
59
71
  ),
60
- l(
72
+ a(
61
73
  "span",
62
74
  {
63
75
  class: e.e("label"),
64
- onKeydown: t(() => {
76
+ onKeydown: d(() => {
65
77
  }, ["stop"])
66
78
  },
67
- [E(r, "default", {}, () => [o.label])]
79
+ [x(t, "default", {}, () => [l.label])]
68
80
  )
69
81
  ]
70
82
  );