@aplus-frontend/ui 7.19.0-beta.2 → 7.19.1
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/ag-grid/editable/form-item.vue.mjs +87 -77
- package/es/src/ag-grid/editable/interface.d.ts +15 -1
- package/es/src/ag-grid/index.vue.mjs +119 -120
- package/es/src/ap-form/ap-form.vue2.mjs +63 -61
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +59 -59
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +41 -40
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +15 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as re, reactive as oe, shallowRef as ne, ref as ie, unref as f, nextTick as le, toRaw as
|
|
1
|
+
import { defineComponent as re, reactive as oe, shallowRef as ne, ref as ie, unref as f, nextTick as le, toRaw as R, watch as ae, onWatcherCleanup as se, isVNode as ue, cloneVNode as ce, computed as fe, createBlock as k, openBlock as E, mergeProps as de, withCtx as N, renderSlot as O } from "vue";
|
|
2
2
|
import { Form as pe } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useUrlSearchParams as ge } from "@vueuse/core";
|
|
4
|
-
import { isArray as
|
|
4
|
+
import { isArray as P, cloneDeep as W, isEqual as me, omit as Fe } from "lodash-unified";
|
|
5
5
|
import "../render/index.mjs";
|
|
6
6
|
import { useDevWarning as he } from "../utils/warning.mjs";
|
|
7
7
|
import { getRouteType as ye } from "../utils/index.mjs";
|
|
8
|
-
import { INTERNAL_FORM_INSTANCE_MARK as
|
|
8
|
+
import { INTERNAL_FORM_INSTANCE_MARK as j } from "./constant.mjs";
|
|
9
9
|
import { useProvideForm as Ve } from "./context.mjs";
|
|
10
10
|
import { useInjectFormProvider as Te } from "./provider/context.mjs";
|
|
11
|
-
import { getModelValue as
|
|
12
|
-
import { genParams as
|
|
11
|
+
import { getModelValue as S } from "./utils/get.mjs";
|
|
12
|
+
import { genParams as B, setToParams as q } from "./utils/params.mjs";
|
|
13
13
|
import ve from "./utils/set.mjs";
|
|
14
14
|
import { transformValues as F } from "./utils/transform.mjs";
|
|
15
15
|
import { isDef as h } from "../utils/is.mjs";
|
|
@@ -47,30 +47,30 @@ const Se = /* @__PURE__ */ re({
|
|
|
47
47
|
syncToUrlPriority: { type: Boolean },
|
|
48
48
|
autoFocusFirstInput: { type: Boolean }
|
|
49
49
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const r =
|
|
50
|
+
setup(x, { expose: D }) {
|
|
51
|
+
const r = x;
|
|
52
52
|
function y(e, t, o = !0, i) {
|
|
53
|
-
if (
|
|
53
|
+
if (P(e)) {
|
|
54
54
|
let l = n;
|
|
55
55
|
for (let p = 0; p < e.length - 1; p++)
|
|
56
56
|
e[p] in l || (l[e[p]] = {}), l = l[e[p]];
|
|
57
57
|
i ? i(l, e[e.length - 1]) : l[e[e.length - 1]] = t;
|
|
58
58
|
} else
|
|
59
59
|
i ? i(n, e) : n[e] = t;
|
|
60
|
-
let
|
|
60
|
+
let b = P(e) ? e[0] : e;
|
|
61
61
|
if (o) {
|
|
62
|
-
const l = { [
|
|
62
|
+
const l = { [b]: n[b] };
|
|
63
63
|
g.triggerFormChange(r.name, l), r.onValuesChange?.(l, n, e);
|
|
64
64
|
}
|
|
65
65
|
m();
|
|
66
66
|
}
|
|
67
|
-
const a = ne(), V = ge(ye()), g = Te(),
|
|
68
|
-
r.syncToUrl ?
|
|
67
|
+
const a = ne(), V = ge(ye()), g = Te(), $ = he("ApForm"), T = ie(
|
|
68
|
+
r.syncToUrl ? B(r.syncToUrl, V, "get") : {}
|
|
69
69
|
);
|
|
70
|
-
let s =
|
|
71
|
-
const n = oe(
|
|
70
|
+
let s = W(M()), u = {};
|
|
71
|
+
const n = oe(M());
|
|
72
72
|
let d = [];
|
|
73
|
-
function
|
|
73
|
+
function M() {
|
|
74
74
|
const e = r.initialValues || {};
|
|
75
75
|
return r.syncToUrlPriority ? {
|
|
76
76
|
...e,
|
|
@@ -80,19 +80,19 @@ const Se = /* @__PURE__ */ re({
|
|
|
80
80
|
...e
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function K(e) {
|
|
84
84
|
const t = F(
|
|
85
85
|
e,
|
|
86
86
|
u,
|
|
87
87
|
c
|
|
88
88
|
);
|
|
89
|
-
g.triggerFormFinish(r.name, e), r.syncToUrl &&
|
|
89
|
+
g.triggerFormFinish(r.name, e), r.syncToUrl && q(V, B(r.syncToUrl, t, "set")), r.onFinish?.(t);
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const L = async () => {
|
|
92
92
|
a.value?.resetFields(), await le(() => {
|
|
93
|
-
Object.keys(n).forEach((e) => delete n[e]), Object.assign(n,
|
|
93
|
+
Object.keys(n).forEach((e) => delete n[e]), Object.assign(n, W(s)), m(), r.syncToUrl && q(
|
|
94
94
|
V,
|
|
95
|
-
|
|
95
|
+
B(
|
|
96
96
|
r.syncToUrl,
|
|
97
97
|
F(
|
|
98
98
|
s,
|
|
@@ -103,9 +103,9 @@ const Se = /* @__PURE__ */ re({
|
|
|
103
103
|
)
|
|
104
104
|
);
|
|
105
105
|
});
|
|
106
|
-
},
|
|
106
|
+
}, G = (e) => {
|
|
107
107
|
a.value?.clearValidate(e);
|
|
108
|
-
},
|
|
108
|
+
}, v = (e, t) => a.value?.validateFields(e, t), H = async (e, t) => {
|
|
109
109
|
const o = await a.value?.validateFields(
|
|
110
110
|
e,
|
|
111
111
|
t
|
|
@@ -115,23 +115,23 @@ const Se = /* @__PURE__ */ re({
|
|
|
115
115
|
u,
|
|
116
116
|
c
|
|
117
117
|
);
|
|
118
|
-
}, c = (e) => e === !0 ?
|
|
118
|
+
}, c = (e) => e === !0 ? R(n) : a.value?.getFieldsValue(e), J = (e) => {
|
|
119
119
|
const t = c(e);
|
|
120
120
|
return F(t, u, c);
|
|
121
121
|
}, Q = (e, t) => a.value?.validate(e, t), X = (e, t = {}) => {
|
|
122
122
|
a.value?.scrollToField(e, t);
|
|
123
123
|
}, Y = (e) => {
|
|
124
124
|
Object.assign(n, e), m();
|
|
125
|
-
},
|
|
125
|
+
}, I = (e, t, o = !0, i) => {
|
|
126
126
|
y(e, t, o, i), m();
|
|
127
127
|
};
|
|
128
|
-
function
|
|
129
|
-
return e(
|
|
128
|
+
function C(e) {
|
|
129
|
+
return e(R(n)), d.push(e), () => {
|
|
130
130
|
d = d.filter((t) => t !== e);
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
133
|
+
function U(e, t) {
|
|
134
|
+
if (P(e)) {
|
|
135
135
|
let o = s;
|
|
136
136
|
for (let i = 0; i < e.length - 1; i++)
|
|
137
137
|
h(o[e[i]]) || (o[e[i]] = {}), o = o[e[i]];
|
|
@@ -142,11 +142,11 @@ const Se = /* @__PURE__ */ re({
|
|
|
142
142
|
function Z(e, t) {
|
|
143
143
|
if (!h(e) || !h(t))
|
|
144
144
|
return;
|
|
145
|
-
const o =
|
|
145
|
+
const o = S(s, t);
|
|
146
146
|
if (me(o, e))
|
|
147
147
|
return;
|
|
148
|
-
const i =
|
|
149
|
-
h(i) && r.syncToUrlPriority || (y(t, e, !1),
|
|
148
|
+
const i = S(f(T), t);
|
|
149
|
+
h(i) && r.syncToUrlPriority || (y(t, e, !1), U(t, e));
|
|
150
150
|
}
|
|
151
151
|
function z(e, t) {
|
|
152
152
|
t && (u = ve(
|
|
@@ -156,44 +156,45 @@ const Se = /* @__PURE__ */ re({
|
|
|
156
156
|
!0
|
|
157
157
|
));
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function w({ initialValue: e, name: t, transform: o }) {
|
|
160
160
|
Z(e, t), z(t, o);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function _() {
|
|
163
163
|
return s;
|
|
164
164
|
}
|
|
165
165
|
function ee(e) {
|
|
166
|
-
if (
|
|
167
|
-
e ===
|
|
166
|
+
if ($(
|
|
167
|
+
e === j,
|
|
168
168
|
"usage",
|
|
169
169
|
"getInternalInstance should only used at internal"
|
|
170
|
-
), e ===
|
|
170
|
+
), e === j)
|
|
171
171
|
return {
|
|
172
|
-
registerField:
|
|
173
|
-
registerWatch:
|
|
174
|
-
setFieldValue:
|
|
175
|
-
getInitialValues:
|
|
176
|
-
updateInitialModel:
|
|
172
|
+
registerField: w,
|
|
173
|
+
registerWatch: C,
|
|
174
|
+
setFieldValue: I,
|
|
175
|
+
getInitialValues: _,
|
|
176
|
+
updateInitialModel: U,
|
|
177
|
+
validateFields: v
|
|
177
178
|
};
|
|
178
179
|
}
|
|
179
180
|
function m() {
|
|
180
181
|
if (d.length) {
|
|
181
|
-
const e =
|
|
182
|
+
const e = R(n);
|
|
182
183
|
d.forEach((t) => {
|
|
183
184
|
t(e);
|
|
184
185
|
});
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
const
|
|
188
|
-
resetFields:
|
|
189
|
-
clearValidate:
|
|
190
|
-
validateFields:
|
|
188
|
+
const A = {
|
|
189
|
+
resetFields: L,
|
|
190
|
+
clearValidate: G,
|
|
191
|
+
validateFields: v,
|
|
191
192
|
getFieldsValue: c,
|
|
192
193
|
validate: Q,
|
|
193
194
|
scrollToField: X,
|
|
194
195
|
setFieldsValue: Y,
|
|
195
|
-
setFieldValue:
|
|
196
|
-
registerWatch:
|
|
196
|
+
setFieldValue: I,
|
|
197
|
+
registerWatch: C,
|
|
197
198
|
validateFieldsReturnTransformed: H,
|
|
198
199
|
getFieldsValueTransformed: J,
|
|
199
200
|
getInternalInstance: ee
|
|
@@ -201,7 +202,7 @@ const Se = /* @__PURE__ */ re({
|
|
|
201
202
|
ae(
|
|
202
203
|
() => r.name,
|
|
203
204
|
(e) => {
|
|
204
|
-
e && (g.registerForm(e,
|
|
205
|
+
e && (g.registerForm(e, A), se(() => {
|
|
205
206
|
g.unregisterForm(r.name);
|
|
206
207
|
}));
|
|
207
208
|
},
|
|
@@ -216,13 +217,14 @@ const Se = /* @__PURE__ */ re({
|
|
|
216
217
|
model: fe(() => n),
|
|
217
218
|
updateModel: y,
|
|
218
219
|
internalInstance: {
|
|
219
|
-
registerWatch:
|
|
220
|
-
registerField:
|
|
221
|
-
setFieldValue:
|
|
222
|
-
getInitialValues:
|
|
223
|
-
updateInitialModel:
|
|
220
|
+
registerWatch: C,
|
|
221
|
+
registerField: w,
|
|
222
|
+
setFieldValue: I,
|
|
223
|
+
getInitialValues: _,
|
|
224
|
+
updateInitialModel: U,
|
|
225
|
+
validateFields: v
|
|
224
226
|
}
|
|
225
|
-
}),
|
|
227
|
+
}), D(A), (e, t) => (E(), k(f(pe), de(
|
|
226
228
|
{
|
|
227
229
|
ref_key: "formRef",
|
|
228
230
|
ref: a
|
|
@@ -238,19 +240,19 @@ const Se = /* @__PURE__ */ re({
|
|
|
238
240
|
{
|
|
239
241
|
model: n,
|
|
240
242
|
"data-form-name": e.name,
|
|
241
|
-
onFinish:
|
|
243
|
+
onFinish: K
|
|
242
244
|
}
|
|
243
245
|
), {
|
|
244
|
-
default:
|
|
245
|
-
e.autoFocusFirstInput ? (
|
|
246
|
+
default: N(() => [
|
|
247
|
+
e.autoFocusFirstInput ? (E(), k(f(Ie), {
|
|
246
248
|
key: 1,
|
|
247
249
|
renderer: te
|
|
248
250
|
}, {
|
|
249
|
-
default:
|
|
250
|
-
|
|
251
|
+
default: N(() => [
|
|
252
|
+
O(e.$slots, "default")
|
|
251
253
|
]),
|
|
252
254
|
_: 3
|
|
253
|
-
})) :
|
|
255
|
+
})) : O(e.$slots, "default", { key: 0 })
|
|
254
256
|
]),
|
|
255
257
|
_: 3
|
|
256
258
|
}, 16, ["model", "data-form-name"]));
|
|
@@ -149,6 +149,10 @@ export type ApFormInternalInstance = {
|
|
|
149
149
|
* 更新表单的初始值(仅用于某些组件内部调用的情况)
|
|
150
150
|
*/
|
|
151
151
|
updateInitialModel: (name: FormItemProps['name'], val: any) => void;
|
|
152
|
+
/**
|
|
153
|
+
* 表单校验
|
|
154
|
+
*/
|
|
155
|
+
validateFields: ApFormExpose['validateFields'];
|
|
152
156
|
};
|
|
153
157
|
export type ApFormItemExpose = FormItemExpose & {
|
|
154
158
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as fe, ref as
|
|
1
|
+
import { defineComponent as fe, ref as g, computed as U, watch as z, toRef as de, useSlots as ve, createVNode as l, cloneVNode as ge, unref as e, createElementBlock as E, openBlock as T, Fragment as ye, createBlock as B, createCommentVNode as j, resolveDynamicComponent as N, withCtx as s, withDirectives as Se, createElementVNode as m, normalizeClass as u, toDisplayString as y, createTextVNode as x, isRef as he, vShow as Te } from "vue";
|
|
2
2
|
import { SettingOutlined as Ce, SaveOutlined as be } from "@ant-design/icons-vue";
|
|
3
|
-
import { Button as F, Modal as ke, Divider as
|
|
3
|
+
import { Button as F, Modal as ke, Divider as $, RadioGroup as _e, RadioButton as M, Flex as ze, Space as q, Popover as xe } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../../../ap-button/index.mjs";
|
|
5
5
|
import { randomStr as Ae } from "../../../../utils/index.mjs";
|
|
6
6
|
import "../../../../config-provider/index.mjs";
|
|
@@ -14,7 +14,7 @@ import "../sorter/index.vue.mjs";
|
|
|
14
14
|
import "../template/edit-form.vue.mjs";
|
|
15
15
|
import "../template/index.vue.mjs";
|
|
16
16
|
import "../tree-select/index.vue.mjs";
|
|
17
|
-
import Re, { customCloneColumnStates as
|
|
17
|
+
import Re, { customCloneColumnStates as I, isEqualColumnStateIgnoreLabel as Ve } from "../utils.mjs";
|
|
18
18
|
import { useLocale as De } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
19
19
|
import { useNamespace as G } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
20
20
|
import Le from "../template/index.vue2.mjs";
|
|
@@ -41,26 +41,27 @@ const je = {
|
|
|
41
41
|
columnsBackup: J,
|
|
42
42
|
updateSize: Q,
|
|
43
43
|
updateColumns: W
|
|
44
|
-
} = Ke(), f =
|
|
44
|
+
} = Ke(), f = g(), C = U(() => c.config.persistenceKey), b = g(!1), {
|
|
45
45
|
basicTemplate: X,
|
|
46
46
|
customizeTemplateList: S,
|
|
47
47
|
addTemplate: Y,
|
|
48
|
-
deleteTemplate:
|
|
48
|
+
deleteTemplate: R,
|
|
49
49
|
updateTemplate: Z
|
|
50
|
-
} = Ne(c.config,
|
|
50
|
+
} = Ne(c.config, C, pe), {
|
|
51
51
|
columnState: p,
|
|
52
|
-
setColumnState:
|
|
52
|
+
setColumnState: V,
|
|
53
53
|
isAllSelected: ee,
|
|
54
54
|
toggleSelectAll: te
|
|
55
|
-
} = Be([]),
|
|
55
|
+
} = Be([]), k = U(() => C.value && `${C.value}__active_key`);
|
|
56
56
|
function D(a) {
|
|
57
|
-
localStorage.setItem(
|
|
57
|
+
k.value && localStorage.setItem(k.value, a);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
59
|
+
function A() {
|
|
60
|
+
if (k.value)
|
|
61
|
+
return localStorage.getItem(k.value);
|
|
61
62
|
}
|
|
62
|
-
const o =
|
|
63
|
-
|
|
63
|
+
const o = g(c.config.defaultActiveKey ?? A());
|
|
64
|
+
z(() => S.value, (a) => {
|
|
64
65
|
a.length && !o.value && (o.value = a[0]?.key);
|
|
65
66
|
}, {
|
|
66
67
|
immediate: !0
|
|
@@ -72,27 +73,27 @@ const je = {
|
|
|
72
73
|
const {
|
|
73
74
|
t: r
|
|
74
75
|
} = De(), {
|
|
75
|
-
b:
|
|
76
|
-
be:
|
|
76
|
+
b: v,
|
|
77
|
+
be: _
|
|
77
78
|
} = G("ap-column-setting"), {
|
|
78
79
|
b: ae
|
|
79
|
-
} = G("ap-table"), ne = $e("ap-column-setting"), h =
|
|
80
|
+
} = G("ap-table"), ne = $e("ap-column-setting"), h = g(!1), L = g(!1), le = ve(), O = we(le.trigger) || l(F, {
|
|
80
81
|
icon: l(Ce, null, null),
|
|
81
82
|
class: ae("setting-trigger-button")
|
|
82
|
-
}, null), P = O ?
|
|
83
|
+
}, null), P = O ? ge(O, {
|
|
83
84
|
onClick: () => {
|
|
84
85
|
h.value = !0;
|
|
85
86
|
}
|
|
86
87
|
}) : null;
|
|
87
88
|
function oe() {
|
|
88
|
-
|
|
89
|
+
V(I(e(X).columnState));
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function w(a, t) {
|
|
91
92
|
W?.(Re(e(J), a)), Q?.(t);
|
|
92
93
|
}
|
|
93
94
|
function ie() {
|
|
94
|
-
|
|
95
|
-
const a =
|
|
95
|
+
w(e(p), e(f)), h.value = !1;
|
|
96
|
+
const a = I(p.value), t = Z(o.value, {
|
|
96
97
|
columnState: a,
|
|
97
98
|
size: f.value
|
|
98
99
|
});
|
|
@@ -105,34 +106,33 @@ const je = {
|
|
|
105
106
|
columnState: p.value,
|
|
106
107
|
size: f.value
|
|
107
108
|
};
|
|
108
|
-
Y(n),
|
|
109
|
+
Y(n), b.value = !1, o.value = t, c.config.onChange?.(n.columnState, n);
|
|
109
110
|
}
|
|
110
111
|
function re(a, t) {
|
|
111
|
-
console.log(a, t);
|
|
112
112
|
const n = [...t].find((i) => i?.key === a);
|
|
113
|
-
n && (
|
|
113
|
+
n && (V(I(n.columnState)), f.value = n.size);
|
|
114
114
|
}
|
|
115
115
|
function ue(a) {
|
|
116
116
|
if (a !== o.value) {
|
|
117
|
-
|
|
117
|
+
R(a);
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
const t = S.value, n = t.findIndex((d) => d.key === a), i = t[n + 1]?.key ?? t[n - 1]?.key;
|
|
121
|
-
|
|
121
|
+
R(a), o.value = i, D(i);
|
|
122
122
|
}
|
|
123
123
|
function ce(a) {
|
|
124
124
|
if (L.value = a, !a) {
|
|
125
|
-
const t =
|
|
125
|
+
const t = A();
|
|
126
126
|
t && t !== o.value && (o.value = t);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function pe(a) {
|
|
130
|
-
const t =
|
|
130
|
+
const t = A() ?? a[0].key;
|
|
131
131
|
o.value = t;
|
|
132
132
|
const n = [...a].find((i) => i?.key === t);
|
|
133
|
-
n &&
|
|
133
|
+
n && w(n.columnState, n.size);
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
z(
|
|
136
136
|
[o, S],
|
|
137
137
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
138
138
|
([a, t], [n, i]) => {
|
|
@@ -140,7 +140,7 @@ const je = {
|
|
|
140
140
|
const d = [...t].find((me) => me.key === a);
|
|
141
141
|
if (!d)
|
|
142
142
|
return;
|
|
143
|
-
|
|
143
|
+
w(d.columnState, d.size);
|
|
144
144
|
}
|
|
145
145
|
re(a, t);
|
|
146
146
|
},
|
|
@@ -148,19 +148,19 @@ const je = {
|
|
|
148
148
|
immediate: !0
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
|
-
const
|
|
152
|
-
return
|
|
151
|
+
const K = g(!1);
|
|
152
|
+
return z([f, p, h], ([a, t, n]) => {
|
|
153
153
|
if (!n)
|
|
154
154
|
return;
|
|
155
155
|
const i = S.value.find((d) => d.key === o.value);
|
|
156
|
-
i && (i.size !== a || !Ve(t, i.columnState)) ?
|
|
156
|
+
i && (i.size !== a || !Ve(t, i.columnState)) ? K.value = !0 : K.value = !1;
|
|
157
157
|
}, {
|
|
158
158
|
deep: !0
|
|
159
|
-
}),
|
|
159
|
+
}), z(() => o.value, (a) => {
|
|
160
160
|
c.config.onActiveChange?.(a);
|
|
161
161
|
}, {
|
|
162
162
|
immediate: !0
|
|
163
|
-
}), (a, t) => (T(), E(ye, null, [e(P) ? (T(),
|
|
163
|
+
}), (a, t) => (T(), E(ye, null, [e(P) ? (T(), B(N(e(P)), {
|
|
164
164
|
key: 0
|
|
165
165
|
})) : j("", !0), l(e(ke), {
|
|
166
166
|
open: h.value,
|
|
@@ -173,7 +173,7 @@ const je = {
|
|
|
173
173
|
height: "516px"
|
|
174
174
|
},
|
|
175
175
|
"after-open-change": ce,
|
|
176
|
-
"wrap-class-name": `${e(
|
|
176
|
+
"wrap-class-name": `${e(v)()} ${e(ne)}`,
|
|
177
177
|
"ok-text": e(r)("ap.apTable.setting.saveAndApply"),
|
|
178
178
|
"mask-closable": !1,
|
|
179
179
|
onOk: ie
|
|
@@ -187,8 +187,8 @@ const je = {
|
|
|
187
187
|
size: 12
|
|
188
188
|
}, {
|
|
189
189
|
default: s(() => [l(e(xe), {
|
|
190
|
-
open:
|
|
191
|
-
"onUpdate:open": t[3] || (t[3] = (i) =>
|
|
190
|
+
open: b.value,
|
|
191
|
+
"onUpdate:open": t[3] || (t[3] = (i) => b.value = i),
|
|
192
192
|
trigger: "click",
|
|
193
193
|
arrow: !1,
|
|
194
194
|
placement: "topLeft",
|
|
@@ -196,57 +196,57 @@ const je = {
|
|
|
196
196
|
}, {
|
|
197
197
|
content: s(() => [l(Ee, {
|
|
198
198
|
onConfirm: se,
|
|
199
|
-
onCancel: t[2] || (t[2] = () =>
|
|
199
|
+
onCancel: t[2] || (t[2] = () => b.value = !1)
|
|
200
200
|
})]),
|
|
201
201
|
default: s(() => [l(e(Ue), {
|
|
202
202
|
type: "borderLink",
|
|
203
203
|
disabled: !a.config.persistenceKey
|
|
204
204
|
}, {
|
|
205
205
|
icon: s(() => [l(e(be))]),
|
|
206
|
-
default: s(() => [
|
|
206
|
+
default: s(() => [x(y(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
|
|
207
207
|
_: 1
|
|
208
208
|
}, 8, ["disabled"])]),
|
|
209
209
|
_: 1
|
|
210
|
-
}, 8, ["open"]),
|
|
210
|
+
}, 8, ["open"]), K.value ? (T(), E("span", {
|
|
211
211
|
key: 0,
|
|
212
|
-
class: u(e(
|
|
212
|
+
class: u(e(v)("modify-tip"))
|
|
213
213
|
}, y(e(r)("ap.apTable.setting.modifyNotification")), 3)) : j("", !0)]),
|
|
214
214
|
_: 1
|
|
215
215
|
}), l(e(q), {
|
|
216
216
|
size: 10
|
|
217
217
|
}, {
|
|
218
|
-
default: s(() => [(T(),
|
|
218
|
+
default: s(() => [(T(), B(N(n.cancelBtn))), (T(), B(N(n.okBtn)))]),
|
|
219
219
|
_: 2
|
|
220
220
|
}, 1024)]),
|
|
221
221
|
_: 2
|
|
222
222
|
}, 1024)]),
|
|
223
223
|
default: s(() => [Se(m("div", {
|
|
224
|
-
class: u(e(
|
|
224
|
+
class: u(e(v)("wrapper"))
|
|
225
225
|
}, [m("div", {
|
|
226
|
-
class: u(e(
|
|
226
|
+
class: u(e(v)("left"))
|
|
227
227
|
}, [l(Le, {
|
|
228
228
|
"customize-template-list": e(S),
|
|
229
|
-
"persistence-key":
|
|
230
|
-
}, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e(
|
|
229
|
+
"persistence-key": C.value
|
|
230
|
+
}, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e($), {
|
|
231
231
|
type: "vertical",
|
|
232
232
|
style: {
|
|
233
233
|
height: "100%",
|
|
234
234
|
margin: "0px"
|
|
235
235
|
}
|
|
236
236
|
}), m("div", {
|
|
237
|
-
class: u(e(
|
|
237
|
+
class: u(e(v)("center"))
|
|
238
238
|
}, [m("div", {
|
|
239
|
-
class: u(e(
|
|
239
|
+
class: u(e(_)("center", "header"))
|
|
240
240
|
}, [m("div", {
|
|
241
|
-
class: u(e(
|
|
241
|
+
class: u(e(_)("center", "tip-wrapper"))
|
|
242
242
|
}, [m("span", {
|
|
243
|
-
class: u(e(
|
|
243
|
+
class: u(e(_)("center", "header-tips"))
|
|
244
244
|
}, y(e(r)("ap.apTable.setting.selectAllTip")), 3), l(e(F), {
|
|
245
245
|
type: "link",
|
|
246
246
|
size: "small",
|
|
247
247
|
onClick: e(te)
|
|
248
248
|
}, {
|
|
249
|
-
default: s(() => [
|
|
249
|
+
default: s(() => [x(y(e(ee) ? e(r)("ap.apTable.setting.unSelectAll") : e(r)("ap.apTable.setting.selectAll")), 1)]),
|
|
250
250
|
_: 1
|
|
251
251
|
}, 8, ["onClick"])], 2), l(e(_e), {
|
|
252
252
|
value: f.value,
|
|
@@ -255,31 +255,31 @@ const je = {
|
|
|
255
255
|
default: s(() => [l(e(M), {
|
|
256
256
|
value: "small"
|
|
257
257
|
}, {
|
|
258
|
-
default: s(() => [
|
|
258
|
+
default: s(() => [x(y(e(r)("ap.apTable.setting.sizeSmall")), 1)]),
|
|
259
259
|
_: 1
|
|
260
260
|
}), l(e(M), {
|
|
261
261
|
value: "middle"
|
|
262
262
|
}, {
|
|
263
|
-
default: s(() => [
|
|
263
|
+
default: s(() => [x(y(e(r)("ap.apTable.setting.sizeNormal")), 1)]),
|
|
264
264
|
_: 1
|
|
265
265
|
})]),
|
|
266
266
|
_: 1
|
|
267
|
-
}, 8, ["value"])], 2), m("div", je, [l(e(
|
|
267
|
+
}, 8, ["value"])], 2), m("div", je, [l(e($), {
|
|
268
268
|
dashed: "",
|
|
269
269
|
style: {
|
|
270
270
|
margin: "0px"
|
|
271
271
|
}
|
|
272
272
|
})]), l(Oe, {
|
|
273
|
-
class: u(e(
|
|
273
|
+
class: u(e(_)("center", "content")),
|
|
274
274
|
value: e(p)
|
|
275
|
-
}, null, 8, ["class", "value"])], 2), l(e(
|
|
275
|
+
}, null, 8, ["class", "value"])], 2), l(e($), {
|
|
276
276
|
type: "vertical",
|
|
277
277
|
style: {
|
|
278
278
|
height: "100%",
|
|
279
279
|
margin: "0px"
|
|
280
280
|
}
|
|
281
281
|
}), m("div", {
|
|
282
|
-
class: u(e(
|
|
282
|
+
class: u(e(v)("right"))
|
|
283
283
|
}, [l(Pe, {
|
|
284
284
|
value: e(p),
|
|
285
285
|
"onUpdate:value": t[1] || (t[1] = (n) => he(p) ? p.value = n : null),
|