@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.
- package/es/index.mjs +217 -215
- package/es/src/ap-field/select/index.vue.mjs +36 -32
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +27 -26
- package/es/src/ap-form/ap-form.vue2.mjs +11 -11
- package/es/src/ap-form/search-form/index.vue.mjs +79 -78
- package/es/src/ap-modal/utils/createModal.mjs +34 -31
- package/es/src/ap-table/ap-table.vue.d.ts +54 -11
- package/es/src/ap-table/ap-table.vue.mjs +171 -148
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +47 -46
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
- package/es/src/ap-table/interface.d.ts +14 -2
- package/es/src/ap-table/style/ap-table.css +2 -0
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/es/src/business/ap-select-layout/index.css +117 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -0
- package/es/src/business/ap-select-layout/interface.d.ts +9 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
- package/es/src/business/index.d.ts +76 -1
- package/es/src/business/index.mjs +9 -6
- package/es/src/config-provider/config-provider.d.ts +144 -1
- package/es/src/config-provider/config-provider.mjs +35 -29
- package/es/src/config-provider/index.mjs +22 -20
- package/es/src/design-token/index.mjs +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +7 -7
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +7 -7
- package/es/src/editable-table/index.vue.mjs +10 -10
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/index.mjs +188 -186
- package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/es/src/theme/ap-table/ap-table.css +2 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
- package/lib/src/ap-table/interface.d.ts +14 -2
- package/lib/src/ap-table/style/ap-table.css +2 -0
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/lib/src/business/ap-select-layout/index.css +117 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -0
- package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
- package/lib/src/business/index.d.ts +76 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +144 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +7 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +7 -7
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/lib/src/theme/ap-table/ap-table.css +2 -0
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
3
|
-
import { pick as
|
|
4
|
-
import { apFormItemColPropKeys as
|
|
5
|
-
import { genRealChildren as i, buildColSpan as
|
|
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
|
|
9
|
-
function
|
|
10
|
-
return typeof
|
|
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(
|
|
30
|
+
setup(o) {
|
|
31
31
|
const {
|
|
32
32
|
b: s
|
|
33
|
-
} =
|
|
33
|
+
} = A("ap-form-item-group"), {
|
|
34
34
|
countPerRow: f,
|
|
35
35
|
...d
|
|
36
|
-
} =
|
|
37
|
-
S(() => p.default(), (
|
|
38
|
-
|
|
36
|
+
} = o, p = _();
|
|
37
|
+
S(() => p.default(), (t) => {
|
|
38
|
+
l.value = i(t);
|
|
39
39
|
});
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
key: `${
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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 (
|
|
51
|
+
return (t, m) => (a(), u(n(F), c({
|
|
51
52
|
class: n(s)()
|
|
52
53
|
}, d), {
|
|
53
|
-
default:
|
|
54
|
-
key:
|
|
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
|
|
3
|
-
import { useProvideForm as
|
|
4
|
-
import { isArray as g, omit as
|
|
5
|
-
import { INTERNAL_FORM_INSTANCE_MARK as
|
|
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
|
|
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 !==
|
|
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
|
|
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(
|
|
130
|
+
}), (e, t) => (j(), S(C(D), W({
|
|
131
131
|
ref_key: "formRef",
|
|
132
132
|
ref: i
|
|
133
|
-
}, C(
|
|
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
|
-
|
|
142
|
+
Y as default
|
|
143
143
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
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
|
|
7
|
-
import { DoubleRightOutlined as
|
|
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
|
|
11
|
-
import { isDef as
|
|
12
|
-
import { diffFormItem as
|
|
13
|
-
import { useControllableValue as
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
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,
|
|
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:
|
|
102
|
+
expose: L,
|
|
102
103
|
emit: q
|
|
103
104
|
}) {
|
|
104
105
|
var k;
|
|
105
|
-
const r =
|
|
106
|
+
const r = le(), o = d, z = q, {
|
|
106
107
|
value: f,
|
|
107
108
|
updateValue: U
|
|
108
|
-
} =
|
|
109
|
+
} = Ce(o, z, {
|
|
109
110
|
valuePropName: "collapse",
|
|
110
111
|
defaultValuePropName: "defaultCollapse"
|
|
111
112
|
}), {
|
|
112
113
|
b: W
|
|
113
|
-
} =
|
|
114
|
+
} = ge("ap-form-search-form"), G = ye("uiMode"), {
|
|
114
115
|
t: w
|
|
115
|
-
} =
|
|
116
|
-
function G() {
|
|
117
|
-
U(!t(f));
|
|
118
|
-
}
|
|
116
|
+
} = _e(), x = ne();
|
|
119
117
|
function H() {
|
|
120
|
-
|
|
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,
|
|
125
|
-
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(
|
|
129
|
-
|
|
130
|
-
E = y.value, y.value =
|
|
131
|
-
}),
|
|
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
|
|
138
|
-
const e =
|
|
139
|
-
let
|
|
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 ?
|
|
143
|
+
p != null && p.hidden ? a.push(u) : (F += p.span || s, n.push(u));
|
|
143
144
|
});
|
|
144
|
-
const A = i - (
|
|
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
|
|
147
|
+
const ee = n.map((u, p) => {
|
|
147
148
|
const C = u.props, I = C.span || s;
|
|
148
|
-
if (T += I, !
|
|
149
|
-
|
|
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}-${
|
|
158
|
+
key: `ApFormSearchFormItem-${p}-${Q(C.name)}-${C._signal}`
|
|
158
159
|
};
|
|
159
|
-
}).filter(Boolean),
|
|
160
|
+
}).filter(Boolean), te = i - V - s;
|
|
160
161
|
return {
|
|
161
|
-
hideNode: l(
|
|
162
|
-
nodes:
|
|
163
|
-
defaultExtraSpan:
|
|
164
|
-
actualExtraSpan:
|
|
165
|
-
showCollapse:
|
|
162
|
+
hideNode: l(S, null, [a]),
|
|
163
|
+
nodes: ee,
|
|
164
|
+
defaultExtraSpan: Y,
|
|
165
|
+
actualExtraSpan: te,
|
|
166
|
+
showCollapse: Z
|
|
166
167
|
};
|
|
167
|
-
}),
|
|
168
|
+
}), X = g(() => {
|
|
168
169
|
let e;
|
|
169
|
-
const
|
|
170
|
-
return l(
|
|
170
|
+
const a = t(_);
|
|
171
|
+
return l(S, null, [l(b, {
|
|
171
172
|
span: t(t(N))
|
|
172
173
|
}, {
|
|
173
|
-
default: () => [l(
|
|
174
|
-
default: () => [l(
|
|
174
|
+
default: () => [l($, null, {
|
|
175
|
+
default: () => [l(D, {
|
|
175
176
|
justify: "space-between"
|
|
176
177
|
}, {
|
|
177
|
-
default: () => [l(
|
|
178
|
-
default: () => [l(
|
|
178
|
+
default: () => [l(pe, null, {
|
|
179
|
+
default: () => [l(v, {
|
|
179
180
|
type: "primary",
|
|
180
|
-
onClick:
|
|
181
|
-
loading:
|
|
181
|
+
onClick: J,
|
|
182
|
+
loading: o.submitLoading,
|
|
182
183
|
htmlType: "submit"
|
|
183
184
|
}, {
|
|
184
|
-
default: () => [
|
|
185
|
-
}), l(
|
|
186
|
-
onClick:
|
|
185
|
+
default: () => [o.searchText || w("ap.apForm.search.search")]
|
|
186
|
+
}), l(v, {
|
|
187
|
+
onClick: K
|
|
187
188
|
}, {
|
|
188
|
-
default: () => [
|
|
189
|
-
}),
|
|
190
|
-
onClick:
|
|
191
|
-
icon: l(
|
|
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
|
-
}),
|
|
197
|
+
}), o.extraInAction ? t(m) : null]
|
|
197
198
|
})]
|
|
198
199
|
})]
|
|
199
|
-
}), !
|
|
200
|
-
span: t(f) ?
|
|
200
|
+
}), !o.extraInAction && t(m) ? l(b, {
|
|
201
|
+
span: t(f) ? a.actualExtraSpan : a.defaultExtraSpan
|
|
201
202
|
}, {
|
|
202
|
-
default: () => [l(
|
|
203
|
-
default: () => [l(
|
|
204
|
-
justify: !t(f) &&
|
|
205
|
-
},
|
|
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
|
|
212
|
+
return L({
|
|
212
213
|
apForm: g(() => t(x))
|
|
213
|
-
}), (e,
|
|
214
|
+
}), (e, a) => (c(), h(Fe, se({
|
|
214
215
|
class: t(W)(),
|
|
215
216
|
ref_key: "apForm",
|
|
216
217
|
ref: x
|
|
217
|
-
}, t(
|
|
218
|
-
default:
|
|
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:
|
|
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:
|
|
226
|
+
default: B(() => [(c(), h(R(n.node)))]),
|
|
226
227
|
_: 2
|
|
227
|
-
}, 1032, ["span"]))), 128)), (c(), h(
|
|
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
|
-
|
|
236
|
+
qe as default
|
|
236
237
|
};
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { render as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
+
p(null, t), i.removeChild(t);
|
|
8
9
|
}, 500);
|
|
9
10
|
}
|
|
10
11
|
function c(e) {
|
|
11
|
-
|
|
12
|
+
n && n(e);
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const h = /* @__PURE__ */ f({
|
|
14
15
|
data() {
|
|
15
16
|
return {
|
|
16
17
|
open: !0,
|
|
17
|
-
props:
|
|
18
|
+
props: s
|
|
18
19
|
};
|
|
19
20
|
},
|
|
20
21
|
methods: {
|
|
21
22
|
async handleCancel(e) {
|
|
22
|
-
var
|
|
23
|
-
(
|
|
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
|
|
27
|
+
var o;
|
|
27
28
|
try {
|
|
28
|
-
|
|
29
|
+
n({
|
|
29
30
|
confirmLoading: !0
|
|
30
|
-
}), (
|
|
31
|
+
}), (o = this.props) != null && o.onOk && await this.props.onOk(e), n({
|
|
31
32
|
confirmLoading: !1
|
|
32
|
-
}),
|
|
33
|
+
}), a();
|
|
33
34
|
} catch {
|
|
34
|
-
|
|
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
|
-
},
|
|
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,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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 =
|
|
67
|
-
return i.appendChild(
|
|
68
|
-
destroy:
|
|
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
|
-
|
|
76
|
+
L as createModal
|
|
74
77
|
};
|