@aplus-frontend/ui 0.0.33 → 0.0.34

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 (73) hide show
  1. package/es/index.mjs +217 -215
  2. package/es/src/ap-field/select/index.vue.mjs +36 -32
  3. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +27 -26
  4. package/es/src/ap-form/ap-form.vue2.mjs +11 -11
  5. package/es/src/ap-form/search-form/index.vue.mjs +79 -78
  6. package/es/src/ap-modal/utils/createModal.mjs +34 -31
  7. package/es/src/ap-table/ap-table.vue.d.ts +54 -11
  8. package/es/src/ap-table/ap-table.vue.mjs +171 -148
  9. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  10. package/es/src/ap-table/hooks/use-table-paging.mjs +47 -46
  11. package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
  12. package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
  13. package/es/src/ap-table/interface.d.ts +14 -2
  14. package/es/src/ap-table/style/ap-table.css +2 -0
  15. package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
  16. package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
  17. package/es/src/business/ap-select-layout/index.css +117 -0
  18. package/es/src/business/ap-select-layout/index.d.ts +4 -0
  19. package/es/src/business/ap-select-layout/interface.d.ts +9 -0
  20. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
  21. package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
  22. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
  23. package/es/src/business/index.d.ts +76 -1
  24. package/es/src/business/index.mjs +9 -6
  25. package/es/src/config-provider/config-provider.d.ts +144 -1
  26. package/es/src/config-provider/config-provider.mjs +35 -29
  27. package/es/src/config-provider/index.mjs +22 -20
  28. package/es/src/design-token/index.mjs +1 -1
  29. package/es/src/editable-table/form-item.vue.d.ts +7 -7
  30. package/es/src/editable-table/form-item.vue.mjs +2 -2
  31. package/es/src/editable-table/index.vue.d.ts +7 -7
  32. package/es/src/editable-table/index.vue.mjs +10 -10
  33. package/es/src/editable-table/interface.d.ts +1 -1
  34. package/es/src/index.mjs +188 -186
  35. package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
  36. package/es/src/theme/ap-table/ap-table.css +2 -0
  37. package/lib/index.js +1 -1
  38. package/lib/src/ap-field/select/index.vue.js +1 -1
  39. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  40. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  41. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  42. package/lib/src/ap-modal/utils/createModal.js +1 -1
  43. package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
  44. package/lib/src/ap-table/ap-table.vue.js +1 -1
  45. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
  46. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  47. package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
  48. package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
  49. package/lib/src/ap-table/interface.d.ts +14 -2
  50. package/lib/src/ap-table/style/ap-table.css +2 -0
  51. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
  52. package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
  53. package/lib/src/business/ap-select-layout/index.css +117 -0
  54. package/lib/src/business/ap-select-layout/index.d.ts +4 -0
  55. package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
  56. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
  57. package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
  58. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
  59. package/lib/src/business/index.d.ts +76 -1
  60. package/lib/src/business/index.js +1 -1
  61. package/lib/src/config-provider/config-provider.d.ts +144 -1
  62. package/lib/src/config-provider/config-provider.js +1 -1
  63. package/lib/src/config-provider/index.js +1 -1
  64. package/lib/src/design-token/index.js +1 -1
  65. package/lib/src/editable-table/form-item.vue.d.ts +7 -7
  66. package/lib/src/editable-table/form-item.vue.js +1 -1
  67. package/lib/src/editable-table/index.vue.d.ts +7 -7
  68. package/lib/src/editable-table/index.vue.js +1 -1
  69. package/lib/src/editable-table/interface.d.ts +1 -1
  70. package/lib/src/index.js +1 -1
  71. package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
  72. package/lib/src/theme/ap-table/ap-table.css +2 -0
  73. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { isVNode as C, defineComponent as _, useSlots as k, watch as S, shallowRef as b, computed as h, unref as n, createVNode as x, mergeProps as m, openBlock as a, createBlock as u, withCtx as N, createElementBlock as R, Fragment as j, renderList as B, resolveDynamicComponent as P } from "vue";
