@aplus-frontend/ui 0.1.38 → 0.1.40

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 (45) hide show
  1. package/es/index.mjs +136 -134
  2. package/es/src/ap-descriptions/formatter/index.mjs +24 -24
  3. package/es/src/ap-form/index.d.ts +3 -1
  4. package/es/src/ap-form/index.mjs +8 -4
  5. package/es/src/ap-form/interface.d.ts +30 -1
  6. package/es/src/ap-form/modal-form/drawer.vue.d.ts +830 -0
  7. package/es/src/ap-form/modal-form/drawer.vue.mjs +288 -0
  8. package/es/src/ap-form/modal-form/drawer.vue2.mjs +4 -0
  9. package/es/src/ap-form/modal-form/index.vue.mjs +56 -47
  10. package/es/src/ap-form/style/drawer-form.css +10 -0
  11. package/es/src/ap-table/ap-table.vue.mjs +96 -95
  12. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -1
  13. package/es/src/ap-table/hooks/use-table-column-state.d.ts +2 -2
  14. package/es/src/ap-table/hooks/use-table-column-state.mjs +37 -37
  15. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -1
  16. package/es/src/ap-table/hooks/use-table-paging.mjs +74 -74
  17. package/es/src/ap-table/style/ap-table.css +6 -0
  18. package/es/src/business/ap-card/ApCard.vue2.mjs +18 -20
  19. package/es/src/index.mjs +107 -105
  20. package/es/src/theme/ap-form/drawer-form.css +10 -0
  21. package/es/src/theme/ap-table/ap-table.css +6 -0
  22. package/es/src/theme/css-var/index.mjs +10 -0
  23. package/lib/index.js +1 -1
  24. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  25. package/lib/src/ap-form/index.d.ts +3 -1
  26. package/lib/src/ap-form/index.js +1 -1
  27. package/lib/src/ap-form/interface.d.ts +30 -1
  28. package/lib/src/ap-form/modal-form/drawer.vue.d.ts +830 -0
  29. package/lib/src/ap-form/modal-form/drawer.vue.js +1 -0
  30. package/lib/src/ap-form/modal-form/drawer.vue2.js +1 -0
  31. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  32. package/lib/src/ap-form/style/drawer-form.css +10 -0
  33. package/lib/src/ap-table/ap-table.vue.js +1 -1
  34. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  35. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +2 -2
  36. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  37. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -1
  38. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  39. package/lib/src/ap-table/style/ap-table.css +6 -0
  40. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  41. package/lib/src/index.js +1 -1
  42. package/lib/src/theme/ap-form/drawer-form.css +10 -0
  43. package/lib/src/theme/ap-table/ap-table.css +6 -0
  44. package/lib/src/theme/css-var/index.js +1 -1
  45. package/package.json +1 -1
