savor-ui 0.3.2 → 0.4.0

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/es/components/index.d.ts +4 -0
  3. package/dist/es/components/index.mjs +6 -1
  4. package/dist/es/components/src/alert/alert.d.ts +22 -0
  5. package/dist/es/components/src/alert/alert.vue.mjs +5 -0
  6. package/dist/es/components/src/alert/alert.vue_vue_type_script_setup_true_vapor_true_lang.mjs +58 -0
  7. package/dist/es/components/src/alert/index.d.ts +26 -0
  8. package/dist/es/components/src/alert/index.mjs +7 -0
  9. package/dist/es/components/src/alert/types.d.ts +24 -0
  10. package/dist/es/components/src/cascader/cascader.vue_vue_type_script_setup_true_vapor_true_lang.mjs +93 -82
  11. package/dist/es/components/src/cascader/index.d.ts +1 -0
  12. package/dist/es/components/src/cascader/types.d.ts +2 -0
  13. package/dist/es/components/src/chat-list/chat-list.d.ts +35 -0
  14. package/dist/es/components/src/chat-list/chat-list.vue.mjs +5 -0
  15. package/dist/es/components/src/chat-list/chat-list.vue_vue_type_script_setup_true_vapor_true_lang.mjs +55 -0
  16. package/dist/es/components/src/chat-list/index.d.ts +47 -0
  17. package/dist/es/components/src/chat-list/index.mjs +7 -0
  18. package/dist/es/components/src/chat-list/types.d.ts +44 -0
  19. package/dist/es/components/src/chat-sender/chat-sender.d.ts +26 -0
  20. package/dist/es/components/src/chat-sender/chat-sender.vue.mjs +5 -0
  21. package/dist/es/components/src/chat-sender/chat-sender.vue_vue_type_script_setup_true_vapor_true_lang.mjs +92 -0
  22. package/dist/es/components/src/chat-sender/index.d.ts +27 -0
  23. package/dist/es/components/src/chat-sender/index.mjs +7 -0
  24. package/dist/es/components/src/chat-sender/types.d.ts +24 -0
  25. package/dist/es/components/src/collapse/collapse-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
  26. package/dist/es/components/src/date-picker/date-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +28 -28
  27. package/dist/es/components/src/datetime-picker/datetime-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +28 -28
  28. package/dist/es/components/src/drawer/drawer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +72 -72
  29. package/dist/es/components/src/form/form-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +13 -13
  30. package/dist/es/components/src/form/use-form-item.d.ts +1 -1
  31. package/dist/es/components/src/grid/grid-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +26 -17
  32. package/dist/es/components/src/grid/grid.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -6
  33. package/dist/es/components/src/grid/types.d.ts +2 -0
  34. package/dist/es/components/src/input/input.vue_vue_type_script_setup_true_vapor_true_lang.mjs +9 -9
  35. package/dist/es/components/src/input-number/input-number.vue_vue_type_script_setup_true_vapor_true_lang.mjs +83 -83
  36. package/dist/es/components/src/input-tag/input-tag.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -10
  37. package/dist/es/components/src/layer/layer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +105 -105
  38. package/dist/es/components/src/list/index.d.ts +5 -5
  39. package/dist/es/components/src/list/list.d.ts +3 -3
  40. package/dist/es/components/src/list/list.vue_vue_type_script_setup_true_vapor_true_lang.mjs +7 -12
  41. package/dist/es/components/src/list/types.d.ts +7 -5
  42. package/dist/es/components/src/menu/menu-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +46 -37
  43. package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
  44. package/dist/es/components/src/modal/modal.vue_vue_type_script_setup_true_vapor_true_lang.mjs +121 -121
  45. package/dist/es/components/src/panel/panel.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
  46. package/dist/es/components/src/popover/index.d.ts +1 -0
  47. package/dist/es/components/src/popover/popover.vue_vue_type_script_setup_true_vapor_true_lang.mjs +77 -76
  48. package/dist/es/components/src/popover/types.d.ts +4 -0
  49. package/dist/es/components/src/scrollbar/index.d.ts +7 -2
  50. package/dist/es/components/src/scrollbar/scrollbar.d.ts +5 -2
  51. package/dist/es/components/src/scrollbar/scrollbar.vue_vue_type_script_setup_true_vapor_true_lang.mjs +131 -96
  52. package/dist/es/components/src/scrollbar/types.d.ts +15 -1
  53. package/dist/es/components/src/segmented/segmented.vue_vue_type_script_setup_true_vapor_true_lang.mjs +41 -45
  54. package/dist/es/components/src/select/select.vue_vue_type_script_setup_true_vapor_true_lang.mjs +9 -9
  55. package/dist/es/components/src/table/col-group.d.ts +22 -0
  56. package/dist/es/components/src/table/col-group.vue.mjs +5 -0
  57. package/dist/es/components/src/table/col-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +25 -0
  58. package/dist/es/components/src/table/index.d.ts +18 -41
  59. package/dist/es/components/src/table/index.mjs +1 -0
  60. package/dist/es/components/src/table/table-body.d.ts +32 -0
  61. package/dist/es/components/src/table/table-body.vue.mjs +5 -0
  62. package/dist/es/components/src/table/table-body.vue_vue_type_script_setup_true_vapor_true_lang.mjs +153 -0
  63. package/dist/es/components/src/table/table-header.d.ts +23 -0
  64. package/dist/es/components/src/table/table-header.vue.mjs +5 -0
  65. package/dist/es/components/src/table/table-header.vue_vue_type_script_setup_true_vapor_true_lang.mjs +80 -0
  66. package/dist/es/components/src/table/table.d.ts +12 -25
  67. package/dist/es/components/src/table/table.vue_vue_type_script_setup_true_vapor_true_lang.mjs +167 -380
  68. package/dist/es/components/src/table/types.d.ts +61 -45
  69. package/dist/es/components/src/table/types.mjs +4 -0
  70. package/dist/es/components/src/textarea/textarea.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -6
  71. package/dist/es/components/src/tooltip/index.d.ts +1 -0
  72. package/dist/es/components/src/tooltip/tooltip.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -0
  73. package/dist/es/components/src/tooltip/types.d.ts +2 -0
  74. package/dist/es/components/src/transition/index.d.ts +29 -0
  75. package/dist/es/components/src/transition/index.mjs +7 -0
  76. package/dist/es/components/src/{_comp/HeightTransition.d.ts → transition/transition-height.d.ts} +0 -4
  77. package/dist/es/components/src/transition/transition-height.vue.mjs +5 -0
  78. package/dist/es/components/src/transition/transition-height.vue_vue_type_script_setup_true_vapor_true_lang.mjs +54 -0
  79. package/dist/es/components/src/transition/transition-opacity.vue.mjs +5 -0
  80. package/dist/es/components/src/{_comp/OpacityTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs → transition/transition-opacity.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +2 -2
  81. package/dist/es/components/src/transition/transition-scale.vue.mjs +5 -0
  82. package/dist/es/components/src/{_comp/ScaleTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs → transition/transition-scale.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +2 -2
  83. package/dist/es/components/src/transition/transition-side.vue.mjs +5 -0
  84. package/dist/es/components/src/{_comp/SideTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs → transition/transition-side.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +2 -2
  85. package/dist/es/components/src/transition/transition-width.d.ts +31 -0
  86. package/dist/es/components/src/transition/transition-width.vue.mjs +5 -0
  87. package/dist/es/components/src/transition/transition-width.vue_vue_type_script_setup_true_vapor_true_lang.mjs +54 -0
  88. package/dist/es/components/src/transition/transition.d.ts +27 -0
  89. package/dist/es/components/src/transition/transition.vue.mjs +5 -0
  90. package/dist/es/components/src/transition/transition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +47 -0
  91. package/dist/es/components/src/transition/types.d.ts +28 -0
  92. package/dist/es/components/src/tree/index.d.ts +15 -7
  93. package/dist/es/components/src/tree/node.d.ts +2 -1
  94. package/dist/es/components/src/tree/node.vue_vue_type_script_setup_true_vapor_true_lang.mjs +27 -29
  95. package/dist/es/components/src/tree/tree.d.ts +8 -2
  96. package/dist/es/components/src/tree/tree.vue_vue_type_script_setup_true_vapor_true_lang.mjs +69 -65
  97. package/dist/es/components/src/tree/types.d.ts +18 -12
  98. package/dist/es/core/components.mjs +94 -86
  99. package/dist/es/core/index.mjs +84 -79
  100. package/dist/es/hooks/src/use-element-size.mjs +7 -38
  101. package/dist/es/icons/index.d.ts +4 -1
  102. package/dist/es/icons/index.mjs +3 -0
  103. package/dist/es/icons/src/loading-stop.d.ts +19 -0
  104. package/dist/es/icons/src/loading-stop.vue.mjs +11 -0
  105. package/dist/es/icons/src/send.d.ts +19 -0
  106. package/dist/es/icons/src/send.vue.mjs +11 -0
  107. package/dist/es/icons/src/stop.d.ts +19 -0
  108. package/dist/es/icons/src/stop.vue.mjs +5 -0
  109. package/dist/es/theme/components/alert.scss +101 -0
  110. package/dist/es/theme/components/button.scss +21 -4
  111. package/dist/es/theme/components/cascader.scss +3 -0
  112. package/dist/es/theme/components/chat-list.scss +134 -0
  113. package/dist/es/theme/components/chat-sender.scss +123 -0
  114. package/dist/es/theme/components/index.scss +3 -0
  115. package/dist/es/theme/components/input.scss +2 -1
  116. package/dist/es/theme/components/list.scss +7 -0
  117. package/dist/es/theme/components/menu.scss +14 -1
  118. package/dist/es/theme/components/scrollbar.scss +61 -7
  119. package/dist/es/theme/components/table.scss +360 -328
  120. package/dist/es/theme/components/transition.scss +21 -21
  121. package/dist/es/theme/components/tree.scss +8 -0
  122. package/dist/es/utils/src/tool.d.ts +8 -3
  123. package/dist/es/utils/src/tool.mjs +6 -6
  124. package/dist/json/vetur-attributes.json +196 -46
  125. package/dist/json/vetur-tags.json +82 -15
  126. package/dist/json/web-types.json +432 -75
  127. package/package.json +1 -1
  128. package/dist/es/components/src/_comp/HeightTransition.vue.mjs +0 -5
  129. package/dist/es/components/src/_comp/HeightTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +0 -77
  130. package/dist/es/components/src/_comp/OpacityTransition.vue.mjs +0 -5
  131. package/dist/es/components/src/_comp/ScaleTransition.vue.mjs +0 -5
  132. package/dist/es/components/src/_comp/SideTransition.vue.mjs +0 -5
  133. /package/dist/es/components/src/{_comp/OpacityTransition.d.ts → transition/transition-opacity.d.ts} +0 -0
  134. /package/dist/es/components/src/{_comp/ScaleTransition.d.ts → transition/transition-scale.d.ts} +0 -0
  135. /package/dist/es/components/src/{_comp/SideTransition.d.ts → transition/transition-side.d.ts} +0 -0
@@ -1,24 +1,24 @@
1
1
  import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
2
2
  import "../../../hooks/index.mjs";
3
- import { formItemContextKey as t } from "../form/types.mjs";
4
- import { useFormItem as n } from "../form/use-form-item.mjs";
5
- import ee from "../../../icons/src/close.vue.mjs";
6
- import r from "../../../icons/src/down.vue.mjs";
7
- import i from "../../../icons/src/minus.vue.mjs";
8
- import te from "../../../icons/src/plus.vue.mjs";
9
- import ne from "../../../icons/src/up.vue.mjs";
3
+ import t from "../../../icons/src/close.vue.mjs";
4
+ import n from "../../../icons/src/down.vue.mjs";
5
+ import r from "../../../icons/src/minus.vue.mjs";
6
+ import ee from "../../../icons/src/plus.vue.mjs";
7
+ import i from "../../../icons/src/up.vue.mjs";
10
8
  import "../../../icons/index.mjs";
11
- import { configProviderContextKey as re } from "../config-provider/types.mjs";
9
+ import { formItemContextKey as te } from "../form/types.mjs";
10
+ import { useFormItem as a } from "../form/use-form-item.mjs";
11
+ import { configProviderContextKey as ne } from "../config-provider/types.mjs";
12
12
  import "../config-provider/index.mjs";
13
13
  import "../form/index.mjs";
14
- import { child as a, computed as ie, createComponent as o, createIf as s, createInvoker as c, createSlot as l, createTemplateRefSetter as ae, defineVaporComponent as u, delegateEvents as d, inject as f, mergeModels as p, next as oe, nextTick as m, on as h, ref as g, renderEffect as _, setClass as v, setInsertionState as y, setProp as b, setText as x, setValue as S, template as C, toDisplayString as w, toRefs as se, unref as T, useModel as ce, watch as E, withModifiers as D, withVaporModifiers as O } from "vue";
14
+ import { child as o, computed as s, createComponent as c, createIf as l, createInvoker as u, createSlot as d, createTemplateRefSetter as f, defineVaporComponent as p, delegateEvents as m, inject as h, mergeModels as g, next as re, nextTick as _, on as v, ref as y, renderEffect as b, setClass as x, setInsertionState as S, setProp as C, setText as w, setValue as ie, template as T, toDisplayString as E, toRefs as ae, unref as D, useModel as oe, watch as O, withModifiers as k, withVaporModifiers as A } from "vue";
15
15
  //#region ../components/src/input-number/input-number.vue?vue&type=script&setup=true&vapor=true&lang.ts
16
- var k = C(" "), A = C("<div>"), j = C("<div><div></div><div></div>"), M = C("<div><div><div><input type=text></div>", 1);
17
- d("mousedown", "input", "keydown");
18
- var N = /*@__PURE__*/ u({
16
+ var j = T(" "), M = T("<div>"), se = T("<div><div></div><div></div>"), ce = T("<div><div><div><input type=text></div>", 1);
17
+ m("mousedown", "input", "keydown");
18
+ var N = /*@__PURE__*/ p({
19
19
  name: "SInputNumber",
20
20
  __name: "input-number",
21
- props: /*@__PURE__*/ p({
21
+ props: /*@__PURE__*/ g({
22
22
  size: { default: "medium" },
23
23
  min: {},
24
24
  max: {},
@@ -48,7 +48,7 @@ var N = /*@__PURE__*/ u({
48
48
  modelValue: { default: null },
49
49
  modelModifiers: {}
50
50
  }),
51
- emits: /*@__PURE__*/ p([
51
+ emits: /*@__PURE__*/ g([
52
52
  "input",
53
53
  "change",
54
54
  "press-enter",
@@ -56,11 +56,11 @@ var N = /*@__PURE__*/ u({
56
56
  "focus",
57
57
  "blur"
58
58
  ], ["update:modelValue"]),
59
- setup(u, { expose: d, emit: p, slots: C }) {
60
- let N = u, P = ce(u, "modelValue"), le = f(re, void 0), ue = ie(() => le?.inputFilled?.value || N.filled), F = p, { size: de, error: fe } = se(N), { mergedSize: I, mergedError: L } = n({
61
- size: de,
62
- error: fe
63
- }), R = g(null), z = g(!1), B = g(""), V = g(!1), pe = () => {
59
+ setup(p, { expose: m, emit: g, slots: T }) {
60
+ let N = p, P = oe(p, "modelValue"), F = h(ne, void 0), le = s(() => F?.inputFilled?.value || N.filled), I = g, { size: ue, error: de } = ae(N), { mergedSize: fe, mergedError: L } = a({
61
+ size: ue,
62
+ error: de
63
+ }), R = y(null), z = y(!1), B = y(""), V = y(!1), pe = () => {
64
64
  V.value = !0;
65
65
  }, me = () => {
66
66
  V.value = !1;
@@ -79,38 +79,38 @@ var N = /*@__PURE__*/ u({
79
79
  return isNaN(t) ? P.value : t;
80
80
  }, he = (e) => {
81
81
  let t = e.target, n = W(t.value);
82
- n === null ? t.value = B.value : (B.value = t.value, F("input", U(n), e), J("input"));
82
+ n === null ? t.value = B.value : (B.value = t.value, I("input", U(n), e), J("input"));
83
83
  }, G = (e) => {
84
84
  let t = W(B.value), n = t;
85
- t === null ? P.value = null : (n = U(t), P.value = n), H(n), F("change", n, e), J("change");
85
+ t === null ? P.value = null : (n = U(t), P.value = n), H(n), I("change", n, e), J("change");
86
86
  }, ge = (e) => {
87
- e.key === "Enter" && F("press-enter", e), e.key === "ArrowUp" && (e.preventDefault(), K()), e.key === "ArrowDown" && (e.preventDefault(), q());
87
+ e.key === "Enter" && I("press-enter", e), e.key === "ArrowUp" && (e.preventDefault(), K()), e.key === "ArrowDown" && (e.preventDefault(), q());
88
88
  }, _e = (e) => {
89
- z.value = !0, F("focus", e);
89
+ z.value = !0, I("focus", e);
90
90
  }, ve = (e) => {
91
- z.value = !1, F("blur", e), J("blur"), G(e);
91
+ z.value = !1, I("blur", e), J("blur"), G(e);
92
92
  }, ye = (e) => {
93
- P.value = null, B.value = "", F("input", null, e), F("clear", e), m(() => {
93
+ P.value = null, B.value = "", I("input", null, e), I("clear", e), _(() => {
94
94
  R.value?.focus();
95
95
  });
96
96
  }, K = (e) => {
97
97
  if (N.disabled || N.readonly) return;
98
98
  let t = U((P.value ?? 0) + N.step);
99
- P.value = t, H(t), e && (F("input", t, e), F("change", t, e));
99
+ P.value = t, H(t), e && (I("input", t, e), I("change", t, e));
100
100
  }, q = (e) => {
101
101
  if (N.disabled || N.readonly) return;
102
102
  let t = U((P.value ?? 0) - N.step);
103
- P.value = t, H(t), e && (F("input", t, e), F("change", t, e));
104
- }, be = f(t, null), J = (e) => {
103
+ P.value = t, H(t), e && (I("input", t, e), I("change", t, e));
104
+ }, be = h(te, null), J = (e) => {
105
105
  be?.validate(e).catch(() => {});
106
106
  };
107
- E(P, (e) => {
107
+ O(P, (e) => {
108
108
  H(e);
109
- }, { immediate: !0 }), E(() => N.autofocus, (e) => {
110
- e && m(() => {
109
+ }, { immediate: !0 }), O(() => N.autofocus, (e) => {
110
+ e && _(() => {
111
111
  R.value?.focus();
112
112
  });
113
- }, { immediate: !0 }), d({
113
+ }, { immediate: !0 }), m({
114
114
  focus: () => {
115
115
  R.value?.focus();
116
116
  },
@@ -118,63 +118,63 @@ var N = /*@__PURE__*/ u({
118
118
  R.value?.blur();
119
119
  }
120
120
  });
121
- let Y = e("input-number"), xe = ae(), X = M(), Z = a(X), Q = a(Z, 2), $ = a(Q, 1);
122
- return _(() => {
123
- let e = T(Y);
124
- v(X, [e.b(), e.m(T(I))]), v(Z, [
121
+ let Y = e("input-number"), xe = f(), X = ce(), Z = o(X), Q = o(Z, 2), $ = o(Q, 1);
122
+ return b(() => {
123
+ let e = D(Y);
124
+ x(X, [e.b(), e.m(D(fe))]), x(Z, [
125
125
  e.e("wrapper"),
126
- e.is("disabled", u.disabled),
127
- e.is("error", T(L)),
128
- e.is("filled", ue.value)
126
+ e.is("disabled", p.disabled),
127
+ e.is("error", D(L)),
128
+ e.is("filled", le.value)
129
129
  ]);
130
- }), y(Z, 0, 0), s(() => C.prepend || u.prepend, () => {
131
- let e = A();
132
- return _(() => v(e, [T(Y).e("prepend")])), y(e, null, 0), l("prepend", null, () => {
133
- let e = k();
134
- return _(() => x(e, w(u.prepend))), e;
130
+ }), S(Z, 0, 0), l(() => T.prepend || p.prepend, () => {
131
+ let e = M();
132
+ return b(() => x(e, [D(Y).e("prepend")])), S(e, null, 0), d("prepend", null, () => {
133
+ let e = j();
134
+ return b(() => w(e, E(p.prepend))), e;
135
135
  }), e;
136
- }), y(Z, 0, 1), s(() => u.showButton, () => {
137
- let e = A();
138
- return _(() => {
139
- let t = T(Y);
140
- v(e, [t.e("button"), t.e("prepend-button")]);
141
- }), y(e, null, 0), o(T(i)), h(e, "click", D(q, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
142
- }), _(() => v(Q, [T(Y).e("inner")])), y(Q, 0, 0), s(() => C.prefix || u.prefix, () => {
143
- let e = A();
144
- return _(() => v(e, [T(Y).e("prefix")])), y(e, null, 0), l("prefix", null, () => {
145
- let e = k();
146
- return _(() => x(e, w(u.prefix))), e;
136
+ }), S(Z, 0, 1), l(() => p.showButton, () => {
137
+ let e = M();
138
+ return b(() => {
139
+ let t = D(Y);
140
+ x(e, [t.e("button"), t.e("prepend-button")]);
141
+ }), S(e, null, 0), c(D(r)), v(e, "click", k(q, ["stop"])), e.$evtmousedown = A(() => {}, ["prevent"]), e;
142
+ }), b(() => x(Q, [D(Y).e("inner")])), S(Q, 0, 0), l(() => T.prefix || p.prefix, () => {
143
+ let e = M();
144
+ return b(() => x(e, [D(Y).e("prefix")])), S(e, null, 0), d("prefix", null, () => {
145
+ let e = j();
146
+ return b(() => w(e, E(p.prefix))), e;
147
147
  }), e;
148
- }), h($, "blur", ve), h($, "change", G), h($, "focus", _e), $.$evtinput = c(he), $.$evtkeydown = c(ge), xe($, R, null, "inputRef"), _(() => {
149
- b($, "autofocus", u.autofocus), v($, [T(Y).e("input")]), b($, "disabled", u.disabled), b($, "maxlength", u.maxlength), b($, "minlength", u.minlength), b($, "name", u.name), b($, "placeholder", u.placeholder), b($, "readonly", u.readonly ? !0 : void 0), S($, B.value);
150
- }), y(Q, null, 2), s(() => V.value && !!P.value && u.clearable, () => {
151
- let e = A();
152
- return _(() => v(e, T(Y).e("clear"))), y(e, null, 0), o(T(ee)), h(e, "click", D(ye, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
153
- }), y(Q, null, 3), s(() => C.suffix || u.suffix, () => {
154
- let e = A();
155
- return _(() => v(e, [T(Y).e("suffix")])), y(e, null, 0), l("suffix", null, () => {
156
- let e = k();
157
- return _(() => x(e, w(u.suffix))), e;
148
+ }), v($, "blur", ve), v($, "change", G), v($, "focus", _e), $.$evtinput = u(he), $.$evtkeydown = u(ge), xe($, R, null, "inputRef"), b(() => {
149
+ C($, "autofocus", p.autofocus), x($, [D(Y).e("input")]), C($, "disabled", p.disabled), C($, "maxlength", p.maxlength), C($, "minlength", p.minlength), C($, "name", p.name), C($, "placeholder", p.placeholder), C($, "readonly", p.readonly ? !0 : void 0), ie($, B.value);
150
+ }), S(Q, null, 2), l(() => V.value && !!P.value && p.clearable, () => {
151
+ let e = M();
152
+ return b(() => x(e, D(Y).e("clear"))), S(e, null, 0), c(D(t)), v(e, "click", k(ye, ["stop"])), e.$evtmousedown = A(() => {}, ["prevent"]), e;
153
+ }), S(Q, null, 3), l(() => T.suffix || p.suffix, () => {
154
+ let e = M();
155
+ return b(() => x(e, [D(Y).e("suffix")])), S(e, null, 0), d("suffix", null, () => {
156
+ let e = j();
157
+ return b(() => w(e, E(p.suffix))), e;
158
158
  }), e;
159
- }), y(Q, null, 4), s(() => u.controls && !u.showButton, () => {
160
- let e = j(), t = a(e), n = oe(t, 1);
161
- return _(() => {
162
- let n = T(Y);
163
- v(e, [n.e("controls")]), v(t, n.e("increase"));
164
- }), y(t, null, 0), o(T(ne)), h(t, "click", D(K, ["stop"])), t.$evtmousedown = O(() => {}, ["prevent"]), _(() => v(n, T(Y).e("decrease"))), y(n, null, 0), o(T(r)), h(n, "click", D(q, ["stop"])), n.$evtmousedown = O(() => {}, ["prevent"]), e;
165
- }), y(Z, null, 3), s(() => u.showButton, () => {
166
- let e = A();
167
- return _(() => {
168
- let t = T(Y);
169
- v(e, [t.e("button"), t.e("append-button")]);
170
- }), y(e, null, 0), o(T(te)), h(e, "click", D(K, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
171
- }), y(Z, null, 4), s(() => C.append || u.append, () => {
172
- let e = A();
173
- return _(() => v(e, [T(Y).e("append")])), y(e, null, 0), l("append", null, () => {
174
- let e = k();
175
- return _(() => x(e, w(u.append))), e;
159
+ }), S(Q, null, 4), l(() => p.controls && !p.showButton, () => {
160
+ let e = se(), t = o(e), r = re(t, 1);
161
+ return b(() => {
162
+ let n = D(Y);
163
+ x(e, [n.e("controls")]), x(t, n.e("increase"));
164
+ }), S(t, null, 0), c(D(i)), v(t, "click", k(K, ["stop"])), t.$evtmousedown = A(() => {}, ["prevent"]), b(() => x(r, D(Y).e("decrease"))), S(r, null, 0), c(D(n)), v(r, "click", k(q, ["stop"])), r.$evtmousedown = A(() => {}, ["prevent"]), e;
165
+ }), S(Z, null, 3), l(() => p.showButton, () => {
166
+ let e = M();
167
+ return b(() => {
168
+ let t = D(Y);
169
+ x(e, [t.e("button"), t.e("append-button")]);
170
+ }), S(e, null, 0), c(D(ee)), v(e, "click", k(K, ["stop"])), e.$evtmousedown = A(() => {}, ["prevent"]), e;
171
+ }), S(Z, null, 4), l(() => T.append || p.append, () => {
172
+ let e = M();
173
+ return b(() => x(e, [D(Y).e("append")])), S(e, null, 0), d("append", null, () => {
174
+ let e = j();
175
+ return b(() => w(e, E(p.append))), e;
176
176
  }), e;
177
- }), h(Z, "mouseenter", pe), h(Z, "mouseleave", me), X;
177
+ }), v(Z, "mouseenter", pe), v(Z, "mouseleave", me), X;
178
178
  }
179
179
  });
180
180
  //#endregion
@@ -1,9 +1,9 @@
1
1
  import { useNamespace as e } from "../../../hooks/src/use-namespace.mjs";
2
2
  import "../../../hooks/index.mjs";
3
- import { formItemContextKey as t } from "../form/types.mjs";
4
- import { useFormItem as n } from "../form/use-form-item.mjs";
5
- import r from "../../../icons/src/close.vue.mjs";
3
+ import t from "../../../icons/src/close.vue.mjs";
6
4
  import "../../../icons/index.mjs";
5
+ import { formItemContextKey as n } from "../form/types.mjs";
6
+ import { useFormItem as r } from "../form/use-form-item.mjs";
7
7
  import { configProviderContextKey as i } from "../config-provider/types.mjs";
8
8
  import "../config-provider/index.mjs";
9
9
  import "../form/index.mjs";
@@ -36,7 +36,7 @@ var j = /*@__PURE__*/ d({
36
36
  }),
37
37
  emits: /*@__PURE__*/ m(["change", "clear"], ["update:modelValue"]),
38
38
  setup(d, { emit: f, slots: m }) {
39
- let S = d, j = f, M = e("input-tag"), N = E(d, "modelValue"), P = p(i, void 0), F = o(() => P?.inputFilled?.value || S.filled), { size: I, error: L } = C(S), { mergedSize: R, mergedError: z } = n({
39
+ let S = d, j = f, M = e("input-tag"), N = E(d, "modelValue"), P = p(i, void 0), F = o(() => P?.inputFilled?.value || S.filled), { size: I, error: L } = C(S), { mergedSize: R, mergedError: z } = r({
40
40
  size: I,
41
41
  error: L
42
42
  }), B = _(""), V = _(!1), H = () => {
@@ -53,7 +53,7 @@ var j = /*@__PURE__*/ d({
53
53
  N.value = N.value.toSpliced(N.value.indexOf(e), 1), j("change", N.value);
54
54
  }, oe = (e) => {
55
55
  N.value = [], j("clear", e);
56
- }, se = p(t, null), J = (e) => {
56
+ }, se = p(n, null), J = (e) => {
57
57
  se?.validate(e).catch(() => {});
58
58
  }, Y = ae(), X = a(Y), Z = a(X, 2), Q = a(Z, 2), $ = a(Q);
59
59
  return v(() => {
@@ -71,11 +71,11 @@ var j = /*@__PURE__*/ d({
71
71
  let e = A();
72
72
  return v(() => y(e, [T(M).e("prefix")])), b(e, null, 0), u("prefix"), e;
73
73
  }), v(() => y(Z, [T(M).e("inner")])), b(Z, 0, 0), c(() => N.value, (e) => {
74
- let t = ie(), n = a(t), i = h(n, 1), o = w(n);
74
+ let n = ie(), r = a(n), i = h(r, 1), o = w(r);
75
75
  return v(() => {
76
- let n = T(M);
77
- y(t, [n.e("item")]), te(o, re(e.value)), y(i, [n.e("item-close")]);
78
- }), b(i, null, 0), s(T(r)), g(i, "click", O(() => q(e.value), ["stop"])), i.$evtmousedown = k(() => {}, ["prevent"]), t.$evtmousedown = k(() => {}, ["prevent"]), t;
76
+ let t = T(M);
77
+ y(n, [t.e("item")]), te(o, re(e.value)), y(i, [t.e("item-close")]);
78
+ }), b(i, null, 0), s(T(t)), g(i, "click", O(() => q(e.value), ["stop"])), i.$evtmousedown = k(() => {}, ["prevent"]), n.$evtmousedown = k(() => {}, ["prevent"]), n;
79
79
  }, (e) => e, 8), b(Z, 0, 1), l(() => d.collapse && d.max && N.value.length > d.max, () => {
80
80
  let e = A();
81
81
  return v(() => y(e, [T(M).e("item")])), e;
@@ -84,7 +84,7 @@ var j = /*@__PURE__*/ d({
84
84
  y(Q, [e.e("input-wrapper")]), y($, [e.e("input")]), ne($, B.value), x($, "readonly", d.readonly ? !0 : void 0), x($, "disabled", d.disabled), x($, "placeholder", d.placeholder);
85
85
  }), b(X, null, 3), l(() => V.value && N.value.length > 0 && d.clearable, () => {
86
86
  let e = A();
87
- return v(() => y(e, T(M).e("clear"))), b(e, null, 0), s(T(r)), g(e, "click", O(oe, ["stop"])), e;
87
+ return v(() => y(e, T(M).e("clear"))), b(e, null, 0), s(T(t)), g(e, "click", O(oe, ["stop"])), e;
88
88
  }), b(X, null, 4), l(() => m.suffix || d.suffix, () => {
89
89
  let e = A();
90
90
  return v(() => y(e, [T(M).e("suffix")])), b(e, null, 0), u("suffix"), e;
@@ -14,16 +14,15 @@ import oe from "../../../icons/src/minus.vue.mjs";
14
14
  import "../../../icons/index.mjs";
15
15
  import { SScrollbar as se } from "../scrollbar/index.mjs";
16
16
  import { SButton as i } from "../button/index.mjs";
17
- import ce from "../_comp/OpacityTransition.vue.mjs";
18
- import le from "../_comp/ScaleTransition.vue.mjs";
19
- import { VaporTeleport as ue, applyVShow as a, child as o, computed as s, createComponent as c, createFor as de, createIf as l, createInvoker as u, createSlot as fe, createTemplateRefSetter as pe, defineVaporComponent as d, delegateEvents as f, mergeModels as p, nextTick as m, onUnmounted as me, ref as h, renderEffect as g, setClass as _, setInsertionState as v, setProp as he, setStyle as y, setText as b, template as x, toDisplayString as S, toRefs as ge, txt as _e, unref as C, useModel as ve, useTemplateRef as w, watch as ye, watchEffect as be } from "vue";
17
+ import { STransition as a } from "../transition/index.mjs";
18
+ import { VaporTeleport as ce, applyVShow as o, child as s, computed as c, createComponent as l, createFor as le, createIf as u, createInvoker as d, createSlot as ue, createTemplateRefSetter as de, defineVaporComponent as f, delegateEvents as p, mergeModels as m, nextTick as h, onUnmounted as fe, ref as g, renderEffect as _, setClass as v, setInsertionState as y, setProp as pe, setStyle as b, setText as x, template as S, toDisplayString as C, toRefs as me, txt as he, unref as w, useModel as ge, useTemplateRef as T, watch as _e, watchEffect as ve } from "vue";
20
19
  //#region ../components/src/layer/layer.vue?vue&type=script&setup=true&vapor=true&lang.ts
21
- var T = x("<div>"), xe = x(" "), E = x("<div><div style=\"padding: 20px\"> </div>"), Se = x("<div><iframe style=width:100%;height:100%;border:none;></iframe>"), Ce = x("<div><div><div></div></div>"), we = x("<div><div>");
22
- f("click");
23
- var D = /*@__PURE__*/ d({
20
+ var E = S("<div>"), ye = S(" "), be = S("<div><div style=\"padding: 20px\"> </div>"), xe = S("<div><iframe style=width:100%;height:100%;border:none;></iframe>"), Se = S("<div><div><div></div></div>"), Ce = S("<div><div>");
21
+ p("click");
22
+ var D = /*@__PURE__*/ f({
24
23
  inheritAttrs: !1,
25
24
  __name: "layer",
26
- props: /*@__PURE__*/ p({
25
+ props: /*@__PURE__*/ m({
27
26
  type: {},
28
27
  title: {},
29
28
  content: {},
@@ -96,17 +95,17 @@ var D = /*@__PURE__*/ d({
96
95
  modelModifiers: {}
97
96
  }),
98
97
  emits: ["update:modelValue"],
99
- setup(d, { expose: f }) {
100
- let p = d, x = n("layer"), { lockScroll: D, unlockScroll: O } = te(), { zIndex: k } = ne(), A = w("layerRef"), j = w("headerRef"), M = w("pageContentRef"), N = ve(d, "modelValue"), P = h(!1), F = h(!1), I = h(!1), L = h(!1), R = h(!1), z = h(!1), B = h(0), V = h(0), H = h(0), U = h(0), W = h(0), G = h(0), K = s(() => typeof p.to == "string" ? document.querySelector(p.to) || document.body : p.to), Te = s(() => ({
101
- zIndex: p.zIndex ?? k.value,
98
+ setup(f, { expose: p }) {
99
+ let m = f, S = n("layer"), { lockScroll: D, unlockScroll: O } = te(), { zIndex: k } = ne(), A = T("layerRef"), j = T("headerRef"), M = T("pageContentRef"), N = ge(f, "modelValue"), P = g(!1), F = g(!1), I = g(!1), L = g(!1), R = g(!1), z = g(!1), B = g(0), V = g(0), H = g(0), U = g(0), W = g(0), G = g(0), K = c(() => typeof m.to == "string" ? document.querySelector(m.to) || document.body : m.to), we = c(() => ({
100
+ zIndex: m.zIndex ?? k.value,
102
101
  position: K.value === document.body ? "fixed" : "absolute"
103
- })), Ee = s(() => {
102
+ })), Te = c(() => {
104
103
  if (I.value) return {};
105
- if (Z.value && p.minAnimate) return L.value ? {
104
+ if (Z.value && m.minAnimate) return L.value ? {
106
105
  width: `${Q.value.width}px`,
107
106
  height: `${Q.value.height}px`,
108
- top: `${p.minOrigin.y}px`,
109
- left: `${p.minOrigin.x}px`,
107
+ top: `${m.minOrigin.y}px`,
108
+ left: `${m.minOrigin.x}px`,
110
109
  transform: "scale(0)",
111
110
  opacity: 0,
112
111
  transformOrigin: "bottom center",
@@ -121,56 +120,56 @@ var D = /*@__PURE__*/ d({
121
120
  transformOrigin: "bottom center",
122
121
  transition: "all .3s cubic-bezier(0.4, 0, 0.2, 1)"
123
122
  };
124
- let t = typeof p.size == "string" ? p.size : p.size[0], n = typeof p.size == "string" ? p.size : p.size[1];
123
+ let t = typeof m.size == "string" ? m.size : m.size[0], n = typeof m.size == "string" ? m.size : m.size[1];
125
124
  return {
126
125
  width: B.value ? `${B.value}px` : e(t),
127
126
  height: V.value ? `${V.value}px` : e(n),
128
127
  top: `${H.value}px`,
129
128
  left: `${U.value}px`,
130
129
  maxHeight: W.value ? `${W.value - 40}px` : void 0,
131
- borderRadius: `${p.radius}px`
130
+ borderRadius: `${m.radius}px`
132
131
  };
133
- }), De = () => {
134
- p.opened?.();
132
+ }), Ee = () => {
133
+ m.opened?.();
134
+ }, De = () => {
135
+ F.value = !1, R.value = !1, z.value = !1, h(O), m.closed?.();
135
136
  }, Oe = () => {
136
- F.value = !1, R.value = !1, z.value = !1, m(O), p.closed?.();
137
- }, ke = () => {
138
- p.closeOnOverlayClick && J();
137
+ m.closeOnOverlayClick && J();
139
138
  }, q = (e) => {
140
139
  e ? N.value = !1 : R.value = !1;
141
- }, Ae = () => {
142
- p.yes ? (R.value = !0, p.yes(q)) : q(!0);
140
+ }, ke = () => {
141
+ m.yes ? (R.value = !0, m.yes(q)) : q(!0);
143
142
  }, J = () => {
144
- N.value = !1, p.cancel?.();
145
- }, je = (e) => {
146
- e === 0 ? p.btn1?.() : e === 1 ? p.btn2?.() : e === 2 && p.btn3?.();
147
- }, Me = () => {
143
+ N.value = !1, m.cancel?.();
144
+ }, Ae = (e) => {
145
+ e === 0 ? m.btn1?.() : e === 1 ? m.btn2?.() : e === 2 && m.btn3?.();
146
+ }, je = () => {
148
147
  N.value = !0;
149
- }, Ne = () => {
148
+ }, Me = () => {
150
149
  I.value = !I.value;
151
150
  }, Y = (e) => {
152
- e.key === "Escape" && p.closeOnEsc && P.value && (p.zIndex ?? k.value) >= k.value && J();
151
+ e.key === "Escape" && m.closeOnEsc && P.value && (m.zIndex ?? k.value) >= k.value && J();
153
152
  }, X = async () => {
154
- if (await m(), !A.value || z.value) return;
153
+ if (await h(), !A.value || z.value) return;
155
154
  let e = A.value;
156
155
  H.value = Math.max(0, (W.value - e.offsetHeight) / 2), U.value = Math.max(0, (G.value - e.offsetWidth) / 2);
157
- }, Pe = () => {
158
- p.click?.();
156
+ }, Ne = () => {
157
+ m.click?.();
159
158
  };
160
- ye(N, async (e) => {
159
+ _e(N, async (e) => {
161
160
  if (e) {
162
- if (p.hiddenBodyScrollbar && D(), F.value = !0, await m(), !N.value) return;
161
+ if (m.hiddenBodyScrollbar && D(), F.value = !0, await h(), !N.value) return;
163
162
  P.value = !0, X();
164
163
  } else P.value = !1;
165
- }, { immediate: !0 }), be((e) => {
164
+ }, { immediate: !0 }), ve((e) => {
166
165
  P.value && (document.addEventListener("keydown", Y), e(() => document.removeEventListener("keydown", Y)));
167
166
  });
168
- let Z = h(!1), Q = h({
167
+ let Z = g(!1), Q = g({
169
168
  top: 0,
170
169
  left: 0,
171
170
  width: 0,
172
171
  height: 0
173
- }), Fe = () => {
172
+ }), Pe = () => {
174
173
  if (!A.value) return;
175
174
  let e = A.value.getBoundingClientRect();
176
175
  Q.value = {
@@ -179,26 +178,26 @@ var D = /*@__PURE__*/ d({
179
178
  width: e.width,
180
179
  height: e.height
181
180
  }, L.value = !0, Z.value = !0;
182
- }, Ie = () => {
183
- if (!p.minAnimate) {
181
+ }, Fe = () => {
182
+ if (!m.minAnimate) {
184
183
  L.value = !1, Z.value = !1;
185
184
  return;
186
185
  }
187
186
  H.value = Q.value.top, U.value = Q.value.left, B.value = 0, V.value = 0, L.value = !1, setTimeout(() => {
188
187
  Z.value = !1;
189
188
  }, 300);
190
- }, { minWidth: Le, minHeight: Re, maxWidth: ze, maxHeight: Be } = ge(p);
189
+ }, { minWidth: Ie, minHeight: Le, maxWidth: Re, maxHeight: ze } = me(m);
191
190
  ee(K, () => {
192
191
  let e = K.value;
193
192
  W.value = e.clientHeight, G.value = e.clientWidth, X();
194
193
  }), r({
195
194
  target: A,
196
195
  container: K,
197
- enable: s(() => p.resizable && !I.value && !L.value),
198
- minWidth: Le,
199
- minHeight: Re,
200
- maxWidth: ze,
201
- maxHeight: Be,
196
+ enable: c(() => m.resizable && !I.value && !L.value),
197
+ minWidth: Ie,
198
+ minHeight: Le,
199
+ maxWidth: Re,
200
+ maxHeight: ze,
202
201
  divWidth: B,
203
202
  divHeight: V,
204
203
  divTop: H,
@@ -207,101 +206,102 @@ var D = /*@__PURE__*/ d({
207
206
  container: A,
208
207
  target: j,
209
208
  parent: K,
210
- enable: s(() => p.draggable && !I.value && !L.value),
209
+ enable: c(() => m.draggable && !I.value && !L.value),
211
210
  divLeft: U,
212
211
  divTop: H,
213
212
  hasDragged: z
214
- }), me(() => {
215
- p.hiddenBodyScrollbar && O();
216
- }), f({
217
- handleOpen: Me,
213
+ }), fe(() => {
214
+ m.hiddenBodyScrollbar && O();
215
+ }), p({
216
+ handleOpen: je,
218
217
  handleCancel: J,
219
- handleRestore: Ie,
218
+ handleRestore: Fe,
220
219
  pageContentRef: M
221
220
  });
222
- let $ = pe();
223
- return c(ue, {
224
- to: () => d.to,
221
+ let $ = de();
222
+ return l(ce, {
223
+ to: () => f.to,
225
224
  defer: ""
226
225
  }, () => {
227
- let e = we(), t = o(e, 1);
228
- return g(() => {
229
- _(e, [C(x).e("container")]), y(e, Te.value);
230
- }), v(e, 0, 0), c(ce, null, () => l(() => d.showMask && P.value && !I.value && !L.value, () => {
231
- let e = T();
232
- return e.$evtclick = u(ke), g(() => {
233
- y(e, d.maskStyle), _(e, [C(x).e("mask")]);
226
+ let e = Ce(), t = s(e, 1);
227
+ return _(() => {
228
+ v(e, [w(S).e("container")]), b(e, we.value);
229
+ }), y(e, 0, 0), l(w(a), { type: "opacity" }, () => u(() => f.showMask && P.value && !I.value && !L.value, () => {
230
+ let e = E();
231
+ return e.$evtclick = d(Oe), _(() => {
232
+ b(e, f.maskStyle), v(e, [w(S).e("mask")]);
234
233
  }), e;
235
- }, null, 129)), g(() => _(t, [C(x).e("wrapper")])), v(t, null, 0), c(le, {
236
- onAfterLeave: () => Oe,
237
- onAfterEnter: () => De
234
+ }, null, 129)), _(() => v(t, [w(S).e("wrapper")])), y(t, null, 0), l(w(a), {
235
+ type: "scale",
236
+ onAfterLeave: () => De,
237
+ onAfterEnter: () => Ee
238
238
  }, () => {
239
- let e = Ce(), t = o(e), n = o(t);
240
- return g(() => {
241
- let r = C(x);
242
- _(e, [
239
+ let e = Se(), t = s(e), n = s(t);
240
+ return _(() => {
241
+ let r = w(S);
242
+ v(e, [
243
243
  r.b(),
244
244
  r.is("max", I.value),
245
245
  r.is("min", L.value)
246
- ]), y(e, Ee.value), _(t, [r.e("header")]), _(n, [r.e("title")]);
247
- }), v(n, null, 0), fe("header", null, () => {
248
- let e = xe();
249
- return g(() => b(e, S(d.title))), e;
250
- }), v(t, null, 1), l(() => d.maxmin || d.closable, () => {
251
- let e = T();
252
- return g(() => _(e, [C(x).e("header-icon")])), v(e, null, 0), l(() => d.maxmin, () => c(C(i), {
246
+ ]), b(e, Te.value), v(t, [r.e("header")]), v(n, [r.e("title")]);
247
+ }), y(n, null, 0), ue("header", null, () => {
248
+ let e = ye();
249
+ return _(() => x(e, C(f.title))), e;
250
+ }), y(t, null, 1), u(() => f.maxmin || f.closable, () => {
251
+ let e = E();
252
+ return _(() => v(e, [w(S).e("header-icon")])), y(e, null, 0), u(() => f.maxmin, () => l(w(i), {
253
253
  text: "",
254
254
  size: "mini",
255
- onClick: () => Fe
256
- }, { icon: () => c(C(oe)) })), v(e, null, 1), l(() => d.maxmin, () => c(C(i), {
255
+ onClick: () => Pe
256
+ }, { icon: () => l(w(oe)) })), y(e, null, 1), u(() => f.maxmin, () => l(w(i), {
257
257
  text: "",
258
258
  size: "mini",
259
- onClick: () => Ne
260
- }, { icon: () => l(() => I.value, () => c(C(ie)), () => c(C(ae)), 901) })), v(e, null, 2), l(() => d.closable, () => c(C(i), {
259
+ onClick: () => Me
260
+ }, { icon: () => u(() => I.value, () => l(w(ie)), () => l(w(ae)), 901) })), y(e, null, 2), u(() => f.closable, () => l(w(i), {
261
261
  text: "",
262
262
  size: "mini",
263
263
  disabled: () => R.value,
264
264
  onClick: () => J
265
- }, { icon: () => c(C(re)) })), e;
266
- }), $(t, j, null, "headerRef"), v(e, null, 1), l(() => d.type === "page", () => {
267
- let e = T();
268
- return g(() => _(e, [C(x).e("body")])), v(e, null, 0), c(C(se), null, () => {
269
- let e = T();
270
- return $(e, M, null, "pageContentRef"), g(() => _(e, [C(x).e("content")])), e;
265
+ }, { icon: () => l(w(re)) })), e;
266
+ }), $(t, j, null, "headerRef"), y(e, null, 1), u(() => f.type === "page", () => {
267
+ let e = E();
268
+ return _(() => v(e, [w(S).e("body")])), y(e, null, 0), l(w(se), null, () => {
269
+ let e = E();
270
+ return $(e, M, null, "pageContentRef"), _(() => v(e, [w(S).e("content")])), e;
271
271
  }), e;
272
- }, () => l(() => d.type === "dialog", () => {
273
- let e = E(), t = _e(o(e));
274
- return g(() => {
275
- _(e, [C(x).e("body")]), b(t, S(d.content));
272
+ }, () => u(() => f.type === "dialog", () => {
273
+ let e = be(), t = he(s(e));
274
+ return _(() => {
275
+ v(e, [w(S).e("body")]), x(t, C(f.content));
276
276
  }), e;
277
- }, () => l(() => d.type === "iframe", () => {
278
- let e = Se(), t = o(e);
279
- return g(() => {
280
- _(e, [C(x).e("body")]), he(t, "src", d.content);
277
+ }, () => u(() => f.type === "iframe", () => {
278
+ let e = xe(), t = s(e);
279
+ return _(() => {
280
+ v(e, [w(S).e("body")]), pe(t, "src", f.content);
281
281
  }), e;
282
- }), 2053), 1797), v(e, null, 2), l(() => d.type === "dialog" || d.btn && d.btn.length > 0, () => {
283
- let e = T();
284
- return g(() => _(e, [C(x).e("footer")])), v(e, null, 0), l(() => d.yesBtn, () => c(C(i), {
285
- label: () => d.yesText,
282
+ }), 2053), 1797), y(e, null, 2), u(() => f.type === "dialog" || f.btn && f.btn.length > 0, () => {
283
+ let e = E();
284
+ return _(() => v(e, [w(S).e("footer")])), y(e, null, 0), u(() => f.yesBtn, () => l(w(i), {
285
+ label: () => f.yesText,
286
286
  loading: () => R.value,
287
287
  type: "primary",
288
288
  size: "small",
289
- onClick: () => Ae
290
- })), v(e, null, 1), l(() => d.cancelBtn, () => c(C(i), {
291
- label: () => d.cancelText,
289
+ onClick: () => ke
290
+ })), y(e, null, 1), u(() => f.cancelBtn, () => l(w(i), {
291
+ label: () => f.cancelText,
292
292
  secondary: "",
293
293
  size: "small",
294
294
  onClick: () => J
295
- })), v(e, null, 2), de(() => d.btn, (e, t) => {
296
- let n = () => je(t.value);
297
- return c(C(i), {
295
+ })), y(e, null, 2), le(() => f.btn, (e, t) => {
296
+ let n = () => Ae(t.value);
297
+ return l(w(i), {
298
298
  label: () => e.value,
299
299
  size: "small",
300
300
  onClick: () => n
301
301
  });
302
302
  }, (e, t) => t, 2), e;
303
- }), a(e, () => P.value), e.$evtclick = u(Pe), $(e, A, null, "layerRef"), e;
304
- }), a(e, () => F.value), e;
303
+ }), o(e, () => P.value), e.$evtclick = d(Ne), $(e, A, null, "layerRef"), e;
304
+ }), o(e, () => F.value), e;
305
305
  }, !0);
306
306
  }
307
307
  });