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