@aplus-frontend/ui 0.2.5 → 0.2.7
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/index.mjs +133 -131
- package/es/src/ap-field/interface.d.ts +2 -1
- package/es/src/ap-field/switch/index.vue.mjs +48 -48
- package/es/src/ap-form/interface.d.ts +1 -0
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +27 -0
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +4 -0
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +116 -0
- package/es/src/ap-scroll-bar/index.d.ts +62 -0
- package/es/src/ap-scroll-bar/index.mjs +8 -0
- package/es/src/ap-scroll-bar/interface.d.ts +4 -0
- package/es/src/ap-scroll-bar/interface.mjs +1 -0
- package/es/src/ap-scroll-bar/style/css.d.ts +0 -0
- package/es/src/ap-scroll-bar/style/css.js +1 -0
- package/es/src/ap-scroll-bar/style/index.d.ts +0 -0
- package/es/src/ap-scroll-bar/style/index.js +1 -0
- package/es/src/ap-table/ap-table.vue.d.ts +2 -0
- package/es/src/ap-table/ap-table.vue2.mjs +116 -123
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +62 -56
- package/es/src/ap-table/constants.d.ts +47 -1229
- package/es/src/ap-table/utils.d.ts +40 -40
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +70 -63
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +192 -190
- package/es/src/path-map.mjs +1 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +2 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +1 -0
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +27 -0
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +1 -0
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -0
- package/lib/src/ap-scroll-bar/index.d.ts +62 -0
- package/lib/src/ap-scroll-bar/index.js +1 -0
- package/lib/src/ap-scroll-bar/interface.d.ts +4 -0
- package/lib/src/ap-scroll-bar/interface.js +1 -0
- package/lib/src/ap-scroll-bar/style/css.d.ts +0 -0
- package/lib/src/ap-scroll-bar/style/css.js +1 -0
- package/lib/src/ap-scroll-bar/style/index.d.ts +0 -0
- package/lib/src/ap-scroll-bar/style/index.js +1 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +47 -1229
- package/lib/src/ap-table/utils.d.ts +40 -40
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +22 -8
|
@@ -1,100 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { getSingleVNode as
|
|
4
|
-
import { useInjectApTable as
|
|
1
|
+
import { defineComponent as G, ref as x, unref as e, useSlots as H, createVNode as l, cloneVNode as L, openBlock as y, createElementBlock as M, Fragment as q, createBlock as J, resolveDynamicComponent as K, createCommentVNode as P, withCtx as s, createElementVNode as i, normalizeClass as r, toDisplayString as m, createTextVNode as v, isRef as Q } from "vue";
|
|
2
|
+
import { Button as B, Modal as W, RadioGroup as X, RadioButton as _, Divider as h } from "@aplus-frontend/antdv";
|
|
3
|
+
import { getSingleVNode as Y } from "../../../../utils/slot.mjs";
|
|
4
|
+
import { useInjectApTable as Z } from "../../../context.mjs";
|
|
5
5
|
import "../tree-select/index.vue.mjs";
|
|
6
|
-
import { useTableColumnState as
|
|
6
|
+
import { useTableColumnState as ee } from "../../../hooks/use-table-column-state.mjs";
|
|
7
7
|
import "../../../../config-provider/index.mjs";
|
|
8
8
|
import "../sorter/index.vue.mjs";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
9
|
+
import te, { customCloneColumnStates as N } from "../utils.mjs";
|
|
10
|
+
import { SettingOutlined as le } from "@ant-design/icons-vue";
|
|
11
|
+
import { useLocale as oe } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useNamespace as T } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import ne from "../tree-select/index.vue2.mjs";
|
|
14
|
+
import ae from "../sorter/index.vue2.mjs";
|
|
15
|
+
const ie = {
|
|
15
16
|
style: {
|
|
16
17
|
lineHeight: "22px",
|
|
17
18
|
color: "#8896B0"
|
|
18
19
|
}
|
|
19
|
-
},
|
|
20
|
+
}, xe = /* @__PURE__ */ G({
|
|
20
21
|
__name: "index",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
23
24
|
default: () => ({})
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const C =
|
|
28
|
-
columnsBackup:
|
|
29
|
-
size:
|
|
27
|
+
setup(A) {
|
|
28
|
+
const C = A, {
|
|
29
|
+
columnsBackup: V,
|
|
30
|
+
size: z,
|
|
30
31
|
updateSize: c,
|
|
31
32
|
updateColumns: d
|
|
32
|
-
} =
|
|
33
|
-
columnState:
|
|
34
|
-
setColumnState:
|
|
35
|
-
isAllSelected:
|
|
36
|
-
toggleSelectAll:
|
|
37
|
-
columnStateBackup:
|
|
38
|
-
setColumnStateBackup:
|
|
39
|
-
cacheColumnStateIfNeeded:
|
|
40
|
-
} =
|
|
41
|
-
t:
|
|
42
|
-
} =
|
|
33
|
+
} = Z(), f = x(e(z)), {
|
|
34
|
+
columnState: n,
|
|
35
|
+
setColumnState: R,
|
|
36
|
+
isAllSelected: w,
|
|
37
|
+
toggleSelectAll: D,
|
|
38
|
+
columnStateBackup: O,
|
|
39
|
+
setColumnStateBackup: U,
|
|
40
|
+
cacheColumnStateIfNeeded: E
|
|
41
|
+
} = ee(C.config, []), {
|
|
42
|
+
t: a
|
|
43
|
+
} = oe(), {
|
|
43
44
|
b: g,
|
|
44
45
|
be: S
|
|
45
|
-
} =
|
|
46
|
+
} = T("ap-column-setting"), {
|
|
47
|
+
b: I
|
|
48
|
+
} = T("ap-table"), u = x(!1), $ = H(), b = Y($.trigger) || l(B, {
|
|
49
|
+
icon: l(le, null, null),
|
|
50
|
+
class: I("setting-trigger-button")
|
|
51
|
+
}, null), k = b ? L(b, {
|
|
46
52
|
onClick: () => {
|
|
47
53
|
u.value = !0;
|
|
48
54
|
}
|
|
49
55
|
}) : null;
|
|
50
|
-
function
|
|
51
|
-
|
|
56
|
+
function j() {
|
|
57
|
+
R(N(e(O)));
|
|
52
58
|
}
|
|
53
|
-
function
|
|
59
|
+
function F() {
|
|
54
60
|
var t, o;
|
|
55
|
-
d == null || d(
|
|
56
|
-
const p =
|
|
57
|
-
|
|
61
|
+
d == null || d(te(e(V), e(n))), c == null || c(e(f)), u.value = !1;
|
|
62
|
+
const p = N(n.value);
|
|
63
|
+
U(p), E(p), (o = (t = C.config) == null ? void 0 : t.onChange) == null || o.call(t, p);
|
|
58
64
|
}
|
|
59
|
-
return (p, t) => (y(),
|
|
65
|
+
return (p, t) => (y(), M(q, null, [e(k) ? (y(), J(K(e(k)), {
|
|
60
66
|
key: 0
|
|
61
|
-
})) :
|
|
62
|
-
title: e(
|
|
67
|
+
})) : P("", !0), l(e(W), {
|
|
68
|
+
title: e(a)("ap.apTable.setting.title"),
|
|
63
69
|
open: u.value,
|
|
64
70
|
"onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
|
|
65
71
|
width: 900,
|
|
66
|
-
onOk:
|
|
72
|
+
onOk: F,
|
|
67
73
|
"body-style": {
|
|
68
74
|
padding: "0px !important",
|
|
69
75
|
height: "450px"
|
|
70
76
|
}
|
|
71
77
|
}, {
|
|
72
|
-
default:
|
|
78
|
+
default: s(() => [i("div", {
|
|
73
79
|
class: r(e(g)("wrapper"))
|
|
74
|
-
}, [
|
|
80
|
+
}, [i("div", {
|
|
75
81
|
class: r(e(g)("left"))
|
|
76
|
-
}, [
|
|
82
|
+
}, [i("div", {
|
|
77
83
|
class: r(e(S)("left", "header"))
|
|
78
|
-
}, [
|
|
84
|
+
}, [i("div", null, [i("span", ie, m(e(a)("ap.apTable.setting.selectAllTip")), 1), l(e(B), {
|
|
79
85
|
type: "link",
|
|
80
86
|
size: "small",
|
|
81
|
-
onClick: e(
|
|
87
|
+
onClick: e(D)
|
|
82
88
|
}, {
|
|
83
|
-
default:
|
|
89
|
+
default: s(() => [v(m(e(w) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
|
|
84
90
|
_: 1
|
|
85
|
-
}, 8, ["onClick"])]), l(e(
|
|
91
|
+
}, 8, ["onClick"])]), l(e(X), {
|
|
86
92
|
value: f.value,
|
|
87
93
|
"onUpdate:value": t[0] || (t[0] = (o) => f.value = o)
|
|
88
94
|
}, {
|
|
89
|
-
default:
|
|
95
|
+
default: s(() => [l(e(_), {
|
|
90
96
|
value: "small"
|
|
91
97
|
}, {
|
|
92
|
-
default:
|
|
98
|
+
default: s(() => [v(m(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
|
|
93
99
|
_: 1
|
|
94
100
|
}), l(e(_), {
|
|
95
101
|
value: "middle"
|
|
96
102
|
}, {
|
|
97
|
-
default:
|
|
103
|
+
default: s(() => [v(m(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
|
|
98
104
|
_: 1
|
|
99
105
|
})]),
|
|
100
106
|
_: 1
|
|
@@ -103,26 +109,26 @@ const ae = {
|
|
|
103
109
|
style: {
|
|
104
110
|
margin: "0px"
|
|
105
111
|
}
|
|
106
|
-
}), l(
|
|
112
|
+
}), l(ne, {
|
|
107
113
|
class: r(e(S)("left", "content")),
|
|
108
|
-
value: e(
|
|
114
|
+
value: e(n)
|
|
109
115
|
}, null, 8, ["class", "value"])], 2), l(e(h), {
|
|
110
116
|
type: "vertical",
|
|
111
117
|
style: {
|
|
112
118
|
height: "100%",
|
|
113
119
|
margin: "0px"
|
|
114
120
|
}
|
|
115
|
-
}),
|
|
121
|
+
}), i("div", {
|
|
116
122
|
class: r(e(g)("right"))
|
|
117
|
-
}, [l(
|
|
118
|
-
value: e(
|
|
119
|
-
"onUpdate:value": t[1] || (t[1] = (o) =>
|
|
120
|
-
onReset:
|
|
123
|
+
}, [l(ae, {
|
|
124
|
+
value: e(n),
|
|
125
|
+
"onUpdate:value": t[1] || (t[1] = (o) => Q(n) ? n.value = o : null),
|
|
126
|
+
onReset: j
|
|
121
127
|
}, null, 8, ["value"])], 2)], 2)]),
|
|
122
128
|
_: 1
|
|
123
129
|
}, 8, ["title", "open"])], 64));
|
|
124
130
|
}
|
|
125
131
|
});
|
|
126
132
|
export {
|
|
127
|
-
|
|
133
|
+
xe as default
|
|
128
134
|
};
|