@@ -0,0 +1,288 @@
1
+ import { isVNode as H, defineComponent as J, useSlots as K, ref as h, computed as O, watch as R, unref as s, cloneVNode as Q, createVNode as d, mergeProps as v, openBlock as b, createElementBlock as P, Fragment as Y, withCtx as g, renderSlot as M, createTextVNode as Z, toDisplayString as ee, createBlock as N, resolveDynamicComponent as S, normalizeClass as te, withModifiers as ie, createCommentVNode as _ } from "vue";
2
+ import { Button as V, Flex as ne, Space as oe, Drawer as le } from "ant-design-vue";
3
+ import "../ap-form.vue.mjs";
4
+ import "../../hooks/index.mjs";
5
+ import { getSingleVNode as ae } from "../../utils/slot.mjs";
6
+ import "../../config-provider/index.mjs";
7
+ import { isBoolean as se, isUndefined as re, omit as ue } from "lodash-unified";
8
+ import "../style/drawer-form.css";
9
+ import { convertReactiveToRaw as de } from "../../utils/index.mjs";
10
+ import { useControllableValue as ce } from "../../hooks/useControllableValue.mjs";
11
+ import { useLocale as me } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import pe from "../ap-form.vue2.mjs";
14
+ function L(c) {
15
+ return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !H(c);
16
+ }
17
+ const je = /* @__PURE__ */ J({
18
+ __name: "drawer",
19
+ props: {
20
+ layout: {
21
+ default: "horizontal"
22
+ },
23
+ labelCol: {},
24
+ wrapperCol: {},
25
+ colon: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ labelAlign: {
30
+ default: "right"
31
+ },
32
+ labelWrap: {
33
+ type: Boolean
34
+ },
35
+ prefixCls: {},
36
+ requiredMark: {},
37
+ hideRequiredMark: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ rules: {},
42
+ validateMessages: {},
43
+ validateOnRuleChange: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ scrollToFirstError: {},
48
+ onSubmit: {},
49
+ name: {},
50
+ validateTrigger: {
51
+ default: "change"
52
+ },
53
+ size: {},
54
+ disabled: {
55
+ type: Boolean
56
+ },
57
+ onValuesChange: {},
58
+ onFieldsChange: {},
59
+ onFinishFailed: {},
60
+ onValidate: {},
61
+ initialValues: {},
62
+ open: {
63
+ type: Boolean,
64
+ default: void 0
65
+ },
66
+ "onUpdate:open": {},
67
+ drawerProps: {
68
+ default: () => ({})
69
+ },
70
+ title: {},
71
+ width: {
72
+ default: 378
73
+ },
74
+ onFinish: {},
75
+ submitter: {
76
+ type: [Boolean, Object],
77
+ default: () => ({
78
+ resetButtonProps: !1
79
+ })
80
+ },
81
+ showCancel: {
82
+ type: Boolean,
83
+ default: !0
84
+ },
85
+ submitTimeout: {},
86
+ resize: {
87
+ type: [Object, Boolean],
88
+ default: !1
89
+ }
90
+ },
91
+ emits: ["update:open"],
92
+ setup(c, {
93
+ expose: j,
94
+ emit: E
95
+ }) {
96
+ const n = c, F = K(), U = E, l = h(), m = h(), u = h(!1), {
97
+ value: z,
98
+ updateValue: f
99
+ } = ce(n, U, {
100
+ valuePropName: "open",
101
+ defaultValue: !1
102
+ }), p = O(() => {
103
+ var t, i, a, r;
104
+ const e = {
105
+ onResize: () => {
106
+ },
107
+ minWidth: 300,
108
+ maxWidth: window.innerWidth * 0.8,
109
+ resizeOnOpen: !0
110
+ };
111
+ return se(n.resize) ? n.resize ? e : {} : {
112
+ minWidth: ((t = n.resize) == null ? void 0 : t.minWidth) ?? e.minWidth,
113
+ maxWidth: ((i = n.resize) == null ? void 0 : i.maxWidth) ?? e.maxWidth,
114
+ onResize: ((a = n.resize) == null ? void 0 : a.onResize) ?? e.onResize,
115
+ resizeOnOpen: re((r = n.resize) == null ? void 0 : r.resizeOnOpen) ? e.onResize : n.resize.resizeOnOpen
116
+ };
117
+ }), y = h(C()), {
118
+ t: w
119
+ } = me(), {
120
+ e: D
121
+ } = fe("ap-form-drawer-form");
122
+ R(() => l.value, (e) => {
123
+ var t;
124
+ e && m.value && ((t = e.setFieldsValue) == null || t.call(e, m.value), m.value = void 0);
125
+ }), R(() => s(z), (e) => {
126
+ var t;
127
+ e && (t = s(p)) != null && t.resizeOnOpen && (y.value = C());
128
+ });
129
+ function C() {
130
+ var t;
131
+ const e = (t = s(p)) == null ? void 0 : t.minWidth;
132
+ return !e || e && e < n.width ? n.width : e;
133
+ }
134
+ const W = ae(F.trigger), B = W ? Q(W, {
135
+ onClick: () => {
136
+ f(!0);
137
+ }
138
+ }) : null, $ = O(() => {
139
+ var t, i, a, r;
140
+ const e = [];
141
+ if (n.submitter === !1)
142
+ return null;
143
+ if (n.showCancel) {
144
+ let o;
145
+ e.push(d(V, {
146
+ onClick: x,
147
+ disabled: u.value
148
+ }, L(o = w("ap.common.cancelText")) ? o : {
149
+ default: () => [o]
150
+ }));
151
+ }
152
+ return ((t = n.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(d(V, v(((i = n.submitter) == null ? void 0 : i.resetButtonProps) || {}, {
153
+ key: "submit",
154
+ disabled: u.value,
155
+ onClick: I
156
+ }), {
157
+ default: () => {
158
+ var o;
159
+ return [((o = n.submitter) == null ? void 0 : o.resetText) || w("ap.common.resetText")];
160
+ }
161
+ })), ((a = n.submitter) == null ? void 0 : a.submitButtonProps) !== !1 && e.push(d(V, v({
162
+ type: "primary",
163
+ key: "submit"
164
+ }, ((r = n.submitter) == null ? void 0 : r.submitButtonProps) || {}, {
165
+ loading: u.value,
166
+ onClick: A
167
+ }), {
168
+ default: () => {
169
+ var o;
170
+ return [((o = n.submitter) == null ? void 0 : o.submitText) || w("ap.common.okText")];
171
+ }
172
+ })), d(ne, {
173
+ justify: "flex-end"
174
+ }, {
175
+ default: () => [F.submitter ? F.submitter(e) : d(oe, null, L(e) ? e : {
176
+ default: () => [e]
177
+ })]
178
+ });
179
+ });
180
+ function q() {
181
+ var e, t;
182
+ (t = (e = p.value) == null ? void 0 : e.onResize) == null || t.call(e), document.addEventListener("mousemove", k), document.addEventListener("mouseup", T);
183
+ }
184
+ function k(e) {
185
+ const t = s(p), i = (document.body.offsetWidth || 1e3) - (e.clientX - document.body.offsetLeft), a = (t == null ? void 0 : t.minWidth) ?? (n.width || 800), r = (t == null ? void 0 : t.maxWidth) ?? window.innerWidth * 0.8;
186
+ let o = i;
187
+ i < a && (o = a), i > r && (o = r), y.value = o;
188
+ }
189
+ function T() {
190
+ document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", T);
191
+ }
192
+ function I() {
193
+ var e, t, i;
194
+ n.submitter !== !1 && ((e = l.value) == null || e.resetFields(), (i = (t = n.submitter) == null ? void 0 : t.onReset) == null || i.call(t));
195
+ }
196
+ async function A() {
197
+ var e, t, i, a;
198
+ if (n.submitter !== !1)
199
+ try {
200
+ const r = await ((e = l.value) == null ? void 0 : e.validateFields());
201
+ (i = (t = n.submitter) == null ? void 0 : t.onSubmit) == null || i.call(t), u.value = !0;
202
+ const o = (a = n.onFinish) == null ? void 0 : a.call(n, de(r));
203
+ if (n.submitTimeout && o instanceof Promise) {
204
+ const G = setTimeout(() => u.value = !1, n.submitTimeout);
205
+ o.finally(() => {
206
+ clearTimeout(G), u.value = !1;
207
+ });
208
+ }
209
+ await o && f(!1);
210
+ } finally {
211
+ u.value = !1;
212
+ }
213
+ }
214
+ function x() {
215
+ s(u) || f(!1);
216
+ }
217
+ function X(e) {
218
+ !e && s(u) || f(e);
219
+ }
220
+ return j({
221
+ resetFields: () => {
222
+ var e;
223
+ (e = l.value) == null || e.resetFields();
224
+ },
225
+ clearValidate: (e) => {
226
+ var t;
227
+ (t = l.value) == null || t.clearValidate(e);
228
+ },
229
+ validateFields: (e, t) => {
230
+ var i;
231
+ return (i = l.value) == null ? void 0 : i.validateFields(e, t);
232
+ },
233
+ getFieldsValue: (e) => {
234
+ var t;
235
+ return (t = l.value) == null ? void 0 : t.getFieldsValue(e);
236
+ },
237
+ validate: (e, t) => {
238
+ var i;
239
+ return (i = l.value) == null ? void 0 : i.validate(e, t);
240
+ },
241
+ scrollToField: (e, t = {}) => {
242
+ var i;
243
+ (i = l.value) == null || i.scrollToField(e, t);
244
+ },
245
+ setFieldValue: (e, t) => {
246
+ var i, a;
247
+ (a = (i = l.value) == null ? void 0 : i.setFieldValue) == null || a.call(i, e, t);
248
+ },
249
+ setFieldsValue: (e) => {
250
+ var t, i;
251
+ if (!l.value) {
252
+ m.value = e;
253
+ return;
254
+ }
255
+ (i = (t = l.value) == null ? void 0 : t.setFieldsValue) == null || i.call(t, e);
256
+ },
257
+ getInternalInstance: (e) => {
258
+ var t;
259
+ return (t = l.value) == null ? void 0 : t.getInternalInstance(e);
260
+ }
261
+ }), (e, t) => (b(), P(Y, null, [d(s(le), v(e.drawerProps, {
262
+ open: s(z),
263
+ "onUpdate:open": X,
264
+ onCancel: x,
265
+ width: y.value
266
+ }), {
267
+ title: g(() => [M(e.$slots, "title", {}, () => [Z(ee(n.title), 1)])]),
268
+ footer: g(() => [(b(), N(S($.value)))]),
269
+ default: g(() => [d(pe, v({
270
+ ref_key: "formRef",
271
+ ref: l
272
+ }, s(ue)(n, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
273
+ default: g(() => [M(e.$slots, "default")]),
274
+ _: 3
275
+ }, 16), e.resize ? (b(), P("div", {
276
+ key: 0,
277
+ class: te(s(D)("resize-bar")),
278
+ onMousedown: ie(q, ["stop", "prevent"])
279
+ }, null, 34)) : _("", !0)]),
280
+ _: 3
281
+ }, 16, ["open", "width"]), s(B) ? (b(), N(S(s(B)), {
282
+ key: 0
283
+ })) : _("", !0)], 64));
284
+ }
285
+ });
286
+ export {
287
+ je as default
288
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./drawer.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,21 +1,21 @@
1
- import { isVNode as $, defineComponent as q, useSlots as D, ref as h, watch as L, cloneVNode as A, computed as G, createVNode as u, mergeProps as p, unref as n, openBlock as F, createElementBlock as I, Fragment as W, withCtx as y, renderSlot as x, createTextVNode as H, toDisplayString as J, createElementVNode as K, normalizeClass as Q, createBlock as T, resolveDynamicComponent as N, createCommentVNode as X } from "vue";
2
- import { Button as V, Flex as Y, Space as Z, Modal as ee } from "ant-design-vue";
1
+ import { isVNode as q, defineComponent as D, useSlots as L, ref as h, watch as A, cloneVNode as G, computed as I, createVNode as u, mergeProps as p, unref as n, openBlock as F, createElementBlock as W, Fragment as H, withCtx as y, renderSlot as w, createTextVNode as J, toDisplayString as K, createElementVNode as Q, normalizeClass as X, createBlock as x, resolveDynamicComponent as N, createCommentVNode as Y } from "vue";
2
+ import { Button as V, Flex as Z, Space as ee, Modal as te } from "ant-design-vue";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
5
- import { getSingleVNode as te } from "../../utils/slot.mjs";
5
+ import { getSingleVNode as le } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { omit as le } from "lodash-unified";
7
+ import { omit as ae } from "lodash-unified";
8
8
  import "../style/modal-form.css";
9
- import { convertReactiveToRaw as ae } from "../../utils/index.mjs";
10
- import { useControllableValue as oe } from "../../hooks/useControllableValue.mjs";
9
+ import { convertReactiveToRaw as oe } from "../../utils/index.mjs";
10
+ import { useControllableValue as ie } from "../../hooks/useControllableValue.mjs";
11
11
  import { useLocale as ne } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as ie } from "../../config-provider/hooks/use-global-config.mjs";
13
- import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
14
- import re from "../ap-form.vue2.mjs";
12
+ import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
13
+ import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
14
+ import ue from "../ap-form.vue2.mjs";
15
15
  function P(d) {
16
- return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !$(d);
16
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !q(d);
17
17
  }
18
- const Re = /* @__PURE__ */ q({
18
+ const je = /* @__PURE__ */ D({
19
19
  __name: "index",
20
20
  props: {
21
21
  layout: {
@@ -82,72 +82,73 @@ const Re = /* @__PURE__ */ q({
82
82
  showCancel: {
83
83
  type: Boolean,
84
84
  default: !0
85
- }
85
+ },
86
+ submitTimeout: {}
86
87
  },
87
88
  emits: ["update:open"],
88
89
  setup(d, {
89
90
  expose: S,
90
91
  emit: _
91
92
  }) {
92
- const a = d, b = D(), R = _, o = h(), c = h(), r = h(!1), {
93
+ const a = d, b = L(), R = _, o = h(), c = h(), s = h(!1), {
93
94
  value: M,
94
95
  updateValue: m
95
- } = oe(a, R, {
96
+ } = ie(a, R, {
96
97
  valuePropName: "open",
97
98
  defaultValue: !1
98
99
  }), {
99
100
  t: v
100
- } = ne(), g = ie("uiMode", "aplus"), {
101
+ } = ne(), g = se("uiMode", "aplus"), {
101
102
  b: j,
102
103
  e: C
103
- } = se("ap-form-modal-form");
104
- L(() => o.value, (e) => {
104
+ } = re("ap-form-modal-form");
105
+ A(() => o.value, (e) => {
105
106
  var t;
106
107
  e && c.value && ((t = e.setFieldsValue) == null || t.call(e, c.value), c.value = void 0);
107
108
  });
108
- const B = te(b.trigger), k = B ? A(B, {
109
+ const B = le(b.trigger), T = B ? G(B, {
109
110
  onClick: () => {
110
111
  m(!0);
111
112
  }
112
- }) : null, O = G(() => {
113
- var t, l, s, f;
113
+ }) : null, O = I(() => {
114
+ var t, l, r, f;
114
115
  const e = [];
115
116
  if (a.submitter === !1)
116
117
  return null;
117
118
  if (a.showCancel) {
118
119
  let i;
119
120
  e.push(u(V, {
120
- onClick: w,
121
- disabled: r.value
121
+ onClick: k,
122
+ disabled: s.value
122
123
  }, P(i = v("ap.common.cancelText")) ? i : {
123
124
  default: () => [i]
124
125
  }));
125
126
  }
126
127
  return ((t = a.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, p(((l = a.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
127
128
  key: "submit",
128
- disabled: r.value,
129
+ disabled: s.value,
129
130
  onClick: z
130
131
  }), {
131
132
  default: () => {
132
133
  var i;
133
134
  return [((i = a.submitter) == null ? void 0 : i.resetText) || v("ap.common.resetText")];
134
135
  }
135
- })), ((s = a.submitter) == null ? void 0 : s.submitButtonProps) !== !1 && e.push(u(V, p({
136
+ })), ((r = a.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, p({
136
137
  type: "primary",
137
138
  key: "submit"
138
139
  }, ((f = a.submitter) == null ? void 0 : f.submitButtonProps) || {}, {
139
- loading: r.value,
140
+ loading: s.value,
140
141
  onClick: E
141
142
  }), {
142
143
  default: () => {
143
144
  var i;
144
145
  return [((i = a.submitter) == null ? void 0 : i.submitText) || v("ap.common.okText")];
145
146
  }
146
- })), u(Y, {
147
+ })), u(Z, {
147
148
  justify: "flex-end",
148
149
  class: C(n(g) === "admin" ? "footer-admin" : "footer")
149
150
  }, {
150
- default: () => [b.submitter ? b.submitter(e) : u(Z, null, P(e) ? e : {
151
+ default: () => [b.submitter ? b.submitter(e) : u(ee, null, P(e) ? e : {
151
152
  default: () => [e]
152
153
  })]
153
154
  });
@@ -157,20 +158,28 @@ const Re = /* @__PURE__ */ q({
157
158
  a.submitter !== !1 && ((e = o.value) == null || e.resetFields(), (l = (t = a.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
158
159
  }
159
160
  async function E() {
160
- var e, t, l, s;
161
+ var e, t, l, r;
161
162
  if (a.submitter !== !1)
162
163
  try {
163
164
  const f = await ((e = o.value) == null ? void 0 : e.validateFields());
164
- (l = (t = a.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), r.value = !0, await ((s = a.onFinish) == null ? void 0 : s.call(a, ae(f))) && m(!1);
165
+ (l = (t = a.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), s.value = !0;
166
+ const i = (r = a.onFinish) == null ? void 0 : r.call(a, oe(f));
167
+ if (a.submitTimeout && i instanceof Promise) {
168
+ const $ = setTimeout(() => s.value = !1, a.submitTimeout);
169
+ i.finally(() => {
170
+ clearTimeout($), s.value = !1;
171
+ });
172
+ }
173
+ await i && m(!1);
165
174
  } finally {
166
- r.value = !1;
175
+ s.value = !1;
167
176
  }
168
177
  }
169
- function w() {
170
- n(r) || m(!1);
178
+ function k() {
179
+ n(s) || m(!1);
171
180
  }
172
181
  function U(e) {
173
- !e && n(r) || m(e);
182
+ !e && n(s) || m(e);
174
183
  }
175
184
  return S({
176
185
  resetFields: () => {
@@ -198,8 +207,8 @@ const Re = /* @__PURE__ */ q({
198
207
  (l = o.value) == null || l.scrollToField(e, t);
199
208
  },
200
209
  setFieldValue: (e, t) => {
201
- var l, s;
202
- (s = (l = o.value) == null ? void 0 : l.setFieldValue) == null || s.call(l, e, t);
210
+ var l, r;
211
+ (r = (l = o.value) == null ? void 0 : l.setFieldValue) == null || r.call(l, e, t);
203
212
  },
204
213
  setFieldsValue: (e) => {
205
214
  var t, l;
@@ -213,10 +222,10 @@ const Re = /* @__PURE__ */ q({
213
222
  var t;
214
223
  return (t = o.value) == null ? void 0 : t.getInternalInstance(e);
215
224
  }
216
- }), (e, t) => (F(), I(W, null, [u(n(ee), p(e.modalProps, {
225
+ }), (e, t) => (F(), W(H, null, [u(n(te), p(e.modalProps, {
217
226
  open: n(M),
218
227
  "onUpdate:open": U,
219
- onCancel: w,
228
+ onCancel: k,
220
229
  footer: null,
221
230
  width: e.width,
222
231
  class: n(j)(),
@@ -226,22 +235,22 @@ const Re = /* @__PURE__ */ q({
226
235
  // 使用ModalForm你可能无法再自定义body的样式
227
236
  }
228
237
  }), {
229
- title: y(() => [x(e.$slots, "title", {}, () => [H(J(a.title), 1)])]),
230
- default: y(() => [K("div", {
231
- class: Q(n(C)(n(g) === "admin" ? "content-admin" : "content"))
232
- }, [u(re, p({
238
+ title: y(() => [w(e.$slots, "title", {}, () => [J(K(a.title), 1)])]),
239
+ default: y(() => [Q("div", {
240
+ class: X(n(C)(n(g) === "admin" ? "content-admin" : "content"))
241
+ }, [u(ue, p({
233
242
  ref_key: "formRef",
234
243
  ref: o
235
- }, n(le)(a, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
236
- default: y(() => [x(e.$slots, "default")]),
244
+ }, n(ae)(a, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
245
+ default: y(() => [w(e.$slots, "default")]),
237
246
  _: 3
238
- }, 16)], 2), (F(), T(N(O.value)))]),
247
+ }, 16)], 2), (F(), x(N(O.value)))]),
239
248
  _: 3
240
- }, 16, ["open", "width", "class", "body-style"]), n(k) ? (F(), T(N(n(k)), {
249
+ }, 16, ["open", "width", "class", "body-style"]), n(T) ? (F(), x(N(n(T)), {
241
250
  key: 0
242
- })) : X("", !0)], 64));
251
+ })) : Y("", !0)], 64));
243
252
  }
244
253
  });
245
254
  export {
246
- Re as default
255
+ je as default
247
256
  };
@@ -0,0 +1,10 @@
1
+ .aplus-ap-form-drawer-form__resize-bar {
2
+ width: 4px;
3
+ cursor: ew-resize;
4
+ position: absolute;
5
+ top: 0;
6
+ left: 0;
7
+ bottom: 0;
8
+ z-index: 100;
9
+ background-color: transparent;
10
+ }