@aplus-frontend/ui 0.1.26 → 0.1.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-download/ap-download.vue.d.ts +12 -4
- package/es/src/ap-download/ap-download.vue.mjs +72 -37
- package/es/src/ap-download/interface.d.ts +5 -12
- package/es/src/ap-download/style/ap-download.css +6 -0
- package/es/src/ap-field/select/index.vue.mjs +65 -63
- package/es/src/ap-table/ap-table.vue.mjs +231 -183
- package/es/src/ap-table/components/interface.d.ts +33 -1
- package/es/src/ap-table/components/setting/images/icon_carst_down.svg.mjs +4 -0
- package/es/src/ap-table/components/setting/images/icon_fill_right.svg.mjs +4 -0
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +28 -0
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +152 -0
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/select-group/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +96 -0
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/sortable/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +51 -0
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +20 -0
- package/es/src/ap-table/components/setting/sortable/item.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +140 -0
- package/es/src/ap-table/components/setting/sorter/context.d.ts +11 -0
- package/es/src/ap-table/components/setting/sorter/context.mjs +20 -0
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +18 -0
- package/es/src/ap-table/components/setting/sorter/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +199 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +75 -0
- package/es/src/ap-table/components/setting/utils.d.ts +17 -0
- package/es/src/ap-table/components/setting/utils.mjs +48 -0
- package/es/src/ap-table/components/style/setting/modal.css +39 -0
- package/es/src/ap-table/components/style/setting/select-group.css +7 -0
- package/es/src/ap-table/components/style/setting/sortable-item-meta.css +50 -0
- package/es/src/ap-table/components/style/setting/sortable-item.css +3 -0
- package/es/src/ap-table/components/style/setting/sorter.css +26 -0
- package/es/src/ap-table/constants.d.ts +31 -8
- package/es/src/ap-table/constants.mjs +41 -53
- package/es/src/ap-table/context.d.ts +31 -0
- package/es/src/ap-table/context.mjs +20 -0
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +18 -0
- package/es/src/ap-table/hooks/use-table-column-state.mjs +46 -0
- package/es/src/ap-table/hooks/use-table-content-height.mjs +19 -19
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +87 -82
- package/es/src/ap-table/interface.d.ts +51 -1
- package/es/src/ap-table/style/ap-table.css +29 -1
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/ap-table/utils.mjs +82 -82
- package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +89 -66
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/business/ap-attachment/style.css +6 -0
- package/es/src/business/ap-input-radio/interface.d.ts +1 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/es/src/business/index.d.ts +1 -3
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/locale/lang/en.mjs +14 -0
- package/es/src/locale/lang/zh-cn.mjs +14 -0
- package/es/src/theme/ap-attachment/ap-attachment.css +6 -0
- package/es/src/theme/ap-download/ap-download.css +6 -0
- package/es/src/theme/ap-table/ap-table.css +29 -1
- package/es/src/theme/ap-table/setting/modal.css +39 -0
- package/es/src/theme/ap-table/setting/select-group.css +7 -0
- package/es/src/theme/ap-table/setting/sortable-item-meta.css +50 -0
- package/es/src/theme/ap-table/setting/sortable-item.css +3 -0
- package/es/src/theme/ap-table/setting/sorter.css +26 -0
- package/es/src/theme/css-var/index.mjs +22 -12
- package/lib/src/ap-download/ap-download.vue.d.ts +12 -4
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +5 -12
- package/lib/src/ap-download/style/ap-download.css +6 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/interface.d.ts +33 -1
- package/lib/src/ap-table/components/setting/images/icon_carst_down.svg.js +1 -0
- package/lib/src/ap-table/components/setting/images/icon_fill_right.svg.js +1 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +28 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/sortable/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +20 -0
- package/lib/src/ap-table/components/setting/sortable/item.vue.js +1 -0
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/sorter/context.d.ts +11 -0
- package/lib/src/ap-table/components/setting/sorter/context.js +1 -0
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +18 -0
- package/lib/src/ap-table/components/setting/sorter/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/utils.d.ts +17 -0
- package/lib/src/ap-table/components/setting/utils.js +1 -0
- package/lib/src/ap-table/components/style/setting/modal.css +39 -0
- package/lib/src/ap-table/components/style/setting/select-group.css +7 -0
- package/lib/src/ap-table/components/style/setting/sortable-item-meta.css +50 -0
- package/lib/src/ap-table/components/style/setting/sortable-item.css +3 -0
- package/lib/src/ap-table/components/style/setting/sorter.css +26 -0
- package/lib/src/ap-table/constants.d.ts +31 -8
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/context.d.ts +31 -0
- package/lib/src/ap-table/context.js +1 -0
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +18 -0
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -0
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +51 -1
- package/lib/src/ap-table/style/ap-table.css +29 -1
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-attachment/style.css +6 -0
- package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/lib/src/business/index.d.ts +1 -3
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-attachment/ap-attachment.css +6 -0
- package/lib/src/theme/ap-download/ap-download.css +6 -0
- package/lib/src/theme/ap-table/ap-table.css +29 -1
- package/lib/src/theme/ap-table/setting/modal.css +39 -0
- package/lib/src/theme/ap-table/setting/select-group.css +7 -0
- package/lib/src/theme/ap-table/setting/sortable-item-meta.css +50 -0
- package/lib/src/theme/ap-table/setting/sortable-item.css +3 -0
- package/lib/src/theme/ap-table/setting/sorter.css +26 -0
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
|
|
2
|
+
import { Flex as G, Button as H, Divider as J } from "ant-design-vue";
|
|
3
|
+
import N from "vuedraggable";
|
|
4
|
+
import "../sortable/index.vue.mjs";
|
|
5
|
+
import "../../../../config-provider/index.mjs";
|
|
6
|
+
import "../../style/setting/sorter.css";
|
|
7
|
+
import { useProvideSorterMethods as K } from "./context.mjs";
|
|
8
|
+
import { useNamespace as P } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as Q } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import R from "../sortable/index.vue2.mjs";
|
|
11
|
+
const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: {
|
|
14
|
+
value: {},
|
|
15
|
+
onReset: { type: Function }
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(V, { emit: B }) {
|
|
19
|
+
const i = L([]), s = L([]), r = L([]), { b: u } = P("column-setting-sorter"), { t: h } = Q(), x = V, S = B;
|
|
20
|
+
K({
|
|
21
|
+
fixedToLeft: I,
|
|
22
|
+
fixedToRight: M,
|
|
23
|
+
unFixed: U
|
|
24
|
+
});
|
|
25
|
+
function F(e, t) {
|
|
26
|
+
const o = t[0].findIndex(
|
|
27
|
+
(a) => a.key === e.key
|
|
28
|
+
);
|
|
29
|
+
if (~o)
|
|
30
|
+
t[0].splice(o, 1);
|
|
31
|
+
else {
|
|
32
|
+
const a = t[1].findIndex(
|
|
33
|
+
(l) => l.key === e.key
|
|
34
|
+
);
|
|
35
|
+
t[1].splice(a, 1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function _(e, t) {
|
|
39
|
+
const o = [...n(i.value)], a = [...n(r.value)], l = [...n(s.value)], w = {
|
|
40
|
+
left: {
|
|
41
|
+
target: o,
|
|
42
|
+
search: [l, a]
|
|
43
|
+
},
|
|
44
|
+
right: {
|
|
45
|
+
target: a,
|
|
46
|
+
search: [l, o]
|
|
47
|
+
},
|
|
48
|
+
normal: {
|
|
49
|
+
target: l,
|
|
50
|
+
search: [o, a]
|
|
51
|
+
}
|
|
52
|
+
}[t];
|
|
53
|
+
return t === "right" ? w.target.unshift(e) : w.target.push(e), F(
|
|
54
|
+
e,
|
|
55
|
+
w.search
|
|
56
|
+
), [...o, ...l, ...a];
|
|
57
|
+
}
|
|
58
|
+
function I(e) {
|
|
59
|
+
const t = _(e, "left");
|
|
60
|
+
f(t);
|
|
61
|
+
}
|
|
62
|
+
function M(e) {
|
|
63
|
+
const t = _(e, "right");
|
|
64
|
+
f(t);
|
|
65
|
+
}
|
|
66
|
+
function U(e) {
|
|
67
|
+
const t = _(e, "normal");
|
|
68
|
+
f(t);
|
|
69
|
+
}
|
|
70
|
+
function C(e) {
|
|
71
|
+
var t;
|
|
72
|
+
return (t = e.children) != null && t.length ? e.children.some((o) => o.show) : e.show;
|
|
73
|
+
}
|
|
74
|
+
function T(e, t) {
|
|
75
|
+
e.value ? e.value.push(t) : e.value = [t];
|
|
76
|
+
}
|
|
77
|
+
const z = O(() => {
|
|
78
|
+
let e = 0;
|
|
79
|
+
function t(o) {
|
|
80
|
+
var a;
|
|
81
|
+
for (const l of o)
|
|
82
|
+
(a = l.children) != null && a.length ? t(l.children) : l.show && (e += 1);
|
|
83
|
+
}
|
|
84
|
+
return t(x.value), e;
|
|
85
|
+
});
|
|
86
|
+
function D(e) {
|
|
87
|
+
f([...e, ...n(s), ...n(r)]);
|
|
88
|
+
}
|
|
89
|
+
function E(e) {
|
|
90
|
+
f([...n(i), ...e, ...n(r)]);
|
|
91
|
+
}
|
|
92
|
+
function j(e) {
|
|
93
|
+
f([...n(i), ...n(s), ...e]);
|
|
94
|
+
}
|
|
95
|
+
$(
|
|
96
|
+
() => x.value,
|
|
97
|
+
(e) => {
|
|
98
|
+
if (e) {
|
|
99
|
+
i.value = [], s.value = [], r.value = [];
|
|
100
|
+
for (const t of e)
|
|
101
|
+
t.fixed === "left" ? T(i, t) : t.fixed === "right" ? T(r, t) : T(s, t);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{ immediate: !0 }
|
|
105
|
+
);
|
|
106
|
+
function f(e) {
|
|
107
|
+
S("update:value", e);
|
|
108
|
+
}
|
|
109
|
+
return (e, t) => (c(), y("div", {
|
|
110
|
+
class: d(n(u)())
|
|
111
|
+
}, [
|
|
112
|
+
m(n(G), {
|
|
113
|
+
class: d(n(u)("header")),
|
|
114
|
+
align: "center",
|
|
115
|
+
justify: "space-between"
|
|
116
|
+
}, {
|
|
117
|
+
default: v(() => [
|
|
118
|
+
g("span", {
|
|
119
|
+
class: d(n(u)("header-title"))
|
|
120
|
+
}, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
|
|
121
|
+
m(n(H), {
|
|
122
|
+
type: "link",
|
|
123
|
+
size: "small",
|
|
124
|
+
style: { padding: "0" },
|
|
125
|
+
onClick: x.onReset
|
|
126
|
+
}, {
|
|
127
|
+
default: v(() => [
|
|
128
|
+
q(k(n(h)("ap.apTable.setting.reset")), 1)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["onClick"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["class"]),
|
|
135
|
+
m(n(J), { style: { margin: "0px" } }),
|
|
136
|
+
g("div", {
|
|
137
|
+
class: d(n(u)("content"))
|
|
138
|
+
}, [
|
|
139
|
+
i.value.length ? (c(), y("div", W, [
|
|
140
|
+
g("span", {
|
|
141
|
+
class: d(n(u)("section-title"))
|
|
142
|
+
}, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
|
|
143
|
+
m(n(N), {
|
|
144
|
+
"model-value": i.value,
|
|
145
|
+
"onUpdate:modelValue": D,
|
|
146
|
+
"item-key": "key"
|
|
147
|
+
}, {
|
|
148
|
+
item: v(({ element: o }) => [
|
|
149
|
+
C(o) ? (c(), b(R, {
|
|
150
|
+
key: 0,
|
|
151
|
+
value: o
|
|
152
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["model-value"])
|
|
156
|
+
])) : p("", !0),
|
|
157
|
+
s.value.length ? (c(), y("div", X, [
|
|
158
|
+
g("span", {
|
|
159
|
+
class: d(n(u)("section-title"))
|
|
160
|
+
}, k(n(h)("ap.apTable.setting.unFixed")), 3),
|
|
161
|
+
m(n(N), {
|
|
162
|
+
"model-value": s.value,
|
|
163
|
+
"onUpdate:modelValue": E,
|
|
164
|
+
"item-key": "key"
|
|
165
|
+
}, {
|
|
166
|
+
item: v(({ element: o }) => [
|
|
167
|
+
C(o) ? (c(), b(R, {
|
|
168
|
+
key: 0,
|
|
169
|
+
value: o
|
|
170
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["model-value"])
|
|
174
|
+
])) : p("", !0),
|
|
175
|
+
r.value.length ? (c(), y("div", Y, [
|
|
176
|
+
g("span", {
|
|
177
|
+
class: d(n(u)("section-title"))
|
|
178
|
+
}, k(n(h)("ap.apTable.setting.fixToRight")), 3),
|
|
179
|
+
m(n(N), {
|
|
180
|
+
"model-value": r.value,
|
|
181
|
+
"onUpdate:modelValue": j,
|
|
182
|
+
"item-key": "key"
|
|
183
|
+
}, {
|
|
184
|
+
item: v(({ element: o }) => [
|
|
185
|
+
C(o) ? (c(), b(R, {
|
|
186
|
+
key: 0,
|
|
187
|
+
value: o
|
|
188
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["model-value"])
|
|
192
|
+
])) : p("", !0)
|
|
193
|
+
], 2)
|
|
194
|
+
], 2));
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
export {
|
|
198
|
+
ce as default
|
|
199
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApTableSettingTreeSelectProps } from '../../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<__VLS_TypePropsToOption<ApTableSettingTreeSelectProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApTableSettingTreeSelectProps>>>, {}, {}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
6
|
+
type __VLS_TypePropsToOption<T> = {
|
|
7
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
8
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
9
|
+
} : {
|
|
10
|
+
type: PropType<T[K]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as b, computed as x, unref as c, openBlock as l, createElementBlock as s, createVNode as i, withCtx as d, Fragment as m, renderList as w, createBlock as u, mergeProps as B, resolveDynamicComponent as I } from "vue";
|
|
2
|
+
import { Row as L, Col as k, Checkbox as N } from "ant-design-vue";
|
|
3
|
+
import "../select-group/index.vue.mjs";
|
|
4
|
+
import { useInjectApTable as P } from "../../../context.mjs";
|
|
5
|
+
import { cloneLabelNode as U } from "../utils.mjs";
|
|
6
|
+
import j from "../select-group/index.vue2.mjs";
|
|
7
|
+
const $ = /* @__PURE__ */ b({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
value: {}
|
|
11
|
+
},
|
|
12
|
+
setup(_) {
|
|
13
|
+
const a = _, { columnsBackup: y } = P(), g = x(() => [...c(y) || []].sort((e, n) => {
|
|
14
|
+
var t, o, p, h;
|
|
15
|
+
return (t = e.children) != null && t.length && !((o = n.children) != null && o.length) ? 1 : !((p = e.children) != null && p.length) && ((h = n.children) != null && h.length) ? -1 : 0;
|
|
16
|
+
}));
|
|
17
|
+
function f(r) {
|
|
18
|
+
return a.value.find((e) => e.key === r.key);
|
|
19
|
+
}
|
|
20
|
+
function C(r) {
|
|
21
|
+
const e = f(r);
|
|
22
|
+
return {
|
|
23
|
+
checked: e == null ? void 0 : e.show,
|
|
24
|
+
disabled: e == null ? void 0 : e.disabled
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function v(r, e) {
|
|
28
|
+
const n = a.value, t = n == null ? void 0 : n.find((o) => o.key === r);
|
|
29
|
+
t && (t.show = e);
|
|
30
|
+
}
|
|
31
|
+
return (r, e) => (l(), s("div", null, [
|
|
32
|
+
i(c(L), { gutter: [24, 16] }, {
|
|
33
|
+
default: d(() => [
|
|
34
|
+
(l(!0), s(m, null, w(g.value, (n) => {
|
|
35
|
+
var t;
|
|
36
|
+
return l(), s(m, {
|
|
37
|
+
key: n.key
|
|
38
|
+
}, [
|
|
39
|
+
(t = n.children) != null && t.length ? (l(), u(c(k), {
|
|
40
|
+
key: 1,
|
|
41
|
+
span: 24
|
|
42
|
+
}, {
|
|
43
|
+
default: d(() => [
|
|
44
|
+
i(j, {
|
|
45
|
+
value: f(n)
|
|
46
|
+
}, null, 8, ["value"])
|
|
47
|
+
]),
|
|
48
|
+
_: 2
|
|
49
|
+
}, 1024)) : (l(), u(c(k), {
|
|
50
|
+
key: 0,
|
|
51
|
+
span: 8
|
|
52
|
+
}, {
|
|
53
|
+
default: d(() => [
|
|
54
|
+
i(c(N), B({ ref_for: !0 }, C(n), {
|
|
55
|
+
"onUpdate:checked": (o) => v(n.key, o)
|
|
56
|
+
}), {
|
|
57
|
+
default: d(() => [
|
|
58
|
+
(l(), u(I(c(U)(n.title))))
|
|
59
|
+
]),
|
|
60
|
+
_: 2
|
|
61
|
+
}, 1040, ["onUpdate:checked"])
|
|
62
|
+
]),
|
|
63
|
+
_: 2
|
|
64
|
+
}, 1024))
|
|
65
|
+
], 64);
|
|
66
|
+
}), 128))
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
})
|
|
70
|
+
]));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
$ as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ColumnsType } from 'ant-design-vue/es/table';
|
|
2
|
+
import { ApColumnState } from '../../interface';
|
|
3
|
+
/**
|
|
4
|
+
* 根据列状态重新生成表格列配置
|
|
5
|
+
* @param columns 表格列数组
|
|
6
|
+
* @param columnStateList 表格列状态数组
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export default function generateColumnsByColumnState(columns: ColumnsType, columnStateList: ApColumnState[]): ColumnsType;
|
|
10
|
+
export declare function customCloneColumnStates<T extends ApColumnState | ApColumnState[]>(columnStates: T): T;
|
|
11
|
+
/**
|
|
12
|
+
* 克隆列设置用的label,并为其添加额外的props
|
|
13
|
+
* @param node
|
|
14
|
+
* @param overrideProps
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare function cloneLabelNode(node: any): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { cloneDeepWith as s } from "lodash-unified";
|
|
2
|
+
import { isVNode as u, cloneVNode as c } from "vue";
|
|
3
|
+
function f(e, i) {
|
|
4
|
+
var r;
|
|
5
|
+
const n = [];
|
|
6
|
+
for (const t of i) {
|
|
7
|
+
const l = e.find((o) => o.key === t.key);
|
|
8
|
+
if ((r = t.children) != null && r.length) {
|
|
9
|
+
const o = f(
|
|
10
|
+
l.children,
|
|
11
|
+
t.children
|
|
12
|
+
);
|
|
13
|
+
o.length && n.push({
|
|
14
|
+
...l,
|
|
15
|
+
fixed: t.fixed,
|
|
16
|
+
children: o
|
|
17
|
+
});
|
|
18
|
+
} else {
|
|
19
|
+
if (!t.show)
|
|
20
|
+
continue;
|
|
21
|
+
n.push({ ...l, fixed: t.fixed });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
26
|
+
function h(e) {
|
|
27
|
+
return s(e, (i, n) => {
|
|
28
|
+
if (n === "label")
|
|
29
|
+
return i;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const a = {
|
|
33
|
+
display: "inline",
|
|
34
|
+
"-webkit-line-clamp": "unset",
|
|
35
|
+
"-webkit-box-orient": "unset",
|
|
36
|
+
overflow: "unset",
|
|
37
|
+
"text-overflow": "unset",
|
|
38
|
+
"white-space": "unset",
|
|
39
|
+
wordBreak: "unset"
|
|
40
|
+
};
|
|
41
|
+
function p(e) {
|
|
42
|
+
return u(e) ? c(e, { style: a }) : e;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
p as cloneLabelNode,
|
|
46
|
+
h as customCloneColumnStates,
|
|
47
|
+
f as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.aplus-ap-column-setting-wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
flex-wrap: nowrap;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
.aplus-ap-column-setting-left {
|
|
8
|
+
flex: 1;
|
|
9
|
+
flex-shrink: 1;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
padding-inline: 20px;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
}
|
|
15
|
+
.aplus-ap-column-setting-left__header {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
flex-wrap: nowrap;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
padding: 12px;
|
|
22
|
+
}
|
|
23
|
+
.aplus-ap-column-setting-left__content {
|
|
24
|
+
flex: 1;
|
|
25
|
+
padding-inline: 12px;
|
|
26
|
+
padding-block: 16px;
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
}
|
|
29
|
+
.aplus-ap-column-setting-left__content .ant-checkbox-wrapper {
|
|
30
|
+
max-width: 100%;
|
|
31
|
+
}
|
|
32
|
+
.aplus-ap-column-setting-left__content .ant-checkbox-wrapper > span:last-child {
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
}
|
|
37
|
+
.aplus-ap-column-setting-right {
|
|
38
|
+
width: 240px;
|
|
39
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.aplus-sortable-item-meta {
|
|
2
|
+
padding: 6px 8px;
|
|
3
|
+
margin-top: 4px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
flex-wrap: nowrap;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
.aplus-sortable-item-meta:hover {
|
|
11
|
+
background-color: #F1F7FF;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
.aplus-sortable-item-meta:hover .aplus-sortable-item-meta-right {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
.aplus-sortable-item-meta:hover .aplus-sortable-item-meta-left__holder {
|
|
19
|
+
color: var(--basic-color-primary, #0070ff) !important;
|
|
20
|
+
}
|
|
21
|
+
.aplus-sortable-item-meta-left {
|
|
22
|
+
flex: 1;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
}
|
|
27
|
+
.aplus-sortable-item-meta-left__indicator {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
align-items: center;
|
|
31
|
+
width: 16px;
|
|
32
|
+
height: 16px;
|
|
33
|
+
margin-right: 4px;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
}
|
|
36
|
+
.aplus-sortable-item-meta-left__label-wrapper {
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
}
|
|
41
|
+
.aplus-sortable-item-meta-right {
|
|
42
|
+
display: none;
|
|
43
|
+
padding-left: 12px;
|
|
44
|
+
}
|
|
45
|
+
.aplus-sortable-item-meta .is-level2 {
|
|
46
|
+
margin-left: 16px;
|
|
47
|
+
}
|
|
48
|
+
.aplus-sortable-item-meta-action-icon:hover {
|
|
49
|
+
color: var(--basic-color-primary, #0070ff);
|
|
50
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.aplus-column-setting-sorter {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
.aplus-column-setting-sorter-section-title {
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
line-height: 20px;
|
|
9
|
+
color: #8896b0;
|
|
10
|
+
padding: 2px 8px;
|
|
11
|
+
margin: 4px;
|
|
12
|
+
}
|
|
13
|
+
.aplus-column-setting-sorter-header {
|
|
14
|
+
padding: 16px 20px;
|
|
15
|
+
}
|
|
16
|
+
.aplus-column-setting-sorter-header-title {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
color: #182948;
|
|
21
|
+
}
|
|
22
|
+
.aplus-column-setting-sorter-content {
|
|
23
|
+
flex: 1;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
padding: 8px 12px 12px 8px;
|
|
26
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFieldPassword } from '../ap-field';
|
|
2
2
|
import { ApTableValueFields, ValueEnum } from './interface';
|
|
3
|
-
import {
|
|
3
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, VNode, RendererNode, RendererElement, CSSProperties, DefineComponent, PublicProps, ComputedRef } from 'vue';
|
|
4
4
|
import { ColSize } from 'ant-design-vue/es/grid';
|
|
5
5
|
import { ApFieldDateProps, ApFormItemSlots, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFormItemTextPassword, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, FieldMode, GroupActionTypes } from '..';
|
|
6
6
|
import { RuleObject } from 'ant-design-vue/es/form';
|
|
@@ -5242,7 +5242,11 @@ export declare const apTableFormItemMap: {
|
|
|
5242
5242
|
focus: (options?: InputFocusOptions) => void;
|
|
5243
5243
|
blur: () => void;
|
|
5244
5244
|
input: any;
|
|
5245
|
-
setSelectionRange: (start: number, end: number, direction
|
|
5245
|
+
setSelectionRange: (start: number, end: number, direction
|
|
5246
|
+
/**
|
|
5247
|
+
* 不需要渲染到Form表单的valueType字段
|
|
5248
|
+
*/
|
|
5249
|
+
?: "forward" | "backward" | "none") => void;
|
|
5246
5250
|
select: () => void;
|
|
5247
5251
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
5248
5252
|
label: {
|
|
@@ -5653,7 +5657,11 @@ export declare const apTableFormItemMap: {
|
|
|
5653
5657
|
focus: (options?: InputFocusOptions) => void;
|
|
5654
5658
|
blur: () => void;
|
|
5655
5659
|
input: any;
|
|
5656
|
-
setSelectionRange: (start: number, end: number, direction
|
|
5660
|
+
setSelectionRange: (start: number, end: number, direction
|
|
5661
|
+
/**
|
|
5662
|
+
* 不需要渲染到Form表单的valueType字段
|
|
5663
|
+
*/
|
|
5664
|
+
?: "forward" | "backward" | "none") => void;
|
|
5657
5665
|
select: () => void;
|
|
5658
5666
|
}, {}, {}, {}, {
|
|
5659
5667
|
disabled: boolean;
|
|
@@ -5866,7 +5874,11 @@ export declare const apTableFormItemMap: {
|
|
|
5866
5874
|
focus: (options?: InputFocusOptions) => void;
|
|
5867
5875
|
blur: () => void;
|
|
5868
5876
|
input: any;
|
|
5869
|
-
setSelectionRange: (start: number, end: number, direction
|
|
5877
|
+
setSelectionRange: (start: number, end: number, direction
|
|
5878
|
+
/**
|
|
5879
|
+
* 不需要渲染到Form表单的valueType字段
|
|
5880
|
+
*/
|
|
5881
|
+
?: "forward" | "backward" | "none") => void;
|
|
5870
5882
|
select: () => void;
|
|
5871
5883
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
5872
5884
|
disabled: boolean;
|
|
@@ -13919,7 +13931,11 @@ export declare const apTableRenderItemMap: {
|
|
|
13919
13931
|
focus: (options?: InputFocusOptions) => void;
|
|
13920
13932
|
blur: () => void;
|
|
13921
13933
|
input: any;
|
|
13922
|
-
setSelectionRange: (start: number, end: number, direction
|
|
13934
|
+
setSelectionRange: (start: number, end: number, direction
|
|
13935
|
+
/**
|
|
13936
|
+
* 不需要渲染到Form表单的valueType字段
|
|
13937
|
+
*/
|
|
13938
|
+
?: "forward" | "backward" | "none") => void;
|
|
13923
13939
|
select: () => void;
|
|
13924
13940
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13925
13941
|
"update:value": (...args: any[]) => void;
|
|
@@ -14229,7 +14245,11 @@ export declare const apTableRenderItemMap: {
|
|
|
14229
14245
|
focus: (options?: InputFocusOptions) => void;
|
|
14230
14246
|
blur: () => void;
|
|
14231
14247
|
input: any;
|
|
14232
|
-
setSelectionRange: (start: number, end: number, direction
|
|
14248
|
+
setSelectionRange: (start: number, end: number, direction
|
|
14249
|
+
/**
|
|
14250
|
+
* 不需要渲染到Form表单的valueType字段
|
|
14251
|
+
*/
|
|
14252
|
+
?: "forward" | "backward" | "none") => void;
|
|
14233
14253
|
select: () => void;
|
|
14234
14254
|
}, {}, {}, {}, {
|
|
14235
14255
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
@@ -14390,7 +14410,11 @@ export declare const apTableRenderItemMap: {
|
|
|
14390
14410
|
focus: (options?: InputFocusOptions) => void;
|
|
14391
14411
|
blur: () => void;
|
|
14392
14412
|
input: any;
|
|
14393
|
-
setSelectionRange: (start: number, end: number, direction
|
|
14413
|
+
setSelectionRange: (start: number, end: number, direction
|
|
14414
|
+
/**
|
|
14415
|
+
* 不需要渲染到Form表单的valueType字段
|
|
14416
|
+
*/
|
|
14417
|
+
?: "forward" | "backward" | "none") => void;
|
|
14394
14418
|
select: () => void;
|
|
14395
14419
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14396
14420
|
"update:value": (...args: any[]) => void;
|
|
@@ -15632,4 +15656,3 @@ export declare const apTableRenderItemMap: {
|
|
|
15632
15656
|
* 不需要渲染到Form表单的valueType字段
|
|
15633
15657
|
*/
|
|
15634
15658
|
export declare const noRenderAsFormItemValueList: (keyof ApTableValueFields)[];
|
|
15635
|
-
export declare const ellipsisTitleStyle: CSSProperties;
|