@aplus-frontend/ui 0.2.27 → 0.2.28
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/src/ap-form/search-form/index.vue.mjs +77 -77
- package/es/src/ap-form/search-form/utils.d.ts +1 -0
- package/es/src/ap-form/search-form/utils.mjs +18 -11
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +15 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +57 -56
- package/es/src/business/ap-export-group/index.d.ts +57 -35
- package/es/src/business/ap-export-group/interface.d.ts +1 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +5 -5
- package/es/src/locale/lang/en.mjs +2 -1
- package/es/src/locale/lang/zh-cn.mjs +2 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.d.ts +1 -0
- package/lib/src/ap-form/search-form/utils.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +15 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +57 -35
- package/lib/src/business/ap-export-group/interface.d.ts +1 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +3 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
1
|
+
import { isVNode as le, defineComponent as re, useSlots as se, ref as ie, unref as o, shallowRef as V, computed as g, watch as j, cloneVNode as ue, createVNode as a, Fragment as _, openBlock as m, createBlock as y, mergeProps as ce, withCtx as S, resolveDynamicComponent as A, createElementBlock as pe, renderList as de } from "vue";
|
|
2
|
+
import { Col as F, Flex as M, Space as fe, Button as E, Row as me } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
6
|
import { genRealChildren as D } from "../item-group/helper.mjs";
|
|
7
|
-
import { DoubleRightOutlined as
|
|
7
|
+
import { DoubleRightOutlined as he } from "@ant-design/icons-vue";
|
|
8
8
|
import "../../config-provider/index.mjs";
|
|
9
|
-
import { isArray as
|
|
9
|
+
import { isArray as xe, isBoolean as ye, omit as Ce } from "lodash-unified";
|
|
10
10
|
import { isDef as $ } from "../../utils/index.mjs";
|
|
11
|
-
import { diffFormItem as
|
|
12
|
-
import { useControllableValue as
|
|
13
|
-
import { useNamespace as
|
|
11
|
+
import { execFunc as L, diffFormItem as ge } from "./utils.mjs";
|
|
12
|
+
import { useControllableValue as _e } from "../../hooks/useControllableValue.mjs";
|
|
13
|
+
import { useNamespace as Fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
14
|
import { useGlobalConfig as Be } from "../../config-provider/hooks/use-global-config.mjs";
|
|
15
|
-
import { useLocale as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
function
|
|
19
|
-
return typeof h == "function" || Object.prototype.toString.call(h) === "[object Object]" && !
|
|
15
|
+
import { useLocale as Re } from "../../config-provider/hooks/use-locale.mjs";
|
|
16
|
+
import U from "../item/index.vue.mjs";
|
|
17
|
+
import Se from "../ap-form.vue2.mjs";
|
|
18
|
+
function Ae(h) {
|
|
19
|
+
return typeof h == "function" || Object.prototype.toString.call(h) === "[object Object]" && !le(h);
|
|
20
20
|
}
|
|
21
|
-
const i = 24,
|
|
21
|
+
const i = 24, qe = /* @__PURE__ */ re({
|
|
22
22
|
name: "ApFormSearchForm",
|
|
23
23
|
__name: "index",
|
|
24
24
|
props: {
|
|
@@ -104,55 +104,55 @@ const i = 24, We = /* @__PURE__ */ le({
|
|
|
104
104
|
},
|
|
105
105
|
emits: ["update:collapse"],
|
|
106
106
|
setup(h, {
|
|
107
|
-
expose:
|
|
108
|
-
emit:
|
|
107
|
+
expose: W,
|
|
108
|
+
emit: q
|
|
109
109
|
}) {
|
|
110
110
|
var N;
|
|
111
|
-
const s =
|
|
111
|
+
const s = se(), n = h, z = q, {
|
|
112
112
|
value: u,
|
|
113
|
-
updateValue:
|
|
114
|
-
} =
|
|
113
|
+
updateValue: H
|
|
114
|
+
} = _e(n, z, {
|
|
115
115
|
valuePropName: "collapse",
|
|
116
116
|
defaultValuePropName: "defaultCollapse"
|
|
117
117
|
}), {
|
|
118
|
-
b:
|
|
119
|
-
} =
|
|
118
|
+
b: G
|
|
119
|
+
} = Fe("ap-form-search-form"), J = Be("uiMode"), {
|
|
120
120
|
t: b
|
|
121
|
-
} =
|
|
122
|
-
function J() {
|
|
123
|
-
z(!o(u));
|
|
124
|
-
}
|
|
121
|
+
} = Re(), C = ie();
|
|
125
122
|
function K() {
|
|
126
|
-
|
|
127
|
-
(t = (e = C.value) == null ? void 0 : e.validateFields()) == null || t.then(a.onSubmit);
|
|
123
|
+
H(!o(u));
|
|
128
124
|
}
|
|
129
125
|
function Q() {
|
|
130
|
-
var e, t
|
|
131
|
-
|
|
126
|
+
var e, t;
|
|
127
|
+
(t = (e = C.value) == null ? void 0 : e.validateFields()) == null || t.then((l) => L(n.onSubmit, l));
|
|
128
|
+
}
|
|
129
|
+
function X() {
|
|
130
|
+
var e, t;
|
|
131
|
+
n.customReset || (t = (e = C.value) == null ? void 0 : e.resetFields) == null || t.call(e), L(n.onReset);
|
|
132
132
|
}
|
|
133
133
|
let v = [];
|
|
134
|
-
const
|
|
134
|
+
const B = V(D(s.default())), p = V((N = s.extra) == null ? void 0 : N.call(s)), w = g(() => Math.floor(i / n.countPerRow));
|
|
135
135
|
j(() => s.default(), (e) => {
|
|
136
|
-
v =
|
|
136
|
+
v = B.value, B.value = ge(v, D(e));
|
|
137
137
|
}), j(() => {
|
|
138
138
|
var e;
|
|
139
139
|
return (e = s.extra) == null ? void 0 : e.call(s);
|
|
140
140
|
}, (e) => {
|
|
141
141
|
p.value = e;
|
|
142
142
|
});
|
|
143
|
-
const
|
|
144
|
-
const e =
|
|
143
|
+
const Y = (e) => $(e) ? (xe(e) ? e : [e]).join("") : Date.now(), R = g(() => {
|
|
144
|
+
const e = B.value, t = [], l = [], r = o(w);
|
|
145
145
|
let d = 0;
|
|
146
146
|
e.forEach((c) => {
|
|
147
147
|
const f = c.props;
|
|
148
|
-
(
|
|
148
|
+
(ye(f.hidden) ? !!f.hidden : $(f.hidden)) ? t.push(c) : (d += f.span || r, l.push(c));
|
|
149
149
|
});
|
|
150
|
-
const k = i - (d + r) % i,
|
|
150
|
+
const k = i - (d + r) % i, ee = d % i < r, te = k < r ? i : k, I = i - r * (o(p) && !n.extraInAction ? 2 : 1), oe = !n.forceExpand && d > I;
|
|
151
151
|
let P = 0, T = 0;
|
|
152
|
-
const
|
|
152
|
+
const ae = l.map((c, f) => {
|
|
153
153
|
const x = c.props, O = x.span || r;
|
|
154
|
-
if (P += O, !
|
|
155
|
-
t.push(
|
|
154
|
+
if (P += O, !n.forceExpand && o(u) && P > I) {
|
|
155
|
+
t.push(ue(c, {
|
|
156
156
|
class: "ant-form-item-hidden",
|
|
157
157
|
hidden: !0
|
|
158
158
|
}));
|
|
@@ -161,82 +161,82 @@ const i = 24, We = /* @__PURE__ */ le({
|
|
|
161
161
|
return T += O, {
|
|
162
162
|
node: c,
|
|
163
163
|
span: x.span || r,
|
|
164
|
-
key: `ApFormSearchFormItem-${f}-${
|
|
164
|
+
key: `ApFormSearchFormItem-${f}-${Y(x.name)}-${x._signal}`
|
|
165
165
|
};
|
|
166
|
-
}).filter(Boolean),
|
|
166
|
+
}).filter(Boolean), ne = i - T - r;
|
|
167
167
|
return {
|
|
168
|
-
hideNode:
|
|
169
|
-
nodes:
|
|
170
|
-
defaultExtraSpan:
|
|
171
|
-
actualExtraSpan:
|
|
172
|
-
showCollapse:
|
|
173
|
-
lastRowOnlyIncludeActionAndExtra:
|
|
168
|
+
hideNode: a(_, null, [t]),
|
|
169
|
+
nodes: ae,
|
|
170
|
+
defaultExtraSpan: te,
|
|
171
|
+
actualExtraSpan: ne,
|
|
172
|
+
showCollapse: oe,
|
|
173
|
+
lastRowOnlyIncludeActionAndExtra: ee
|
|
174
174
|
};
|
|
175
|
-
}),
|
|
175
|
+
}), Z = g(() => {
|
|
176
176
|
let e;
|
|
177
|
-
const t = o(R), l =
|
|
177
|
+
const t = o(R), l = a(F, {
|
|
178
178
|
span: o(w),
|
|
179
179
|
key: "actionWrapper"
|
|
180
180
|
}, {
|
|
181
|
-
default: () => [
|
|
182
|
-
default: () => [
|
|
183
|
-
justify: !o(u) && t.lastRowOnlyIncludeActionAndExtra && !(o(p) &&
|
|
181
|
+
default: () => [a(U, null, {
|
|
182
|
+
default: () => [a(M, {
|
|
183
|
+
justify: !o(u) && t.lastRowOnlyIncludeActionAndExtra && !(o(p) && n.extraInAction) ? "flex-end" : "space-between"
|
|
184
184
|
}, {
|
|
185
|
-
default: () => [
|
|
186
|
-
default: () => [
|
|
185
|
+
default: () => [a(fe, null, {
|
|
186
|
+
default: () => [a(E, {
|
|
187
187
|
type: "primary",
|
|
188
|
-
onClick:
|
|
189
|
-
loading:
|
|
188
|
+
onClick: Q,
|
|
189
|
+
loading: n.submitLoading,
|
|
190
190
|
htmlType: "submit"
|
|
191
191
|
}, {
|
|
192
|
-
default: () => [
|
|
193
|
-
}),
|
|
194
|
-
onClick:
|
|
192
|
+
default: () => [n.searchText || b("ap.apForm.search.search")]
|
|
193
|
+
}), a(E, {
|
|
194
|
+
onClick: X
|
|
195
195
|
}, {
|
|
196
|
-
default: () => [
|
|
197
|
-
}), t.showCollapse ?
|
|
198
|
-
onClick:
|
|
199
|
-
icon:
|
|
200
|
-
style:
|
|
196
|
+
default: () => [n.resetText || b("ap.apForm.search.reset")]
|
|
197
|
+
}), t.showCollapse ? a(E, {
|
|
198
|
+
onClick: K,
|
|
199
|
+
icon: a(he, {
|
|
200
|
+
style: J.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
|
|
201
201
|
rotate: o(u) ? 90 : -90
|
|
202
202
|
}, null)
|
|
203
203
|
}, null) : null]
|
|
204
|
-
}),
|
|
204
|
+
}), n.extraInAction ? o(p) : null]
|
|
205
205
|
})]
|
|
206
206
|
})]
|
|
207
|
-
}), r = !
|
|
207
|
+
}), r = !n.extraInAction && o(p) ? a(F, {
|
|
208
208
|
span: o(u) ? t.actualExtraSpan : t.defaultExtraSpan,
|
|
209
209
|
key: "extraNode"
|
|
210
210
|
}, {
|
|
211
|
-
default: () => [
|
|
212
|
-
default: () => [
|
|
211
|
+
default: () => [a(U, null, {
|
|
212
|
+
default: () => [a(M, {
|
|
213
213
|
justify: !o(u) && (t.defaultExtraSpan === i || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
|
|
214
|
-
},
|
|
214
|
+
}, Ae(e = o(p)) ? e : {
|
|
215
215
|
default: () => [e]
|
|
216
216
|
})]
|
|
217
217
|
})]
|
|
218
|
-
}) : null, d =
|
|
218
|
+
}) : null, d = a(F, {
|
|
219
219
|
span: t.defaultExtraSpan
|
|
220
220
|
}, null);
|
|
221
|
-
return !o(u) && t.lastRowOnlyIncludeActionAndExtra ?
|
|
221
|
+
return !o(u) && t.lastRowOnlyIncludeActionAndExtra ? a(_, null, [r || d, l]) : a(_, null, [l, r]);
|
|
222
222
|
});
|
|
223
|
-
return
|
|
223
|
+
return W({
|
|
224
224
|
apForm: g(() => o(C))
|
|
225
|
-
}), (e, t) => (m(), y(
|
|
226
|
-
class: o(
|
|
225
|
+
}), (e, t) => (m(), y(Se, ce({
|
|
226
|
+
class: o(G)(),
|
|
227
227
|
ref_key: "apForm",
|
|
228
228
|
ref: C
|
|
229
|
-
}, o(
|
|
230
|
-
default: S(() => [(m(), y(A(R.value.hideNode))),
|
|
229
|
+
}, o(Ce)(n, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
230
|
+
default: S(() => [(m(), y(A(R.value.hideNode))), a(o(me), {
|
|
231
231
|
gutter: 16
|
|
232
232
|
}, {
|
|
233
|
-
default: S(() => [(m(!0),
|
|
233
|
+
default: S(() => [(m(!0), pe(_, null, de(R.value.nodes, (l) => (m(), y(o(F), {
|
|
234
234
|
key: l.key,
|
|
235
235
|
span: l.span
|
|
236
236
|
}, {
|
|
237
237
|
default: S(() => [(m(), y(A(l.node)))]),
|
|
238
238
|
_: 2
|
|
239
|
-
}, 1032, ["span"]))), 128)), (m(), y(A(
|
|
239
|
+
}, 1032, ["span"]))), 128)), (m(), y(A(Z.value)))]),
|
|
240
240
|
_: 1
|
|
241
241
|
})]),
|
|
242
242
|
_: 1
|
|
@@ -244,5 +244,5 @@ const i = 24, We = /* @__PURE__ */ le({
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
export {
|
|
247
|
-
|
|
247
|
+
qe as default
|
|
248
248
|
};
|
|
@@ -2,3 +2,4 @@ import { VNode, RendererNode, RendererElement } from 'vue';
|
|
|
2
2
|
export declare function diffFormItem(prevNodes: VNode[], current: VNode[]): VNode< RendererNode, RendererElement, {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>[];
|
|
5
|
+
export declare function execFunc(func: any, ...params: any): void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { cloneVNode as
|
|
2
|
-
import { isArray as
|
|
1
|
+
import { cloneVNode as l } from "vue";
|
|
2
|
+
import { isArray as a, isFunction as p } from "lodash-unified";
|
|
3
3
|
function M(n, r) {
|
|
4
|
-
const t =
|
|
4
|
+
const t = u(n), e = u(r);
|
|
5
5
|
return r.map((o) => {
|
|
6
|
-
const i =
|
|
6
|
+
const i = m(o.props.name), c = e.get(i), s = t.get(i);
|
|
7
7
|
if (!t.get(i) || (c == null ? void 0 : c.index) !== (s == null ? void 0 : s.index))
|
|
8
8
|
return o;
|
|
9
|
-
const
|
|
10
|
-
return JSON.stringify(
|
|
9
|
+
const g = f(s.item), y = f(c.item);
|
|
10
|
+
return JSON.stringify(g) !== JSON.stringify(y) ? o : l(o, { _signal: s.item._signal });
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return n ? (
|
|
13
|
+
function m(n) {
|
|
14
|
+
return n ? (a(n) ? n : [n]).map((t) => "" + t).join("") : "";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function u(n) {
|
|
17
17
|
const r = /* @__PURE__ */ new Map();
|
|
18
18
|
return n.forEach((t, e) => {
|
|
19
|
-
const o = t.props, i =
|
|
19
|
+
const o = t.props, i = m(o.name);
|
|
20
20
|
r.set(i, { item: o, index: e });
|
|
21
21
|
}), r;
|
|
22
22
|
}
|
|
@@ -29,6 +29,13 @@ function f(n) {
|
|
|
29
29
|
}
|
|
30
30
|
return r;
|
|
31
31
|
}
|
|
32
|
+
function N(n, ...r) {
|
|
33
|
+
if (a(n))
|
|
34
|
+
for (const t of n)
|
|
35
|
+
p(t) && t(...r);
|
|
36
|
+
else p(n) && n(...r);
|
|
37
|
+
}
|
|
32
38
|
export {
|
|
33
|
-
M as diffFormItem
|
|
39
|
+
M as diffFormItem,
|
|
40
|
+
N as execFunc
|
|
34
41
|
};
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { ApExportGroupProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
4
|
+
successMessage: boolean;
|
|
5
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
6
|
+
successMessage: boolean;
|
|
7
|
+
}>>>, {
|
|
8
|
+
successMessage: boolean | string;
|
|
9
|
+
}, {}>;
|
|
4
10
|
export default _default;
|
|
11
|
+
type __VLS_WithDefaults<P, D> = {
|
|
12
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
13
|
+
default: D[K];
|
|
14
|
+
}> : P[K];
|
|
15
|
+
};
|
|
5
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
6
17
|
type __VLS_TypePropsToOption<T> = {
|
|
7
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -11,3 +22,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
11
22
|
required: true;
|
|
12
23
|
};
|
|
13
24
|
};
|
|
25
|
+
type __VLS_PrettifyLocal<T> = {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} & {};
|
|
@@ -1,84 +1,85 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { Dropdown as
|
|
1
|
+
import { defineComponent as B, computed as l, ref as D, openBlock as m, createBlock as f, unref as a, normalizeClass as K, withCtx as s, createVNode as y, createTextVNode as g, toDisplayString as x, mergeProps as R, createCommentVNode as N } from "vue";
|
|
2
|
+
import { DownOutlined as T } from "@ant-design/icons-vue";
|
|
3
|
+
import { message as I, Dropdown as V, Menu as q, MenuItem as M, Button as F } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { ApExportGroupActionType as
|
|
6
|
-
import { usePermission as
|
|
7
|
-
import { handleExportDownload as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
const
|
|
5
|
+
import { ApExportGroupActionType as i } from "./interface.mjs";
|
|
6
|
+
import { usePermission as z } from "@aplus-frontend/hooks";
|
|
7
|
+
import { handleExportDownload as O } from "./handleExportDownload.mjs";
|
|
8
|
+
import { useNamespace as $ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as j } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useGlobalConfig as H } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
const oe = /* @__PURE__ */ B({
|
|
12
12
|
__name: "ApExportGroup",
|
|
13
13
|
props: {
|
|
14
14
|
selectedRowKeys: {},
|
|
15
15
|
disabled: { type: Boolean },
|
|
16
16
|
auth: {},
|
|
17
|
-
ifShow: {
|
|
17
|
+
ifShow: {},
|
|
18
18
|
text: {},
|
|
19
19
|
idKey: {},
|
|
20
|
-
request: {
|
|
21
|
-
getRequestParams: {
|
|
22
|
-
getInitialParams: {
|
|
23
|
-
beforeRequest: {
|
|
20
|
+
request: {},
|
|
21
|
+
getRequestParams: {},
|
|
22
|
+
getInitialParams: {},
|
|
23
|
+
beforeRequest: {},
|
|
24
|
+
successMessage: { type: [Boolean, String], default: !1 }
|
|
24
25
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const { hasPermission:
|
|
26
|
+
setup(E) {
|
|
27
|
+
const { hasPermission: C } = z(), e = E, { b: S } = $("ap-export-group"), { t: n } = j(), _ = H("uiMode"), L = l(() => {
|
|
27
28
|
const t = {
|
|
28
29
|
aplus: "#0070FF",
|
|
29
30
|
admin: "#34b77c"
|
|
30
31
|
};
|
|
31
|
-
return b.value ? "" : t[
|
|
32
|
-
}), b =
|
|
32
|
+
return b.value ? "" : t[_.value] || t.aplus;
|
|
33
|
+
}), b = l(() => !!(e != null && e.disabled)), A = l(() => (e == null ? void 0 : e.successMessage) === !0 ? n("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), G = {
|
|
33
34
|
textAlign: "center"
|
|
34
|
-
},
|
|
35
|
+
}, c = D(!1), w = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
|
|
35
36
|
let t = e == null ? void 0 : e.ifShow;
|
|
36
|
-
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () =>
|
|
37
|
+
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => C(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
37
38
|
});
|
|
38
|
-
async function
|
|
39
|
-
var
|
|
40
|
-
const { getRequestParams:
|
|
39
|
+
async function k({ key: t }) {
|
|
40
|
+
var v, h;
|
|
41
|
+
const { getRequestParams: u, request: o } = e || {};
|
|
41
42
|
let d = {};
|
|
42
|
-
t ===
|
|
43
|
+
t === i.SELECT ? d = {
|
|
43
44
|
[(e == null ? void 0 : e.idKey) || "ids"]: w.value
|
|
44
|
-
} : t ===
|
|
45
|
-
const
|
|
45
|
+
} : t === i.ALL && (d = (u == null ? void 0 : u()) || {});
|
|
46
|
+
const p = ((v = e == null ? void 0 : e.getInitialParams) == null ? void 0 : v.call(e)) || {};
|
|
46
47
|
try {
|
|
47
|
-
|
|
48
|
+
c.value = !0;
|
|
48
49
|
let r = {
|
|
49
50
|
...d,
|
|
50
|
-
...
|
|
51
|
+
...p
|
|
51
52
|
};
|
|
52
|
-
r = ((
|
|
53
|
+
r = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, r)) || r, await O(async () => await (o == null ? void 0 : o(r))), e != null && e.successMessage && I.success(A.value);
|
|
53
54
|
} finally {
|
|
54
|
-
|
|
55
|
+
c.value = !1;
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
return (t,
|
|
58
|
+
return (t, u) => P.value ? (m(), f(a(V), {
|
|
58
59
|
key: 0,
|
|
59
|
-
class:
|
|
60
|
-
overlayStyle:
|
|
60
|
+
class: K([a(S)()]),
|
|
61
|
+
overlayStyle: G,
|
|
61
62
|
disabled: b.value
|
|
62
63
|
}, {
|
|
63
|
-
overlay:
|
|
64
|
-
y(
|
|
65
|
-
default:
|
|
66
|
-
var
|
|
64
|
+
overlay: s(() => [
|
|
65
|
+
y(a(q), { onClick: k }, {
|
|
66
|
+
default: s(() => {
|
|
67
|
+
var o;
|
|
67
68
|
return [
|
|
68
|
-
(m(), f(
|
|
69
|
-
key:
|
|
70
|
-
disabled: ((
|
|
69
|
+
(m(), f(a(M), {
|
|
70
|
+
key: a(i).SELECT,
|
|
71
|
+
disabled: ((o = w.value) == null ? void 0 : o.length) === 0
|
|
71
72
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
|
|
73
|
+
default: s(() => [
|
|
74
|
+
g(x(a(n)("ap.apExportGroup.exportSelected")), 1)
|
|
74
75
|
]),
|
|
75
76
|
_: 1
|
|
76
77
|
}, 8, ["disabled"])),
|
|
77
|
-
(m(), f(
|
|
78
|
-
key:
|
|
78
|
+
(m(), f(a(M), {
|
|
79
|
+
key: a(i).ALL
|
|
79
80
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
|
|
81
|
+
default: s(() => [
|
|
82
|
+
g(x(a(n)("ap.apExportGroup.exportAll")), 1)
|
|
82
83
|
]),
|
|
83
84
|
_: 1
|
|
84
85
|
}))
|
|
@@ -87,26 +88,26 @@ const te = /* @__PURE__ */ G({
|
|
|
87
88
|
_: 1
|
|
88
89
|
})
|
|
89
90
|
]),
|
|
90
|
-
default:
|
|
91
|
-
y(
|
|
91
|
+
default: s(() => [
|
|
92
|
+
y(a(F), R({
|
|
92
93
|
...t.$attrs
|
|
93
94
|
}, {
|
|
94
95
|
style: {
|
|
95
|
-
color:
|
|
96
|
+
color: L.value
|
|
96
97
|
},
|
|
97
|
-
loading:
|
|
98
|
+
loading: c.value
|
|
98
99
|
}), {
|
|
99
|
-
default:
|
|
100
|
-
|
|
101
|
-
y(
|
|
100
|
+
default: s(() => [
|
|
101
|
+
g(x((e == null ? void 0 : e.text) ?? a(n)("ap.apExportGroup.export")) + " ", 1),
|
|
102
|
+
y(a(T))
|
|
102
103
|
]),
|
|
103
104
|
_: 1
|
|
104
105
|
}, 16, ["style", "loading"])
|
|
105
106
|
]),
|
|
106
107
|
_: 1
|
|
107
|
-
}, 8, ["class", "disabled"])) :
|
|
108
|
+
}, 8, ["class", "disabled"])) : N("", !0);
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
oe as default
|
|
112
113
|
};
|
|
@@ -3,27 +3,27 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApExportGroup: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
6
|
-
|
|
7
|
-
type: PropType<
|
|
6
|
+
text: {
|
|
7
|
+
type: PropType<string>;
|
|
8
8
|
};
|
|
9
9
|
disabled: {
|
|
10
10
|
type: PropType<boolean>;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
type: PropType<
|
|
12
|
+
request: {
|
|
13
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
14
|
+
};
|
|
15
|
+
selectedRowKeys: {
|
|
16
|
+
type: PropType<any[]>;
|
|
14
17
|
};
|
|
15
18
|
ifShow: {
|
|
16
19
|
type: PropType<() => boolean>;
|
|
17
20
|
};
|
|
18
|
-
|
|
21
|
+
auth: {
|
|
19
22
|
type: PropType<string>;
|
|
20
23
|
};
|
|
21
24
|
idKey: {
|
|
22
25
|
type: PropType<string>;
|
|
23
26
|
};
|
|
24
|
-
request: {
|
|
25
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
26
|
-
};
|
|
27
27
|
getRequestParams: {
|
|
28
28
|
type: PropType<() => Record<string, any>>;
|
|
29
29
|
};
|
|
@@ -33,28 +33,32 @@ declare const ApExportGroup: {
|
|
|
33
33
|
beforeRequest: {
|
|
34
34
|
type: PropType<(params: any) => Record<string, any>>;
|
|
35
35
|
};
|
|
36
|
+
successMessage: {
|
|
37
|
+
type: PropType<string | boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
36
40
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
37
|
-
|
|
38
|
-
type: PropType<
|
|
41
|
+
text: {
|
|
42
|
+
type: PropType<string>;
|
|
39
43
|
};
|
|
40
44
|
disabled: {
|
|
41
45
|
type: PropType<boolean>;
|
|
42
46
|
};
|
|
43
|
-
|
|
44
|
-
type: PropType<
|
|
47
|
+
request: {
|
|
48
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
49
|
+
};
|
|
50
|
+
selectedRowKeys: {
|
|
51
|
+
type: PropType<any[]>;
|
|
45
52
|
};
|
|
46
53
|
ifShow: {
|
|
47
54
|
type: PropType<() => boolean>;
|
|
48
55
|
};
|
|
49
|
-
|
|
56
|
+
auth: {
|
|
50
57
|
type: PropType<string>;
|
|
51
58
|
};
|
|
52
59
|
idKey: {
|
|
53
60
|
type: PropType<string>;
|
|
54
61
|
};
|
|
55
|
-
request: {
|
|
56
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
57
|
-
};
|
|
58
62
|
getRequestParams: {
|
|
59
63
|
type: PropType<() => Record<string, any>>;
|
|
60
64
|
};
|
|
@@ -64,7 +68,13 @@ declare const ApExportGroup: {
|
|
|
64
68
|
beforeRequest: {
|
|
65
69
|
type: PropType<(params: any) => Record<string, any>>;
|
|
66
70
|
};
|
|
67
|
-
|
|
71
|
+
successMessage: {
|
|
72
|
+
type: PropType<string | boolean>;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
}>>, {
|
|
76
|
+
successMessage: boolean | string;
|
|
77
|
+
}, true, {}, {}, {
|
|
68
78
|
P: {};
|
|
69
79
|
B: {};
|
|
70
80
|
D: {};
|
|
@@ -72,27 +82,27 @@ declare const ApExportGroup: {
|
|
|
72
82
|
M: {};
|
|
73
83
|
Defaults: {};
|
|
74
84
|
}, Readonly< ExtractPropTypes<{
|
|
75
|
-
|
|
76
|
-
type: PropType<
|
|
85
|
+
text: {
|
|
86
|
+
type: PropType<string>;
|
|
77
87
|
};
|
|
78
88
|
disabled: {
|
|
79
89
|
type: PropType<boolean>;
|
|
80
90
|
};
|
|
81
|
-
|
|
82
|
-
type: PropType<
|
|
91
|
+
request: {
|
|
92
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
93
|
+
};
|
|
94
|
+
selectedRowKeys: {
|
|
95
|
+
type: PropType<any[]>;
|
|
83
96
|
};
|
|
84
97
|
ifShow: {
|
|
85
98
|
type: PropType<() => boolean>;
|
|
86
99
|
};
|
|
87
|
-
|
|
100
|
+
auth: {
|
|
88
101
|
type: PropType<string>;
|
|
89
102
|
};
|
|
90
103
|
idKey: {
|
|
91
104
|
type: PropType<string>;
|
|
92
105
|
};
|
|
93
|
-
request: {
|
|
94
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
95
|
-
};
|
|
96
106
|
getRequestParams: {
|
|
97
107
|
type: PropType<() => Record<string, any>>;
|
|
98
108
|
};
|
|
@@ -102,32 +112,38 @@ declare const ApExportGroup: {
|
|
|
102
112
|
beforeRequest: {
|
|
103
113
|
type: PropType<(params: any) => Record<string, any>>;
|
|
104
114
|
};
|
|
105
|
-
|
|
115
|
+
successMessage: {
|
|
116
|
+
type: PropType<string | boolean>;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
}>>, {}, {}, {}, {}, {
|
|
120
|
+
successMessage: boolean | string;
|
|
121
|
+
}>;
|
|
106
122
|
__isFragment?: never;
|
|
107
123
|
__isTeleport?: never;
|
|
108
124
|
__isSuspense?: never;
|
|
109
125
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
110
|
-
|
|
111
|
-
type: PropType<
|
|
126
|
+
text: {
|
|
127
|
+
type: PropType<string>;
|
|
112
128
|
};
|
|
113
129
|
disabled: {
|
|
114
130
|
type: PropType<boolean>;
|
|
115
131
|
};
|
|
116
|
-
|
|
117
|
-
type: PropType<
|
|
132
|
+
request: {
|
|
133
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
134
|
+
};
|
|
135
|
+
selectedRowKeys: {
|
|
136
|
+
type: PropType<any[]>;
|
|
118
137
|
};
|
|
119
138
|
ifShow: {
|
|
120
139
|
type: PropType<() => boolean>;
|
|
121
140
|
};
|
|
122
|
-
|
|
141
|
+
auth: {
|
|
123
142
|
type: PropType<string>;
|
|
124
143
|
};
|
|
125
144
|
idKey: {
|
|
126
145
|
type: PropType<string>;
|
|
127
146
|
};
|
|
128
|
-
request: {
|
|
129
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
130
|
-
};
|
|
131
147
|
getRequestParams: {
|
|
132
148
|
type: PropType<() => Record<string, any>>;
|
|
133
149
|
};
|
|
@@ -137,7 +153,13 @@ declare const ApExportGroup: {
|
|
|
137
153
|
beforeRequest: {
|
|
138
154
|
type: PropType<(params: any) => Record<string, any>>;
|
|
139
155
|
};
|
|
140
|
-
|
|
156
|
+
successMessage: {
|
|
157
|
+
type: PropType<string | boolean>;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
161
|
+
successMessage: boolean | string;
|
|
162
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
141
163
|
$props: {
|
|
142
164
|
onClick?: () => void;
|
|
143
165
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as I, computed as L, createVNode as N, Fragment as y, openBlock as m, createBlock as i, unref as r, normalizeClass as f, withCtx as x, createElementBlock as w, renderList as z, normalizeStyle as B, resolveDynamicComponent as R } from "vue";
|
|
2
2
|
import { isNil as A, get as c } from "lodash-unified";
|
|
3
3
|
import { TableSummaryRow as D, TableSummaryCell as F } from "@aplus-frontend/antdv";
|
|
4
4
|
import { flattenColumns as V, formatDataIndex as u } from "./utils.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import { isNumeric as E, toThousand as P, toFixed as $ } from "@aplus-frontend/utils";
|
|
7
7
|
import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
-
const Q = /* @__PURE__ */
|
|
8
|
+
const Q = /* @__PURE__ */ I({
|
|
9
9
|
name: "ApSummary",
|
|
10
10
|
__name: "ap-summary",
|
|
11
11
|
props: {
|
|
@@ -25,7 +25,7 @@ const Q = /* @__PURE__ */ v({
|
|
|
25
25
|
setup(k) {
|
|
26
26
|
const n = k, h = (a) => a === 0, T = (a, o) => {
|
|
27
27
|
var s;
|
|
28
|
-
if (!
|
|
28
|
+
if (!E(a) || o.valueType !== "number")
|
|
29
29
|
return a;
|
|
30
30
|
const e = (s = o.fieldProps) == null ? void 0 : s.field, t = (e == null ? void 0 : e.precision) || 0;
|
|
31
31
|
return (A(e == null ? void 0 : e.thousands) ? !0 : e == null ? void 0 : e.thousands) ? P(a, t) : $(a, t);
|
|
@@ -43,11 +43,11 @@ const Q = /* @__PURE__ */ v({
|
|
|
43
43
|
if (h(d))
|
|
44
44
|
s = n.summaryTitle;
|
|
45
45
|
else if (b && (t.customRender || t.renderText)) {
|
|
46
|
-
const p = c(n.data, u(t.dataIndex || t.key)),
|
|
46
|
+
const p = c(n.data, u(t.dataIndex || t.key)), v = u(t.dataIndex || t.key), l = t.customRender || t.renderText;
|
|
47
47
|
s = l == null ? void 0 : l({
|
|
48
48
|
value: p,
|
|
49
49
|
record: {
|
|
50
|
-
[
|
|
50
|
+
[v]: p
|
|
51
51
|
},
|
|
52
52
|
text: void 0,
|
|
53
53
|
index: 0,
|
|
@@ -78,7 +78,8 @@ const e = {
|
|
|
78
78
|
exportError: "Export error",
|
|
79
79
|
exportSelected: "Export selected",
|
|
80
80
|
exportAll: "Export all",
|
|
81
|
-
export: "Export Excel"
|
|
81
|
+
export: "Export Excel",
|
|
82
|
+
exportSuccess: "The task has been submitted,please go to the download center to check the progress"
|
|
82
83
|
},
|
|
83
84
|
apBatchAction: {
|
|
84
85
|
selected: "Selected",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");require("../../hooks/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");require("../../hooks/index.js");const w=require("../item-group/helper.js"),K=require("@ant-design/icons-vue");require("../../config-provider/index.js");const _=require("lodash-unified"),A=require("../../utils/index.js"),g=require("./utils.js"),Q=require("../../hooks/useControllableValue.js"),X=require("../../config-provider/hooks/use-namespace.js"),Y=require("../../config-provider/hooks/use-global-config.js"),Z=require("../../config-provider/hooks/use-locale.js"),q=require("../item/index.vue.js"),ee=require("../ap-form.vue2.js");function te(m){return typeof m=="function"||Object.prototype.toString.call(m)==="[object Object]"&&!e.isVNode(m)}const s=24,ne=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!1},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:4},submitLoading:{type:Boolean}},emits:["update:collapse"],setup(m,{expose:E,emit:I}){var v;const u=e.useSlots(),o=m,P=I,{value:c,updateValue:T}=Q.useControllableValue(o,P,{valuePropName:"collapse",defaultValuePropName:"defaultCollapse"}),{b:O}=X.useNamespace("ap-form-search-form"),D=Y.useGlobalConfig("uiMode"),{t:B}=Z.useLocale(),x=e.ref();function M(){T(!e.unref(c))}function j(){var t,n;(n=(t=x.value)==null?void 0:t.validateFields())==null||n.then(a=>g.execFunc(o.onSubmit,a))}function L(){var t,n;o.customReset||(n=(t=x.value)==null?void 0:t.resetFields)==null||n.call(t),g.execFunc(o.onReset)}let N=[];const y=e.shallowRef(w.genRealChildren(u.default())),d=e.shallowRef((v=u.extra)==null?void 0:v.call(u)),F=e.computed(()=>Math.floor(s/o.countPerRow));e.watch(()=>u.default(),t=>{N=y.value,y.value=g.diffFormItem(N,w.genRealChildren(t))}),e.watch(()=>{var t;return(t=u.extra)==null?void 0:t.call(u)},t=>{d.value=t});const U=t=>A.isDef(t)?(_.isArray(t)?t:[t]).join(""):Date.now(),C=e.computed(()=>{const t=y.value,n=[],a=[],l=e.unref(F);let p=0;t.forEach(i=>{const f=i.props;(_.isBoolean(f.hidden)?!!f.hidden:A.isDef(f.hidden))?n.push(i):(p+=f.span||l,a.push(i))});const R=s-(p+l)%s,$=p%s<l,z=R<l?s:R,S=s-l*(e.unref(d)&&!o.extraInAction?2:1),G=!o.forceExpand&&p>S;let V=0,k=0;const H=a.map((i,f)=>{const h=i.props,b=h.span||l;if(V+=b,!o.forceExpand&&e.unref(c)&&V>S){n.push(e.cloneVNode(i,{class:"ant-form-item-hidden",hidden:!0}));return}return k+=b,{node:i,span:h.span||l,key:`ApFormSearchFormItem-${f}-${U(h.name)}-${h._signal}`}}).filter(Boolean),J=s-k-l;return{hideNode:e.createVNode(e.Fragment,null,[n]),nodes:H,defaultExtraSpan:z,actualExtraSpan:J,showCollapse:G,lastRowOnlyIncludeActionAndExtra:$}}),W=e.computed(()=>{let t;const n=e.unref(C),a=e.createVNode(r.Col,{span:e.unref(F),key:"actionWrapper"},{default:()=>[e.createVNode(q.default,null,{default:()=>[e.createVNode(r.Flex,{justify:!e.unref(c)&&n.lastRowOnlyIncludeActionAndExtra&&!(e.unref(d)&&o.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(r.Space,null,{default:()=>[e.createVNode(r.Button,{type:"primary",onClick:j,loading:o.submitLoading,htmlType:"submit"},{default:()=>[o.searchText||B("ap.apForm.search.search")]}),e.createVNode(r.Button,{onClick:L},{default:()=>[o.resetText||B("ap.apForm.search.reset")]}),n.showCollapse?e.createVNode(r.Button,{onClick:M,icon:e.createVNode(K.DoubleRightOutlined,{style:D.value==="aplus"?"color:#B8C3D1":"color:#BFBFBF",rotate:e.unref(c)?90:-90},null)},null):null]}),o.extraInAction?e.unref(d):null]})]})]}),l=!o.extraInAction&&e.unref(d)?e.createVNode(r.Col,{span:e.unref(c)?n.actualExtraSpan:n.defaultExtraSpan,key:"extraNode"},{default:()=>[e.createVNode(q.default,null,{default:()=>[e.createVNode(r.Flex,{justify:!e.unref(c)&&(n.defaultExtraSpan===s||n.lastRowOnlyIncludeActionAndExtra)?"start":"flex-end"},te(t=e.unref(d))?t:{default:()=>[t]})]})]}):null,p=e.createVNode(r.Col,{span:n.defaultExtraSpan},null);return!e.unref(c)&&n.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[l||p,a]):e.createVNode(e.Fragment,null,[a,l])});return E({apForm:e.computed(()=>e.unref(x))}),(t,n)=>(e.openBlock(),e.createBlock(ee.default,e.mergeProps({class:e.unref(O)(),ref_key:"apForm",ref:x},e.unref(_.omit)(o,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value.hideNode))),e.createVNode(e.unref(r.Row),{gutter:16},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.nodes,a=>(e.openBlock(),e.createBlock(e.unref(r.Col),{key:a.key,span:a.span},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.node)))]),_:2},1032,["span"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=ne;
|
|
@@ -2,3 +2,4 @@ import { VNode, RendererNode, RendererElement } from 'vue';
|
|
|
2
2
|
export declare function diffFormItem(prevNodes: VNode[], current: VNode[]): VNode< RendererNode, RendererElement, {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>[];
|
|
5
|
+
export declare function execFunc(func: any, ...params: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),u=require("lodash-unified");function m(n,e){const t=a(n),i=a(e);return e.map(r=>{const o=p(r.props.name),c=i.get(o),s=t.get(o);if(!t.get(o)||(c==null?void 0:c.index)!==(s==null?void 0:s.index))return r;const g=f(s.item),l=f(c.item);return JSON.stringify(g)!==JSON.stringify(l)?r:y.cloneVNode(r,{_signal:s.item._signal})})}function p(n){return n?(u.isArray(n)?n:[n]).map(t=>""+t).join(""):""}function a(n){const e=new Map;return n.forEach((t,i)=>{const r=t.props,o=p(r.name);e.set(o,{item:r,index:i})}),e}function f(n){if(n===null||typeof n!="object")return n;const e={};for(const t in n){const i=n[t];t==="_signal"||typeof i=="function"||(e[t]=f(i))}return e}function d(n,...e){if(u.isArray(n))for(const t of n)u.isFunction(t)&&t(...e);else u.isFunction(n)&&n(...e)}exports.diffFormItem=m;exports.execFunc=d;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { ApExportGroupProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
3
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
4
|
+
successMessage: boolean;
|
|
5
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExportGroupProps>, {
|
|
6
|
+
successMessage: boolean;
|
|
7
|
+
}>>>, {
|
|
8
|
+
successMessage: boolean | string;
|
|
9
|
+
}, {}>;
|
|
4
10
|
export default _default;
|
|
11
|
+
type __VLS_WithDefaults<P, D> = {
|
|
12
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
13
|
+
default: D[K];
|
|
14
|
+
}> : P[K];
|
|
15
|
+
};
|
|
5
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
6
17
|
type __VLS_TypePropsToOption<T> = {
|
|
7
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -11,3 +22,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
11
22
|
required: true;
|
|
12
23
|
};
|
|
13
24
|
};
|
|
25
|
+
type __VLS_PrettifyLocal<T> = {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S=require("@ant-design/icons-vue"),n=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const l=require("./interface.js"),A=require("@aplus-frontend/hooks"),_=require("./handleExportDownload.js"),q=require("../../config-provider/hooks/use-namespace.js"),k=require("../../config-provider/hooks/use-locale.js"),G=require("../../config-provider/hooks/use-global-config.js"),T=t.defineComponent({__name:"ApExportGroup",props:{selectedRowKeys:{},disabled:{type:Boolean},auth:{},ifShow:{},text:{},idKey:{},request:{},getRequestParams:{},getInitialParams:{},beforeRequest:{},successMessage:{type:[Boolean,String],default:!1}},setup(y){const{hasPermission:g}=A.usePermission(),e=y,{b:w}=q.useNamespace("ap-export-group"),{t:u}=k.useLocale(),h=G.useGlobalConfig("uiMode"),p=t.computed(()=>{const a={aplus:"#0070FF",admin:"#34b77c"};return d.value?"":a[h.value]||a.aplus}),d=t.computed(()=>!!(e!=null&&e.disabled)),b=t.computed(()=>(e==null?void 0:e.successMessage)===!0?u("ap.apExportGroup.exportSuccess"):e!=null&&e.successMessage?e.successMessage:""),v={textAlign:"center"},c=t.ref(!1),f=t.computed(()=>(e==null?void 0:e.selectedRowKeys)||[]),C=t.computed(()=>{let a=e==null?void 0:e.ifShow;return!(e!=null&&e.ifShow)&&(e!=null&&e.auth)&&(a=()=>g(e.auth)),(a==null?void 0:a())??!0});async function E({key:a}){var x,m;const{getRequestParams:r,request:o}=e||{};let i={};a===l.ApExportGroupActionType.SELECT?i={[(e==null?void 0:e.idKey)||"ids"]:f.value}:a===l.ApExportGroupActionType.ALL&&(i=(r==null?void 0:r())||{});const M=((x=e==null?void 0:e.getInitialParams)==null?void 0:x.call(e))||{};try{c.value=!0;let s={...i,...M};s=((m=e==null?void 0:e.beforeRequest)==null?void 0:m.call(e,s))||s,await _.handleExportDownload(async()=>await(o==null?void 0:o(s))),e!=null&&e.successMessage&&n.message.success(b.value)}finally{c.value=!1}}return(a,r)=>C.value?(t.openBlock(),t.createBlock(t.unref(n.Dropdown),{key:0,class:t.normalizeClass([t.unref(w)()]),overlayStyle:v,disabled:d.value},{overlay:t.withCtx(()=>[t.createVNode(t.unref(n.Menu),{onClick:E},{default:t.withCtx(()=>{var o;return[(t.openBlock(),t.createBlock(t.unref(n.MenuItem),{key:t.unref(l.ApExportGroupActionType).SELECT,disabled:((o=f.value)==null?void 0:o.length)===0},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(u)("ap.apExportGroup.exportSelected")),1)]),_:1},8,["disabled"])),(t.openBlock(),t.createBlock(t.unref(n.MenuItem),{key:t.unref(l.ApExportGroupActionType).ALL},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(u)("ap.apExportGroup.exportAll")),1)]),_:1}))]}),_:1})]),default:t.withCtx(()=>[t.createVNode(t.unref(n.Button),t.mergeProps({...a.$attrs},{style:{color:p.value},loading:c.value}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString((e==null?void 0:e.text)??t.unref(u)("ap.apExportGroup.export"))+" ",1),t.createVNode(t.unref(S.DownOutlined))]),_:1},16,["style","loading"])]),_:1},8,["class","disabled"])):t.createCommentVNode("",!0)}});exports.default=T;
|
|
@@ -3,27 +3,27 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApExportGroup: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
6
|
-
|
|
7
|
-
type: PropType<
|
|
6
|
+
text: {
|
|
7
|
+
type: PropType<string>;
|
|
8
8
|
};
|
|
9
9
|
disabled: {
|
|
10
10
|
type: PropType<boolean>;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
type: PropType<
|
|
12
|
+
request: {
|
|
13
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
14
|
+
};
|
|
15
|
+
selectedRowKeys: {
|
|
16
|
+
type: PropType<any[]>;
|
|
14
17
|
};
|
|
15
18
|
ifShow: {
|
|
16
19
|
type: PropType<() => boolean>;
|
|
17
20
|
};
|
|
18
|
-
|
|
21
|
+
auth: {
|
|
19
22
|
type: PropType<string>;
|
|
20
23
|
};
|
|
21
24
|
idKey: {
|
|
22
25
|
type: PropType<string>;
|
|
23
26
|
};
|
|
24
|
-
request: {
|
|
25
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
26
|
-
};
|
|
27
27
|
getRequestParams: {
|
|
28
28
|
type: PropType<() => Record<string, any>>;
|
|
29
29
|
};
|
|
@@ -33,28 +33,32 @@ declare const ApExportGroup: {
|
|
|
33
33
|
beforeRequest: {
|
|
34
34
|
type: PropType<(params: any) => Record<string, any>>;
|
|
35
35
|
};
|
|
36
|
+
successMessage: {
|
|
37
|
+
type: PropType<string | boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
36
40
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
37
|
-
|
|
38
|
-
type: PropType<
|
|
41
|
+
text: {
|
|
42
|
+
type: PropType<string>;
|
|
39
43
|
};
|
|
40
44
|
disabled: {
|
|
41
45
|
type: PropType<boolean>;
|
|
42
46
|
};
|
|
43
|
-
|
|
44
|
-
type: PropType<
|
|
47
|
+
request: {
|
|
48
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
49
|
+
};
|
|
50
|
+
selectedRowKeys: {
|
|
51
|
+
type: PropType<any[]>;
|
|
45
52
|
};
|
|
46
53
|
ifShow: {
|
|
47
54
|
type: PropType<() => boolean>;
|
|
48
55
|
};
|
|
49
|
-
|
|
56
|
+
auth: {
|
|
50
57
|
type: PropType<string>;
|
|
51
58
|
};
|
|
52
59
|
idKey: {
|
|
53
60
|
type: PropType<string>;
|
|
54
61
|
};
|
|
55
|
-
request: {
|
|
56
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
57
|
-
};
|
|
58
62
|
getRequestParams: {
|
|
59
63
|
type: PropType<() => Record<string, any>>;
|
|
60
64
|
};
|
|
@@ -64,7 +68,13 @@ declare const ApExportGroup: {
|
|
|
64
68
|
beforeRequest: {
|
|
65
69
|
type: PropType<(params: any) => Record<string, any>>;
|
|
66
70
|
};
|
|
67
|
-
|
|
71
|
+
successMessage: {
|
|
72
|
+
type: PropType<string | boolean>;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
}>>, {
|
|
76
|
+
successMessage: boolean | string;
|
|
77
|
+
}, true, {}, {}, {
|
|
68
78
|
P: {};
|
|
69
79
|
B: {};
|
|
70
80
|
D: {};
|
|
@@ -72,27 +82,27 @@ declare const ApExportGroup: {
|
|
|
72
82
|
M: {};
|
|
73
83
|
Defaults: {};
|
|
74
84
|
}, Readonly< ExtractPropTypes<{
|
|
75
|
-
|
|
76
|
-
type: PropType<
|
|
85
|
+
text: {
|
|
86
|
+
type: PropType<string>;
|
|
77
87
|
};
|
|
78
88
|
disabled: {
|
|
79
89
|
type: PropType<boolean>;
|
|
80
90
|
};
|
|
81
|
-
|
|
82
|
-
type: PropType<
|
|
91
|
+
request: {
|
|
92
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
93
|
+
};
|
|
94
|
+
selectedRowKeys: {
|
|
95
|
+
type: PropType<any[]>;
|
|
83
96
|
};
|
|
84
97
|
ifShow: {
|
|
85
98
|
type: PropType<() => boolean>;
|
|
86
99
|
};
|
|
87
|
-
|
|
100
|
+
auth: {
|
|
88
101
|
type: PropType<string>;
|
|
89
102
|
};
|
|
90
103
|
idKey: {
|
|
91
104
|
type: PropType<string>;
|
|
92
105
|
};
|
|
93
|
-
request: {
|
|
94
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
95
|
-
};
|
|
96
106
|
getRequestParams: {
|
|
97
107
|
type: PropType<() => Record<string, any>>;
|
|
98
108
|
};
|
|
@@ -102,32 +112,38 @@ declare const ApExportGroup: {
|
|
|
102
112
|
beforeRequest: {
|
|
103
113
|
type: PropType<(params: any) => Record<string, any>>;
|
|
104
114
|
};
|
|
105
|
-
|
|
115
|
+
successMessage: {
|
|
116
|
+
type: PropType<string | boolean>;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
}>>, {}, {}, {}, {}, {
|
|
120
|
+
successMessage: boolean | string;
|
|
121
|
+
}>;
|
|
106
122
|
__isFragment?: never;
|
|
107
123
|
__isTeleport?: never;
|
|
108
124
|
__isSuspense?: never;
|
|
109
125
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
110
|
-
|
|
111
|
-
type: PropType<
|
|
126
|
+
text: {
|
|
127
|
+
type: PropType<string>;
|
|
112
128
|
};
|
|
113
129
|
disabled: {
|
|
114
130
|
type: PropType<boolean>;
|
|
115
131
|
};
|
|
116
|
-
|
|
117
|
-
type: PropType<
|
|
132
|
+
request: {
|
|
133
|
+
type: PropType<(key: any) => Promise<any>>;
|
|
134
|
+
};
|
|
135
|
+
selectedRowKeys: {
|
|
136
|
+
type: PropType<any[]>;
|
|
118
137
|
};
|
|
119
138
|
ifShow: {
|
|
120
139
|
type: PropType<() => boolean>;
|
|
121
140
|
};
|
|
122
|
-
|
|
141
|
+
auth: {
|
|
123
142
|
type: PropType<string>;
|
|
124
143
|
};
|
|
125
144
|
idKey: {
|
|
126
145
|
type: PropType<string>;
|
|
127
146
|
};
|
|
128
|
-
request: {
|
|
129
|
-
type: PropType<(key: any) => Promise<any>>;
|
|
130
|
-
};
|
|
131
147
|
getRequestParams: {
|
|
132
148
|
type: PropType<() => Record<string, any>>;
|
|
133
149
|
};
|
|
@@ -137,7 +153,13 @@ declare const ApExportGroup: {
|
|
|
137
153
|
beforeRequest: {
|
|
138
154
|
type: PropType<(params: any) => Record<string, any>>;
|
|
139
155
|
};
|
|
140
|
-
|
|
156
|
+
successMessage: {
|
|
157
|
+
type: PropType<string | boolean>;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
161
|
+
successMessage: boolean | string;
|
|
162
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
141
163
|
$props: {
|
|
142
164
|
onClick?: () => void;
|
|
143
165
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("lodash-unified"),p=require("@aplus-frontend/antdv"),o=require("./utils.js");require("../../config-provider/index.js");const i=require("@aplus-frontend/utils"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("lodash-unified"),p=require("@aplus-frontend/antdv"),o=require("./utils.js");require("../../config-provider/index.js");const i=require("@aplus-frontend/utils"),T=require("../../config-provider/hooks/use-namespace.js"),_=e.defineComponent({name:"ApSummary",__name:"ap-summary",props:{data:{},columns:{},summaryTitle:{default:"合计"},hasSelect:{type:Boolean,default:!0},size:{default:"middle"}},setup(f){const s=f,y=n=>n===0,x=(n,u)=>{var r;if(!i.isNumeric(n)||u.valueType!=="number")return n;const a=(r=u.fieldProps)==null?void 0:r.field,t=(a==null?void 0:a.precision)||0;return(l.isNil(a==null?void 0:a.thousands)?!0:a==null?void 0:a.thousands)?i.toThousand(n,t):i.toFixed(n,t)},k=e.computed(()=>{let n=[];s.hasSelect&&n.push({key:"select",rowSpan:1,align:"left",value:""});const a=o.flattenColumns(s.columns).map((t,m)=>{let r;const C=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key));if(y(m))r=s.summaryTitle;else if(C&&(t.customRender||t.renderText)){const d=l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),S=o.formatDataIndex(t.dataIndex||t.key),c=t.customRender||t.renderText;r=c==null?void 0:c({value:d,record:{[S]:d},text:void 0,index:0,renderIndex:0,column:{}})}else r=x(l.get(s.data,o.formatDataIndex(t.dataIndex||t.key)),t);return{key:t.key,rowSpan:1,align:t.align,value:e.createVNode(e.Fragment,null,[r])}});return n.concat(a)}),{b:g,e:h,em:v}=T.useNamespace("ap-summary");return(n,u)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryRow),{class:e.normalizeClass(e.unref(g)())},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(a,t)=>(e.openBlock(),e.createBlock(e.unref(p.TableSummaryCell),{class:e.normalizeClass(`${s.size==="small"?e.unref(v)("item","small"):e.unref(h)("item")}`),key:a.key,index:t,style:e.normalizeStyle({textAlign:a.align})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:2},1032,["class","index","style"]))),128))]),_:1},8,["class"]))}});exports.default=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"},batchInputGroup:{popoverInputPlaceholder:"A maximum of 200 entries can be entered in batches, separated by newlines"}}};exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel",exportSuccess:"The task has been submitted,please go to the download center to check the progress"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"},batchInputGroup:{popoverInputPlaceholder:"A maximum of 200 entries can be entered in batches, separated by newlines"}}};exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},field:{startDateText:"开始日期",endDateText:"结束日期"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出Excel"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",all:"全部",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入200条"}}};exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},field:{startDateText:"开始日期",endDateText:"结束日期"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出Excel",exportSuccess:"任务已提交,前往下载中心查看进度"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},apGroupSearch:{defaultPlaceholder:"请输入",all:"全部",close:"关闭",clear:"清空",confirm:"确定",tokenSeparatorsPlaceholder:"支持批量输入,可用逗号、换行符号分隔,最多输入200条"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入200条"}}};exports.default=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.28",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"sortablejs": "^1.15.2",
|
|
65
65
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
66
66
|
"vuedraggable": "^4.1.0",
|
|
67
|
-
"@aplus-frontend/
|
|
68
|
-
"@aplus-frontend/
|
|
67
|
+
"@aplus-frontend/utils": "1.0.43",
|
|
68
|
+
"@aplus-frontend/hooks": "1.0.7"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@aplus-frontend/antdv": "^1.0.6",
|