2
- import { Col as $, Row as v } from "ant-design-vue";
3
- import { pick as F } from "lodash-unified";
4
- import { apFormItemColPropKeys as D } from "../constant.mjs";
5
- import { genRealChildren as i, buildColSpan as I, getStringName as O } from "./helper.mjs";
1
+ import { isVNode as k, defineComponent as w, useSlots as _, watch as S, shallowRef as b, computed as x, unref as n, createVNode as N, mergeProps as c, openBlock as a, createBlock as u, withCtx as R, createElementBlock as h, Fragment as j, renderList as B, resolveDynamicComponent as P } from "vue";
2
+ import { Col as v, Row as F } from "ant-design-vue";
3
+ import { pick as I } from "lodash-unified";
4
+ import { apFormItemColPropKeys as O } from "../constant.mjs";
5
+ import { genRealChildren as i, buildColSpan as V, getStringName as $ } from "./helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import "../style/ap-form-item-group.css";
8
- import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
9
- function A(r) {
10
- return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !C(r);
8
+ import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
9
+ function D(o) {
10
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !k(o);
11
11
  }
12
- const M = /* @__PURE__ */ _({
12
+ const M = /* @__PURE__ */ w({
13
13
  name: "ApFormItemGroup",
14
14
  __name: "index",
15
15
  props: {
@@ -27,31 +27,32 @@ const M = /* @__PURE__ */ _({
27
27
  default: 3
28
28
  }
29
29
  },
30
- setup(r) {
30
+ setup(o) {
31
31
  const {
32
32
  b: s
33
- } = V("ap-form-item-group"), {
33
+ } = A("ap-form-item-group"), {
34
34
  countPerRow: f,
35
35
  ...d
36
- } = r, p = k();
37
- S(() => p.default(), (e) => {
38
- c.value = i(e);
36
+ } = o, p = _();
37
+ S(() => p.default(), (t) => {
38
+ l.value = i(t);
39
39
  });
40
- const c = b(i(p.default())), g = h(() => n(c).map((e, l) => {
41
- const t = e.props, o = F(t, D), w = o != null && o.span ? {} : I(f), y = !!(t != null && t.hidden);
42
- return x($, m({
43
- key: `${l}-${O(t.name)}`
44
- }, w, o, {
45
- class: y ? s("col-hidden") : ""
46
- }), A(e) ? e : {
47
- default: () => [e]
48
- });
40
+ const l = b(i(p.default())), g = x(() => n(l).map((t, m) => {
41
+ const e = t.props, r = I(e, O), y = r != null && r.span ? {} : V(f), C = !!(e != null && e.hidden);
42
+ return {
43
+ key: `${m}-${$(e.name)}`,
44
+ node: N(v, c(y, r, {
45
+ class: C ? s("col-hidden") : ""
46
+ }), D(t) ? t : {
47
+ default: () => [t]
48
+ })
49
+ };
49
50
  }));
50
- return (e, l) => (a(), u(n(v), m({
51
+ return (t, m) => (a(), u(n(F), c({
51
52
  class: n(s)()
52
53
  }, d), {
53
- default: N(() => [(a(!0), R(j, null, B(g.value, (t, o) => (a(), u(P(t), {
54
- key: `${o}-${Date.now()}`
54
+ default: R(() => [(a(!0), h(j, null, B(g.value, (e) => (a(), u(P(e.node), {
55
+ key: e.key
55
56
  }))), 128))]),
56
57
  _: 1
57
58
  }, 16, ["class"]));
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as A, ref as E, reactive as N, nextTick as O, toRaw as m, computed as w, openBlock as j, createBlock as S, unref as C, mergeProps as W, withCtx as q, renderSlot as z } from "vue";
2
- import { Form as L } from "ant-design-vue";
3
- import { useProvideForm as P } from "./context.mjs";
4
- import { isArray as g, omit as D } from "lodash-unified";
5
- import { INTERNAL_FORM_INSTANCE_MARK as K } from "./constant.mjs";
2
+ import { Form as D } from "ant-design-vue";
3
+ import { useProvideForm as L } from "./context.mjs";
4
+ import { isArray as g, cloneDeep as P, omit as K } from "lodash-unified";
5
+ import { INTERNAL_FORM_INSTANCE_MARK as $ } from "./constant.mjs";
6
6
  import { isDef as p } from "../utils/index.mjs";
7
- const X = /* @__PURE__ */ A({
7
+ const Y = /* @__PURE__ */ A({
8
8
  __name: "ap-form",
9
9
  props: {
10
10
  layout: { default: "horizontal" },
@@ -53,7 +53,7 @@ const X = /* @__PURE__ */ A({
53
53
  const R = () => {
54
54
  var e;
55
55
  (e = i.value) == null || e.resetFields(), O(() => {
56
- Object.keys(o).forEach((t) => delete o[t]), Object.assign(o, f), d();
56
+ Object.keys(o).forEach((t) => delete o[t]), Object.assign(o, P(f)), d();
57
57
  });
58
58
  }, B = (e) => {
59
59
  var t;
@@ -91,7 +91,7 @@ const X = /* @__PURE__ */ A({
91
91
  f[t] = e;
92
92
  }
93
93
  function x(e) {
94
- if (e !== K) {
94
+ if (e !== $) {
95
95
  console.warn("getInternalInstance should only used at internal");
96
96
  return;
97
97
  }
@@ -108,7 +108,7 @@ const X = /* @__PURE__ */ A({
108
108
  });
109
109
  }
110
110
  }
111
- return P({
111
+ return L({
112
112
  model: w(() => o),
113
113
  updateModel: h,
114
114
  internalInstance: {
@@ -127,10 +127,10 @@ const X = /* @__PURE__ */ A({
127
127
  setFieldValue: F,
128
128
  registerWatch: c,
129
129
  getInternalInstance: x
130
- }), (e, t) => (j(), S(C(L), W({
130
+ }), (e, t) => (j(), S(C(D), W({
131
131
  ref_key: "formRef",
132
132
  ref: i
133
- }, C(D)(a, ["initialValues"]), { model: o }), {
133
+ }, C(K)(a, ["initialValues"]), { model: o }), {
134
134
  default: q(() => [
135
135
  z(e.$slots, "default")
136
136
  ]),
@@ -139,5 +139,5 @@ const X = /* @__PURE__ */ A({
139
139
  }
140
140
  });
141
141
  export {
142
- X as default
142
+ Y as default
143
143
  };
@@ -1,24 +1,25 @@
1
- import { isVNode as te, defineComponent as ae, useSlots as oe, ref as le, unref as t, shallowRef as j, computed as g, watch as D, cloneVNode as ne, createVNode as l, Fragment as F, openBlock as c, createBlock as h, mergeProps as re, withCtx as R, resolveDynamicComponent as b, createElementBlock as se, renderList as ue } from "vue";
2
- import { Col as v, Flex as O, Space as ie, Button as B, Row as pe } from "ant-design-vue";
1
+ import { isVNode as oe, defineComponent as ae, useSlots as le, ref as ne, unref as t, shallowRef as j, computed as g, watch as M, cloneVNode as re, createVNode as l, Fragment as S, openBlock as c, createBlock as h, mergeProps as se, withCtx as B, resolveDynamicComponent as R, createElementBlock as ue, renderList as ie } from "vue";
2
+ import { Col as b, Flex as D, Space as pe, Button as v, Row as ce } from "ant-design-vue";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../ap-form-item.vue2.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { genRealChildren as $ } from "../ap-form-item-group/helper.mjs";
7
- import { DoubleRightOutlined as ce } from "@ant-design/icons-vue";
6
+ import { genRealChildren as O } from "../ap-form-item-group/helper.mjs";
7
+ import { DoubleRightOutlined as de } from "@ant-design/icons-vue";
8
8
  import "../../config-provider/index.mjs";
9
9
  import "../style/search-form.css";
10
- import { isArray as de, omit as fe } from "lodash-unified";
11
- import { isDef as me } from "../../utils/index.mjs";
12
- import { diffFormItem as he } from "./utils.mjs";
13
- import { useControllableValue as xe } from "../../hooks/useControllableValue.mjs";
14
- import { useNamespace as Ce } from "../../config-provider/hooks/use-namespace.mjs";
15
- import { useLocale as ge } from "../../config-provider/hooks/use-locale.mjs";
16
- import L from "../ap-form-item.vue.mjs";
17
- import ye from "../ap-form.vue2.mjs";
18
- function _e(d) {
19
- return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !te(d);
10
+ import { isArray as fe, omit as me } from "lodash-unified";
11
+ import { isDef as he } from "../../utils/index.mjs";
12
+ import { diffFormItem as xe } from "./utils.mjs";
13
+ import { useControllableValue as Ce } from "../../hooks/useControllableValue.mjs";
14
+ import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
15
+ import { useGlobalConfig as ye } from "../../config-provider/hooks/use-global-config.mjs";
16
+ import { useLocale as _e } from "../../config-provider/hooks/use-locale.mjs";
17
+ import $ from "../ap-form-item.vue.mjs";
18
+ import Fe from "../ap-form.vue2.mjs";
19
+ function Se(d) {
20
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !oe(d);
20
21
  }
21
- const i = 24, $e = /* @__PURE__ */ ae({
22
+ const i = 24, qe = /* @__PURE__ */ ae({
22
23
  name: "ApFormSearchForm",
23
24
  __name: "index",
24
25
  props: {
@@ -98,55 +99,55 @@ const i = 24, $e = /* @__PURE__ */ ae({
98
99
  },
99
100
  emits: ["update:collapse"],
100
101
  setup(d, {
101
- expose: M,
102
+ expose: L,
102
103
  emit: q
103
104
  }) {
104
105
  var k;
105
- const r = oe(), a = d, z = q, {
106
+ const r = le(), o = d, z = q, {
106
107
  value: f,
107
108
  updateValue: U
108
- } = xe(a, z, {
109
+ } = Ce(o, z, {
109
110
  valuePropName: "collapse",
110
111
  defaultValuePropName: "defaultCollapse"
111
112
  }), {
112
113
  b: W
113
- } = Ce("ap-form-search-form"), {
114
+ } = ge("ap-form-search-form"), G = ye("uiMode"), {
114
115
  t: w
115
- } = ge(), x = le();
116
- function G() {
117
- U(!t(f));
118
- }
116
+ } = _e(), x = ne();
119
117
  function H() {
120
- var e, o;
121
- (o = (e = x.value) == null ? void 0 : e.validateFields()) == null || o.then(a.onSubmit);
118
+ U(!t(f));
122
119
  }
123
120
  function J() {
124
- var e, o, n;
125
- a.customReset || (o = (e = x.value) == null ? void 0 : e.resetFields) == null || o.call(e), (n = a.onReset) == null || n.call(a);
121
+ var e, a;
122
+ (a = (e = x.value) == null ? void 0 : e.validateFields()) == null || a.then(o.onSubmit);
123
+ }
124
+ function K() {
125
+ var e, a, n;
126
+ o.customReset || (a = (e = x.value) == null ? void 0 : e.resetFields) == null || a.call(e), (n = o.onReset) == null || n.call(o);
126
127
  }
127
128
  let E = [];
128
- const y = j($(r.default())), m = j((k = r.extra) == null ? void 0 : k.call(r)), N = g(() => Math.floor(i / a.countPerRow));
129
- D(() => r.default(), (e) => {
130
- E = y.value, y.value = $(e);
131
- }), D(() => {
129
+ const y = j(O(r.default())), m = j((k = r.extra) == null ? void 0 : k.call(r)), N = g(() => Math.floor(i / o.countPerRow));
130
+ M(() => r.default(), (e) => {
131
+ E = y.value, y.value = O(e);
132
+ }), M(() => {
132
133
  var e;
133
134
  return (e = r.extra) == null ? void 0 : e.call(r);
134
135
  }, (e) => {
135
136
  m.value = e;
136
137
  });
137
- const K = (e) => me(e) ? (de(e) ? e : [e]).join("") : Date.now(), _ = g(() => {
138
- const e = he(E, y.value), o = [], n = [], s = t(N);
139
- let S = 0;
138
+ const Q = (e) => he(e) ? (fe(e) ? e : [e]).join("") : Date.now(), _ = g(() => {
139
+ const e = xe(E, y.value), a = [], n = [], s = t(N);
140
+ let F = 0;
140
141
  e.forEach((u) => {
141
142
  const p = u.props;
142
- p != null && p.hidden ? o.push(u) : (S += p.span || s, n.push(u));
143
+ p != null && p.hidden ? a.push(u) : (F += p.span || s, n.push(u));
143
144
  });
144
- const A = i - (S + s) % i, X = A < s ? i : A, P = i - s * (t(m) && !a.extraInAction ? 2 : 1), Y = !a.forceExpand && S > P;
145
+ const A = i - (F + s) % i, Y = A < s ? i : A, P = i - s * (t(m) && !o.extraInAction ? 2 : 1), Z = !o.forceExpand && F > P;
145
146
  let T = 0, V = 0;
146
- const Z = n.map((u, p) => {
147
+ const ee = n.map((u, p) => {
147
148
  const C = u.props, I = C.span || s;
148
- if (T += I, !a.forceExpand && t(f) && T > P) {
149
- o.push(ne(u, {
149
+ if (T += I, !o.forceExpand && t(f) && T > P) {
150
+ a.push(re(u, {
150
151
  hidden: !0
151
152
  }));
152
153
  return;
@@ -154,77 +155,77 @@ const i = 24, $e = /* @__PURE__ */ ae({
154
155
  return V += I, {
155
156
  node: u,
156
157
  span: C.span || s,
157
- key: `ApFormSearchFormItem-${p}-${K(C.name)}-${C._signal}`
158
+ key: `ApFormSearchFormItem-${p}-${Q(C.name)}-${C._signal}`
158
159
  };
159
- }).filter(Boolean), ee = i - V - s;
160
+ }).filter(Boolean), te = i - V - s;
160
161
  return {
161
- hideNode: l(F, null, [o]),
162
- nodes: Z,
163
- defaultExtraSpan: X,
164
- actualExtraSpan: ee,
165
- showCollapse: Y
162
+ hideNode: l(S, null, [a]),
163
+ nodes: ee,
164
+ defaultExtraSpan: Y,
165
+ actualExtraSpan: te,
166
+ showCollapse: Z
166
167
  };
167
- }), Q = g(() => {
168
+ }), X = g(() => {
168
169
  let e;
169
- const o = t(_);
170
- return l(F, null, [l(v, {
170
+ const a = t(_);
171
+ return l(S, null, [l(b, {
171
172
  span: t(t(N))
172
173
  }, {
173
- default: () => [l(L, null, {
174
- default: () => [l(O, {
174
+ default: () => [l($, null, {
175
+ default: () => [l(D, {
175
176
  justify: "space-between"
176
177
  }, {
177
- default: () => [l(ie, null, {
178
- default: () => [l(B, {
178
+ default: () => [l(pe, null, {
179
+ default: () => [l(v, {
179
180
  type: "primary",
180
- onClick: H,
181
- loading: a.submitLoading,
181
+ onClick: J,
182
+ loading: o.submitLoading,
182
183
  htmlType: "submit"
183
184
  }, {
184
- default: () => [a.searchText || w("ap.apForm.search.search")]
185
- }), l(B, {
186
- onClick: J
185
+ default: () => [o.searchText || w("ap.apForm.search.search")]
186
+ }), l(v, {
187
+ onClick: K
187
188
  }, {
188
- default: () => [a.resetText || w("ap.apForm.search.reset")]
189
- }), o.showCollapse ? l(B, {
190
- onClick: G,
191
- icon: l(ce, {
192
- style: "color:#B8C3D1",
189
+ default: () => [o.resetText || w("ap.apForm.search.reset")]
190
+ }), a.showCollapse ? l(v, {
191
+ onClick: H,
192
+ icon: l(de, {
193
+ style: G.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
193
194
  rotate: t(f) ? 90 : -90
194
195
  }, null)
195
196
  }, null) : null]
196
- }), a.extraInAction ? t(m) : null]
197
+ }), o.extraInAction ? t(m) : null]
197
198
  })]
198
199
  })]
199
- }), !a.extraInAction && t(m) ? l(v, {
200
- span: t(f) ? o.actualExtraSpan : o.defaultExtraSpan
200
+ }), !o.extraInAction && t(m) ? l(b, {
201
+ span: t(f) ? a.actualExtraSpan : a.defaultExtraSpan
201
202
  }, {
202
- default: () => [l(L, null, {
203
- default: () => [l(O, {
204
- justify: !t(f) && o.defaultExtraSpan === i ? "start" : "end"
205
- }, _e(e = t(m)) ? e : {
203
+ default: () => [l($, null, {
204
+ default: () => [l(D, {
205
+ justify: !t(f) && a.defaultExtraSpan === i ? "start" : "end"
206
+ }, Se(e = t(m)) ? e : {
206
207
  default: () => [e]
207
208
  })]
208
209
  })]
209
210
  }) : null]);
210
211
  });
211
- return M({
212
+ return L({
212
213
  apForm: g(() => t(x))
213
- }), (e, o) => (c(), h(ye, re({
214
+ }), (e, a) => (c(), h(Fe, se({
214
215
  class: t(W)(),
215
216
  ref_key: "apForm",
216
217
  ref: x
217
- }, t(fe)(a, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
218
- default: R(() => [(c(), h(b(_.value.hideNode))), l(t(pe), {
218
+ }, t(me)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
219
+ default: B(() => [(c(), h(R(_.value.hideNode))), l(t(ce), {
219
220
  gutter: 16
220
221
  }, {
221
- default: R(() => [(c(!0), se(F, null, ue(_.value.nodes, (n) => (c(), h(t(v), {
222
+ default: B(() => [(c(!0), ue(S, null, ie(_.value.nodes, (n) => (c(), h(t(b), {
222
223
  key: n.key,
223
224
  span: n.span
224
225
  }, {
225
- default: R(() => [(c(), h(b(n.node)))]),
226
+ default: B(() => [(c(), h(R(n.node)))]),
226
227
  _: 2
227
- }, 1032, ["span"]))), 128)), (c(), h(b(Q.value)))]),
228
+ }, 1032, ["span"]))), 128)), (c(), h(R(X.value)))]),
228
229
  _: 1
229
230
  })]),
230
231
  _: 1
@@ -232,5 +233,5 @@ const i = 24, $e = /* @__PURE__ */ ae({
232
233
  }
233
234
  });
234
235
  export {
235
- $e as default
236
+ qe as default
236
237
  };
@@ -1,37 +1,38 @@
1
- import { render as d, defineComponent as h, createVNode as m, mergeProps as f, h as u } from "vue";
2
- import { Modal as C } from "ant-design-vue";
3
- const k = (a) => {
4
- let r, t;
5
- function s() {
1
+ import { render as p, defineComponent as f, createVNode as l, mergeProps as m, h as u } from "vue";
2
+ import { ConfigProvider as C, Modal as g } from "ant-design-vue";
3
+ import { globalConfigCached as O } from "../../config-provider/config-provider.mjs";
4
+ const L = (s) => {
5
+ let r, n;
6
+ function a() {
6
7
  r && r(!1), setTimeout(() => {
7
- d(null, o), i.removeChild(o);
8
+ p(null, t), i.removeChild(t);
8
9
  }, 500);
9
10
  }
10
11
  function c(e) {
11
- t && t(e);
12
+ n && n(e);
12
13
  }
13
- const l = /* @__PURE__ */ h({
14
+ const h = /* @__PURE__ */ f({
14
15
  data() {
15
16
  return {
16
17
  open: !0,
17
- props: a
18
+ props: s
18
19
  };
19
20
  },
20
21
  methods: {
21
22
  async handleCancel(e) {
22
- var n, p;
23
- (n = this.props) != null && n.onCancel && await ((p = this.props) == null ? void 0 : p.onCancel(e)), s();
23
+ var o, d;
24
+ (o = this.props) != null && o.onCancel && await ((d = this.props) == null ? void 0 : d.onCancel(e)), a();
24
25
  },
25
26
  async handleOk(e) {
26
- var n;
27
+ var o;
27
28
  try {
28
- t({
29
+ n({
29
30
  confirmLoading: !0
30
- }), (n = this.props) != null && n.onOk && await this.props.onOk(e), t({
31
+ }), (o = this.props) != null && o.onOk && await this.props.onOk(e), n({
31
32
  confirmLoading: !1
32
- }), s();
33
+ }), a();
33
34
  } catch {
34
- t({
35
+ n({
35
36
  confirmLoading: !1
36
37
  });
37
38
  }
@@ -40,7 +41,7 @@ const k = (a) => {
40
41
  created() {
41
42
  r = (e) => {
42
43
  this.open = e;
43
- }, t = (e) => {
44
+ }, n = (e) => {
44
45
  this.props = {
45
46
  ...this.props,
46
47
  ...e
@@ -51,24 +52,26 @@ const k = (a) => {
51
52
  const {
52
53
  ...e
53
54
  } = this.props;
54
- return delete e.onCancel, delete e.onOk, m(C, f({
55
- open: this.open,
56
- destroyOnClose: !0,
57
- onCancel: this.handleCancel,
58
- onOk: this.handleOk
59
- }, e), {
60
- default: () => {
61
- var n;
62
- return [(n = this.props) == null ? void 0 : n.content];
63
- }
55
+ return delete e.onCancel, delete e.onOk, l(C, O.value, {
56
+ default: () => [l(g, m({
57
+ open: this.open,
58
+ destroyOnClose: !0,
59
+ onCancel: this.handleCancel,
60
+ onOk: this.handleOk
61
+ }, e), {
62
+ default: () => {
63
+ var o;
64
+ return [(o = this.props) == null ? void 0 : o.content];
65
+ }
66
+ })]
64
67
  });
65
68
  }
66
- }), i = a.getContainer || document.body, o = document.createElement("div");
67
- return i.appendChild(o), d(u(l), o), {
68
- destroy: s,
69
+ }), i = s.getContainer || document.body, t = document.createElement("div");
70
+ return i.appendChild(t), p(u(h), t), {
71
+ destroy: a,
69
72
  update: c
70
73
  };
71
74
  };
72
75
  export {
73
- k as createModal
76
+ L as createModal
74
77
  };