@aplus-frontend/ui 7.14.1 → 7.14.2
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-table/components/setting/modal/index.vue.mjs +99 -94
- package/es/src/ap-table/components/setting/template/index.vue.d.ts +1 -4
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -29
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +104 -91
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +45 -44
- package/es/src/business/ap-upload/components/Picture.vue2.mjs +90 -89
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/components/setting/template/index.vue.d.ts +1 -4
- package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +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/business/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +6 -6
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { SettingOutlined as
|
|
3
|
-
import { Button as F, Modal as
|
|
1
|
+
import { defineComponent as me, ref as g, computed as U, toRef as fe, useSlots as de, createVNode as n, cloneVNode as ve, unref as e, watch as w, createElementBlock as E, openBlock as T, Fragment as ge, createBlock as K, createCommentVNode as j, resolveDynamicComponent as B, withCtx as o, withDirectives as ye, createElementVNode as m, normalizeClass as u, toDisplayString as y, createTextVNode as h, isRef as Se, vShow as Te } from "vue";
|
|
2
|
+
import { SettingOutlined as Ce, SaveOutlined as be } from "@ant-design/icons-vue";
|
|
3
|
+
import { Button as F, Modal as he, Divider as N, RadioGroup as ke, RadioButton as M, Flex as _e, Space as q, Popover as ze } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../../../ap-button/index.mjs";
|
|
5
|
-
import { randomStr as
|
|
5
|
+
import { randomStr as xe } from "../../../../utils/index.mjs";
|
|
6
6
|
import "../../../../config-provider/index.mjs";
|
|
7
|
-
import { getSingleVNode as
|
|
8
|
-
import { useInjectApTable as
|
|
9
|
-
import { useTableColumnState as
|
|
7
|
+
import { getSingleVNode as Ae } from "../../../../utils/slot.mjs";
|
|
8
|
+
import { useInjectApTable as we } from "../../../context.mjs";
|
|
9
|
+
import { useTableColumnState as Ke } from "../../../hooks/use-table-column-state.mjs";
|
|
10
10
|
import { useTableTemplateStorage as Be } from "../../../hooks/use-table-template-storage.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { useProvideApColumnSetting as
|
|
11
|
+
import Ne from "../../../style/setting.mjs";
|
|
12
|
+
import { useProvideApColumnSetting as $e } from "../context.mjs";
|
|
13
13
|
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
|
|
18
|
-
import { useLocale as
|
|
17
|
+
import Ie, { customCloneColumnStates as $, isEqualColumnStateIgnoreLabel as Re } from "../utils.mjs";
|
|
18
|
+
import { useLocale as Ve } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
19
19
|
import { useNamespace as G } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
20
|
+
import De from "../template/index.vue2.mjs";
|
|
21
|
+
import Le from "../tree-select/index.vue2.mjs";
|
|
22
|
+
import Oe from "../sorter/index.vue2.mjs";
|
|
23
|
+
import Pe from "../../../../ap-button/ap-button.vue.mjs";
|
|
24
24
|
import Ue from "../template/edit-form.vue2.mjs";
|
|
25
25
|
const Ee = {
|
|
26
26
|
style: {
|
|
27
27
|
"padding-inline": "8px"
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, mt = /* @__PURE__ */ me({
|
|
30
30
|
name: "ApTableSetting",
|
|
31
31
|
__name: "index",
|
|
32
32
|
props: {
|
|
@@ -41,112 +41,118 @@ const Ee = {
|
|
|
41
41
|
columnsBackup: J,
|
|
42
42
|
updateSize: Q,
|
|
43
43
|
updateColumns: W
|
|
44
|
-
} =
|
|
44
|
+
} = we(), f = g(), k = U(() => c.config.persistenceKey), C = g(!1), {
|
|
45
45
|
basicTemplate: X,
|
|
46
|
-
customizeTemplateList:
|
|
46
|
+
customizeTemplateList: d,
|
|
47
47
|
addTemplate: Y,
|
|
48
|
-
deleteTemplate:
|
|
48
|
+
deleteTemplate: I,
|
|
49
49
|
updateTemplate: Z
|
|
50
|
-
} = Be(c.config, k), {
|
|
50
|
+
} = Be(c.config, k, pe), {
|
|
51
51
|
columnState: p,
|
|
52
|
-
setColumnState:
|
|
52
|
+
setColumnState: R,
|
|
53
53
|
isAllSelected: ee,
|
|
54
54
|
toggleSelectAll: te
|
|
55
|
-
} =
|
|
56
|
-
function
|
|
57
|
-
localStorage.setItem(
|
|
55
|
+
} = Ke([]), V = U(() => `${k.value}__active_key`);
|
|
56
|
+
function D(a) {
|
|
57
|
+
localStorage.setItem(V.value, a);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return localStorage.getItem(
|
|
59
|
+
function _() {
|
|
60
|
+
return localStorage.getItem(V.value);
|
|
61
61
|
}
|
|
62
|
-
const i =
|
|
63
|
-
|
|
62
|
+
const i = g(c.config.defaultActiveKey ?? _() ?? d.value?.[0].key);
|
|
63
|
+
$e({
|
|
64
64
|
activeKey: i,
|
|
65
|
-
cacheConfig:
|
|
66
|
-
deleteTemplate:
|
|
65
|
+
cacheConfig: fe(c, "config"),
|
|
66
|
+
deleteTemplate: ue
|
|
67
67
|
});
|
|
68
68
|
const {
|
|
69
69
|
t: r
|
|
70
|
-
} =
|
|
71
|
-
b:
|
|
70
|
+
} = Ve(), {
|
|
71
|
+
b: v,
|
|
72
72
|
be: b
|
|
73
73
|
} = G("ap-column-setting"), {
|
|
74
74
|
b: ae
|
|
75
|
-
} = G("ap-table"), le =
|
|
76
|
-
icon: n(
|
|
75
|
+
} = G("ap-table"), le = Ne("ap-column-setting"), S = g(!1), L = g(!1), ne = de(), O = Ae(ne.trigger) || n(F, {
|
|
76
|
+
icon: n(Ce, null, null),
|
|
77
77
|
class: ae("setting-trigger-button")
|
|
78
|
-
}, null),
|
|
78
|
+
}, null), P = O ? ve(O, {
|
|
79
79
|
onClick: () => {
|
|
80
80
|
S.value = !0;
|
|
81
81
|
}
|
|
82
82
|
}) : null;
|
|
83
83
|
function oe() {
|
|
84
|
-
$(
|
|
84
|
+
R($(e(X).columnState));
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
W?.(
|
|
86
|
+
function z(a, t) {
|
|
87
|
+
W?.(Ie(e(J), a)), Q?.(t);
|
|
88
88
|
}
|
|
89
89
|
function ie() {
|
|
90
|
-
|
|
91
|
-
const a =
|
|
90
|
+
z(e(p), e(f)), S.value = !1;
|
|
91
|
+
const a = $(p.value), t = Z(i.value, {
|
|
92
92
|
columnState: a,
|
|
93
|
-
size:
|
|
93
|
+
size: f.value
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
D(i.value), c.config?.onChange?.(a, t);
|
|
96
96
|
}
|
|
97
97
|
function se(a) {
|
|
98
|
-
const t = c.config.getActiveKey?.(a) ??
|
|
98
|
+
const t = c.config.getActiveKey?.(a) ?? xe(), l = {
|
|
99
99
|
key: t,
|
|
100
100
|
label: a,
|
|
101
101
|
columnState: p.value,
|
|
102
|
-
size:
|
|
102
|
+
size: f.value
|
|
103
103
|
};
|
|
104
104
|
Y(l), C.value = !1, i.value = t, c.config.onChange?.(l.columnState, l);
|
|
105
105
|
}
|
|
106
|
-
function E(a) {
|
|
107
|
-
const t = [...f.value].find((l) => l?.key === a);
|
|
108
|
-
t && ($(K(t.columnState)), d.value = t.size);
|
|
109
|
-
}
|
|
110
106
|
function re(a) {
|
|
107
|
+
const t = [...d.value].find((l) => l?.key === a);
|
|
108
|
+
t && (R($(t.columnState)), f.value = t.size);
|
|
109
|
+
}
|
|
110
|
+
function ue(a) {
|
|
111
111
|
if (a !== i.value) {
|
|
112
|
-
|
|
112
|
+
I(a);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
const t =
|
|
116
|
-
|
|
115
|
+
const t = d.value, l = t.findIndex((A) => A.key === a), s = t[l + 1]?.key ?? t[l - 1]?.key;
|
|
116
|
+
I(a), i.value = s, D(s);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
if (
|
|
120
|
-
const t =
|
|
118
|
+
function ce(a) {
|
|
119
|
+
if (L.value = a, !a) {
|
|
120
|
+
const t = _();
|
|
121
121
|
t && t !== i.value && (i.value = t);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
function pe(a) {
|
|
125
|
+
const t = _() ?? a[0].key;
|
|
126
|
+
i.value = t;
|
|
127
|
+
const l = [...a].find((s) => s?.key === t);
|
|
128
|
+
l && z(l.columnState, l.size);
|
|
129
|
+
}
|
|
130
|
+
w(() => i.value, (a, t) => {
|
|
125
131
|
if (!t && a) {
|
|
126
|
-
const l = [...
|
|
132
|
+
const l = [...d.value].find((s) => s?.key === a);
|
|
127
133
|
if (!l)
|
|
128
134
|
return;
|
|
129
|
-
|
|
135
|
+
z(l.columnState, l.size);
|
|
130
136
|
}
|
|
131
|
-
|
|
137
|
+
re(a);
|
|
132
138
|
}, {
|
|
133
139
|
immediate: !0
|
|
134
140
|
});
|
|
135
|
-
const
|
|
136
|
-
return
|
|
141
|
+
const x = g(!1);
|
|
142
|
+
return w([f, p, S], ([a, t, l]) => {
|
|
137
143
|
if (!l)
|
|
138
144
|
return;
|
|
139
|
-
const s =
|
|
140
|
-
s && (s.size !== a || !
|
|
145
|
+
const s = d.value.find((A) => A.key === i.value);
|
|
146
|
+
s && (s.size !== a || !Re(t, s.columnState)) ? x.value = !0 : x.value = !1;
|
|
141
147
|
}, {
|
|
142
148
|
deep: !0
|
|
143
|
-
}),
|
|
149
|
+
}), w(() => i.value, (a) => {
|
|
144
150
|
c.config.onActiveChange?.(a);
|
|
145
151
|
}, {
|
|
146
152
|
immediate: !0
|
|
147
|
-
}), (a, t) => (T(),
|
|
153
|
+
}), (a, t) => (T(), E(ge, null, [e(P) ? (T(), K(B(e(P)), {
|
|
148
154
|
key: 0
|
|
149
|
-
})) : j("", !0), n(e(
|
|
155
|
+
})) : j("", !0), n(e(he), {
|
|
150
156
|
open: S.value,
|
|
151
157
|
"onUpdate:open": t[4] || (t[4] = (l) => S.value = l),
|
|
152
158
|
title: e(r)("ap.apTable.setting.title"),
|
|
@@ -156,21 +162,21 @@ const Ee = {
|
|
|
156
162
|
padding: "0px !important",
|
|
157
163
|
height: "516px"
|
|
158
164
|
},
|
|
159
|
-
"after-open-change":
|
|
160
|
-
"wrap-class-name": `${e(
|
|
165
|
+
"after-open-change": ce,
|
|
166
|
+
"wrap-class-name": `${e(v)()} ${e(le)}`,
|
|
161
167
|
"ok-text": e(r)("ap.apTable.setting.saveAndApply"),
|
|
162
168
|
"mask-closable": !1,
|
|
163
169
|
onOk: ie
|
|
164
170
|
}, {
|
|
165
171
|
footer: o(({
|
|
166
172
|
extra: l
|
|
167
|
-
}) => [n(e(
|
|
173
|
+
}) => [n(e(_e), {
|
|
168
174
|
justify: "space-between"
|
|
169
175
|
}, {
|
|
170
176
|
default: o(() => [n(e(q), {
|
|
171
177
|
size: 12
|
|
172
178
|
}, {
|
|
173
|
-
default: o(() => [n(e(
|
|
179
|
+
default: o(() => [n(e(ze), {
|
|
174
180
|
open: C.value,
|
|
175
181
|
"onUpdate:open": t[3] || (t[3] = (s) => C.value = s),
|
|
176
182
|
trigger: "click",
|
|
@@ -182,44 +188,43 @@ const Ee = {
|
|
|
182
188
|
onConfirm: se,
|
|
183
189
|
onCancel: t[2] || (t[2] = () => C.value = !1)
|
|
184
190
|
})]),
|
|
185
|
-
default: o(() => [n(e(
|
|
191
|
+
default: o(() => [n(e(Pe), {
|
|
186
192
|
type: "borderLink",
|
|
187
193
|
disabled: !a.config.persistenceKey
|
|
188
194
|
}, {
|
|
189
|
-
icon: o(() => [n(e(
|
|
195
|
+
icon: o(() => [n(e(be))]),
|
|
190
196
|
default: o(() => [h(y(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
|
|
191
197
|
_: 1
|
|
192
198
|
}, 8, ["disabled"])]),
|
|
193
199
|
_: 1
|
|
194
|
-
}, 8, ["open"]),
|
|
200
|
+
}, 8, ["open"]), x.value ? (T(), E("span", {
|
|
195
201
|
key: 0,
|
|
196
|
-
class: u(e(
|
|
202
|
+
class: u(e(v)("modify-tip"))
|
|
197
203
|
}, y(e(r)("ap.apTable.setting.modifyNotification")), 3)) : j("", !0)]),
|
|
198
204
|
_: 1
|
|
199
205
|
}), n(e(q), {
|
|
200
206
|
size: 10
|
|
201
207
|
}, {
|
|
202
|
-
default: o(() => [(T(),
|
|
208
|
+
default: o(() => [(T(), K(B(l.cancelBtn))), (T(), K(B(l.okBtn)))]),
|
|
203
209
|
_: 2
|
|
204
210
|
}, 1024)]),
|
|
205
211
|
_: 2
|
|
206
212
|
}, 1024)]),
|
|
207
|
-
default: o(() => [
|
|
208
|
-
class: u(e(
|
|
213
|
+
default: o(() => [ye(m("div", {
|
|
214
|
+
class: u(e(v)("wrapper"))
|
|
209
215
|
}, [m("div", {
|
|
210
|
-
class: u(e(
|
|
211
|
-
}, [n(
|
|
212
|
-
"customize-template-list": e(
|
|
213
|
-
"persistence-key": k.value
|
|
214
|
-
|
|
215
|
-
}, null, 8, ["customize-template-list", "persistence-key"])], 2), n(e(B), {
|
|
216
|
+
class: u(e(v)("left"))
|
|
217
|
+
}, [n(De, {
|
|
218
|
+
"customize-template-list": e(d),
|
|
219
|
+
"persistence-key": k.value
|
|
220
|
+
}, null, 8, ["customize-template-list", "persistence-key"])], 2), n(e(N), {
|
|
216
221
|
type: "vertical",
|
|
217
222
|
style: {
|
|
218
223
|
height: "100%",
|
|
219
224
|
margin: "0px"
|
|
220
225
|
}
|
|
221
226
|
}), m("div", {
|
|
222
|
-
class: u(e(
|
|
227
|
+
class: u(e(v)("center"))
|
|
223
228
|
}, [m("div", {
|
|
224
229
|
class: u(e(b)("center", "header"))
|
|
225
230
|
}, [m("div", {
|
|
@@ -233,9 +238,9 @@ const Ee = {
|
|
|
233
238
|
}, {
|
|
234
239
|
default: o(() => [h(y(e(ee) ? e(r)("ap.apTable.setting.unSelectAll") : e(r)("ap.apTable.setting.selectAll")), 1)]),
|
|
235
240
|
_: 1
|
|
236
|
-
}, 8, ["onClick"])], 2), n(e(
|
|
237
|
-
value:
|
|
238
|
-
"onUpdate:value": t[0] || (t[0] = (l) =>
|
|
241
|
+
}, 8, ["onClick"])], 2), n(e(ke), {
|
|
242
|
+
value: f.value,
|
|
243
|
+
"onUpdate:value": t[0] || (t[0] = (l) => f.value = l)
|
|
239
244
|
}, {
|
|
240
245
|
default: o(() => [n(e(M), {
|
|
241
246
|
value: "small"
|
|
@@ -249,31 +254,31 @@ const Ee = {
|
|
|
249
254
|
_: 1
|
|
250
255
|
})]),
|
|
251
256
|
_: 1
|
|
252
|
-
}, 8, ["value"])], 2), m("div", Ee, [n(e(
|
|
257
|
+
}, 8, ["value"])], 2), m("div", Ee, [n(e(N), {
|
|
253
258
|
dashed: "",
|
|
254
259
|
style: {
|
|
255
260
|
margin: "0px"
|
|
256
261
|
}
|
|
257
|
-
})]), n(
|
|
262
|
+
})]), n(Le, {
|
|
258
263
|
class: u(e(b)("center", "content")),
|
|
259
264
|
value: e(p)
|
|
260
|
-
}, null, 8, ["class", "value"])], 2), n(e(
|
|
265
|
+
}, null, 8, ["class", "value"])], 2), n(e(N), {
|
|
261
266
|
type: "vertical",
|
|
262
267
|
style: {
|
|
263
268
|
height: "100%",
|
|
264
269
|
margin: "0px"
|
|
265
270
|
}
|
|
266
271
|
}), m("div", {
|
|
267
|
-
class: u(e(
|
|
268
|
-
}, [n(
|
|
272
|
+
class: u(e(v)("right"))
|
|
273
|
+
}, [n(Oe, {
|
|
269
274
|
value: e(p),
|
|
270
|
-
"onUpdate:value": t[1] || (t[1] = (l) =>
|
|
275
|
+
"onUpdate:value": t[1] || (t[1] = (l) => Se(p) ? p.value = l : null),
|
|
271
276
|
onReset: oe
|
|
272
|
-
}, null, 8, ["value"])], 2)], 2), [[
|
|
277
|
+
}, null, 8, ["value"])], 2)], 2), [[Te, L.value]])]),
|
|
273
278
|
_: 1
|
|
274
279
|
}, 8, ["open", "title", "wrap-class-name", "ok-text"])], 64));
|
|
275
280
|
}
|
|
276
281
|
});
|
|
277
282
|
export {
|
|
278
|
-
|
|
283
|
+
mt as default
|
|
279
284
|
};
|
|
@@ -3,9 +3,6 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
customizeTemplateList: ApColumnTemplate[];
|
|
5
5
|
persistenceKey: string;
|
|
6
|
-
onActiveChange: (nextActiveKey: string) => void;
|
|
7
6
|
};
|
|
8
|
-
declare const _default: DefineComponent<__VLS_Props, {
|
|
9
|
-
updateActiveKey: (key: string) => void;
|
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
8
|
export default _default;
|
|
@@ -1,44 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { defineComponent as p, createBlock as l, openBlock as n, unref as e, normalizeClass as r, withCtx as u, createElementVNode as a, createVNode as d, toDisplayString as f, createElementBlock as v, Fragment as k, renderList as _ } from "vue";
|
|
2
|
+
import { Flex as g, Divider as y } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
|
-
import { useInjectApColumnSetting as
|
|
4
|
+
import { useInjectApColumnSetting as h } from "../context.mjs";
|
|
5
5
|
import "./item.vue.mjs";
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
6
|
+
import { useLocale as C } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as L } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import z from "./item.vue2.mjs";
|
|
9
|
+
const V = /* @__PURE__ */ p({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
customizeTemplateList: {},
|
|
13
|
-
persistenceKey: {}
|
|
14
|
-
onActiveChange: { type: Function }
|
|
13
|
+
persistenceKey: {}
|
|
15
14
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const { t:
|
|
18
|
-
function
|
|
19
|
-
|
|
15
|
+
setup(x) {
|
|
16
|
+
const { t: c } = C(), { b: o } = L("ap-column-setting-template-list"), { activeKey: s } = h();
|
|
17
|
+
function m(t) {
|
|
18
|
+
s.value = t;
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
n.value = t;
|
|
23
|
-
}
|
|
24
|
-
return c({ updateActiveKey: u }), (t, F) => (a(), l(e(h), {
|
|
20
|
+
return (t, B) => (n(), l(e(g), {
|
|
25
21
|
vertical: "",
|
|
26
|
-
class:
|
|
22
|
+
class: r(e(o)())
|
|
27
23
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
30
|
-
class:
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class:
|
|
24
|
+
default: u(() => [
|
|
25
|
+
a("div", {
|
|
26
|
+
class: r(e(o)("title"))
|
|
27
|
+
}, f(e(c)("ap.apTable.setting.templateSetting")), 3),
|
|
28
|
+
d(e(y), { style: { margin: "0" } }),
|
|
29
|
+
a("div", {
|
|
30
|
+
class: r(e(o)("content"))
|
|
35
31
|
}, [
|
|
36
|
-
(
|
|
32
|
+
(n(!0), v(k, null, _(t.customizeTemplateList, (i) => (n(), l(z, {
|
|
37
33
|
key: i.key,
|
|
38
34
|
value: i,
|
|
39
|
-
"is-active": e(
|
|
35
|
+
"is-active": e(s) === i.key,
|
|
40
36
|
"should-remove": t.customizeTemplateList.length > 1,
|
|
41
|
-
onClick: () =>
|
|
37
|
+
onClick: () => m(i.key)
|
|
42
38
|
}, null, 8, ["value", "is-active", "should-remove", "onClick"]))), 128))
|
|
43
39
|
], 2)
|
|
44
40
|
]),
|
|
@@ -47,5 +43,5 @@ const j = /* @__PURE__ */ v({
|
|
|
47
43
|
}
|
|
48
44
|
});
|
|
49
45
|
export {
|
|
50
|
-
|
|
46
|
+
V as default
|
|
51
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ApColumnTemplate, ApTableSettingType } from '..';
|
|
3
|
-
export declare const useTableTemplateStorage: (columnSetting: ApTableSettingType, persistenceKey: Ref<string | undefined
|
|
3
|
+
export declare const useTableTemplateStorage: (columnSetting: ApTableSettingType, persistenceKey: Ref<string | undefined>, onPersistenceKeyChange: (templateList: ApColumnTemplate[]) => void) => {
|
|
4
4
|
basicTemplate: Ref<ApColumnTemplate | undefined, ApColumnTemplate | undefined>;
|
|
5
5
|
customizeTemplateList: Ref<{
|
|
6
6
|
columnState: {
|