@aplus-frontend/ui 0.6.0-beta.6 → 0.6.0-beta.8
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-form/search-form/components/popover-sorter/index.vue2.mjs +57 -51
- package/es/src/ap-grid/constants.d.ts +3 -3
- package/es/src/ap-grid/constants.mjs +9 -9
- package/es/src/ap-grid/index.vue.mjs +45 -47
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +17 -17
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +135 -124
- package/es/src/business/ap-view/index.d.ts +3 -0
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +3 -3
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -0
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/package.json +3 -3
- package/theme/ap-action/item-dropdown.css +3 -2
- package/theme/ap-action/item.css +3 -2
- package/theme/ap-appendix/ap-appendix.css +3 -2
- package/theme/ap-attachment/ap-attachment.css +3 -2
- package/theme/ap-batch-action/ap-batch-action.css +3 -2
- package/theme/ap-button/ap-button.css +3 -2
- package/theme/ap-card/ap-card.css +3 -2
- package/theme/ap-descriptions/ap-descriptions.css +3 -2
- package/theme/ap-download/ap-download.css +3 -2
- package/theme/ap-expand-alert/ap-expand-alert.css +3 -2
- package/theme/ap-field/checkbox.css +3 -2
- package/theme/ap-field/index.css +3 -2
- package/theme/ap-field/number.css +3 -2
- package/theme/ap-field/radio.css +3 -2
- package/theme/ap-field/text-area.css +3 -2
- package/theme/ap-form/ap-form-item-group.css +3 -2
- package/theme/ap-form/ap-form-item.css +3 -2
- package/theme/ap-form/drawer-form.css +3 -2
- package/theme/ap-form/index.css +3 -2
- package/theme/ap-form/item-text-group.css +3 -2
- package/theme/ap-form/item-text.css +3 -2
- package/theme/ap-form/modal-form.css +3 -2
- package/theme/ap-form/search-form-sorter.css +3 -2
- package/theme/ap-form/search-form.css +3 -2
- package/theme/ap-grid/editable.css +3 -2
- package/theme/ap-grid/index.css +17 -4
- package/theme/ap-grid/index.less +11 -0
- package/theme/ap-group-search/ap-extension-select.css +3 -2
- package/theme/ap-group-search/ap-group-search.css +3 -2
- package/theme/ap-group-search/ap-popover-select.css +3 -2
- package/theme/ap-image/ap-image.css +3 -2
- package/theme/ap-input-radio/ap-input-radio.css +3 -2
- package/theme/ap-label/ap-label.css +3 -2
- package/theme/ap-ladder/ap-ladder.css +3 -2
- package/theme/ap-layout/ap-info-layout.css +3 -2
- package/theme/ap-list/index.css +3 -2
- package/theme/ap-product-info/ap-product-info.css +3 -2
- package/theme/ap-select-layout/ap-select-layout.css +3 -2
- package/theme/ap-size-input/ap-size-input.css +3 -2
- package/theme/ap-status/ap-status.css +3 -2
- package/theme/ap-summary/index.css +3 -2
- package/theme/ap-table/ap-table-index.css +3 -2
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -2
- package/theme/ap-table/ap-table.css +10 -8
- package/theme/ap-table/ap-table.less +4 -4
- package/theme/ap-table/setting/index.css +3 -2
- package/theme/ap-table/setting/modal.css +3 -2
- package/theme/ap-table/setting/select-group.css +3 -2
- package/theme/ap-table/setting/sortable-item-meta.css +3 -2
- package/theme/ap-table/setting/sortable-item.css +3 -2
- package/theme/ap-table/setting/sorter.css +3 -2
- package/theme/ap-table-modal/index.css +10 -8
- package/theme/ap-tag/ap-tag-group.css +3 -2
- package/theme/ap-tag/ap-tag.css +3 -2
- package/theme/ap-title/ap-title.css +3 -2
- package/theme/ap-upload/index.css +3 -2
- package/theme/ap-upload/multiple-file.css +3 -2
- package/theme/ap-upload/picture.css +3 -2
- package/theme/ap-upload/single-file.css +3 -2
- package/theme/ap-upload/upload.css +3 -2
- package/theme/ap-upload-single/index.css +3 -2
- package/theme/ap-view/ap-view.css +3 -2
- package/theme/batch-input-group/index.css +3 -2
- package/theme/batch-input-group/popover-input.css +3 -2
- package/theme/check-card/index.css +3 -2
- package/theme/editable-table/index.css +3 -2
- package/theme/full-screen/index.css +3 -2
- package/theme/index.css +24 -10
- package/theme/mask/index.css +3 -2
- package/theme/mixins/mixins.css +3 -2
- package/theme/mixins/mixins.less +3 -6
- package/theme/scroll-bar/index.css +3 -2
- package/theme/scroll-view/index.css +3 -2
- package/theme/splitter/index.css +3 -2
- package/theme/text/group.css +3 -2
- package/theme/text/index.css +3 -2
- package/theme/work-order-modal/index.css +3 -2
|
@@ -1,40 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { IconApLayoutOutlined as
|
|
1
|
+
import { defineComponent as N, ref as y, watch as T, unref as e, createBlock as B, openBlock as S, withCtx as t, createVNode as o, createElementVNode as s, normalizeClass as r, toDisplayString as p, createTextVNode as C } from "vue";
|
|
2
|
+
import { Popover as D, Tooltip as P, Button as v, Flex as g, Divider as V } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApLayoutOutlined as j } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import A from "vuedraggable";
|
|
6
6
|
import "./sortable-item.vue.mjs";
|
|
7
|
-
import { getStringName as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
7
|
+
import { getStringName as I } from "../../../item-group/helper.mjs";
|
|
8
|
+
import { useNamespace as k } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as L } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import R from "./sortable-item.vue2.mjs";
|
|
11
|
+
const M = /* @__PURE__ */ N({
|
|
12
12
|
name: "ApFormSearchFormPopoverSorter",
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
15
15
|
children: {},
|
|
16
16
|
onClickConfirm: { type: Function }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
setup(_) {
|
|
19
|
+
const i = _, c = y(i.children);
|
|
20
|
+
let h = [...i.children];
|
|
21
|
+
T(
|
|
22
|
+
() => i.children,
|
|
23
|
+
(n) => {
|
|
24
|
+
c.value = n, h = n;
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
const { e: m } = k("ap-form-search-form"), { b: a } = k("search-form-sorter"), { t: l } = L(), f = y(!1);
|
|
28
|
+
function F(n) {
|
|
29
|
+
return n.closest(".ant-form") || document.body;
|
|
24
30
|
}
|
|
25
31
|
function b() {
|
|
26
|
-
|
|
32
|
+
f.value = !1, console.log(e(c)), i.onClickConfirm(e(c));
|
|
27
33
|
}
|
|
28
34
|
function x() {
|
|
29
|
-
|
|
35
|
+
c.value = [...h];
|
|
30
36
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
37
|
+
function w(n) {
|
|
38
|
+
return I(n.props.name);
|
|
33
39
|
}
|
|
34
|
-
return (
|
|
35
|
-
open:
|
|
36
|
-
"onUpdate:open":
|
|
37
|
-
"overlay-class-name": e(
|
|
40
|
+
return (n, u) => (S(), B(e(D), {
|
|
41
|
+
open: f.value,
|
|
42
|
+
"onUpdate:open": u[1] || (u[1] = (d) => f.value = d),
|
|
43
|
+
"overlay-class-name": e(m)("popover"),
|
|
38
44
|
trigger: "click",
|
|
39
45
|
placement: "bottom",
|
|
40
46
|
mask: "",
|
|
@@ -42,64 +48,64 @@ const J = /* @__PURE__ */ T({
|
|
|
42
48
|
"get-popup-container": F
|
|
43
49
|
}, {
|
|
44
50
|
content: t(() => [
|
|
45
|
-
|
|
51
|
+
s("div", {
|
|
46
52
|
class: r(e(a)("header"))
|
|
47
53
|
}, [
|
|
48
|
-
|
|
54
|
+
s("span", {
|
|
49
55
|
class: r(e(a)("header-title"))
|
|
50
|
-
},
|
|
51
|
-
o(e(
|
|
56
|
+
}, p(e(l)("ap.apForm.search.sorterTitle")), 3),
|
|
57
|
+
o(e(g), { justify: "space-between" }, {
|
|
52
58
|
default: t(() => [
|
|
53
|
-
|
|
59
|
+
s("span", {
|
|
54
60
|
class: r(e(a)("header-desc"))
|
|
55
|
-
},
|
|
56
|
-
|
|
61
|
+
}, p(e(l)("ap.apForm.search.sorterDesc")), 3),
|
|
62
|
+
s("div", {
|
|
57
63
|
class: r(e(a)("header-action-wrapper")),
|
|
58
64
|
onClick: x
|
|
59
65
|
}, [
|
|
60
|
-
|
|
66
|
+
s("span", {
|
|
61
67
|
class: r(e(a)("header-reset-btn"))
|
|
62
|
-
},
|
|
68
|
+
}, p(e(l)("ap.apForm.search.sorterReset")), 3)
|
|
63
69
|
], 2)
|
|
64
70
|
]),
|
|
65
71
|
_: 1
|
|
66
72
|
})
|
|
67
73
|
], 2),
|
|
68
|
-
|
|
69
|
-
class: r([e(
|
|
74
|
+
s("div", {
|
|
75
|
+
class: r([e(m)("popover-content"), e(a)("content")])
|
|
70
76
|
}, [
|
|
71
|
-
o(e(
|
|
72
|
-
list:
|
|
77
|
+
o(e(A), {
|
|
78
|
+
list: c.value,
|
|
73
79
|
class: r(e(a)("sorter-wrapper")),
|
|
74
|
-
"item-key":
|
|
80
|
+
"item-key": w
|
|
75
81
|
}, {
|
|
76
|
-
item: t(({ element:
|
|
77
|
-
o(
|
|
82
|
+
item: t(({ element: d }) => [
|
|
83
|
+
o(R, { item: d }, null, 8, ["item"])
|
|
78
84
|
]),
|
|
79
85
|
_: 1
|
|
80
86
|
}, 8, ["list", "class"])
|
|
81
87
|
], 2),
|
|
82
|
-
o(e(
|
|
83
|
-
|
|
84
|
-
class: r(e(
|
|
88
|
+
o(e(V), { style: { margin: "0" } }),
|
|
89
|
+
s("div", {
|
|
90
|
+
class: r(e(m)("popover-footer"))
|
|
85
91
|
}, [
|
|
86
|
-
o(e(
|
|
92
|
+
o(e(g), { justify: "end" }, {
|
|
87
93
|
default: t(() => [
|
|
88
94
|
o(e(v), {
|
|
89
|
-
onClick:
|
|
95
|
+
onClick: u[0] || (u[0] = (d) => f.value = !1)
|
|
90
96
|
}, {
|
|
91
97
|
default: t(() => [
|
|
92
|
-
|
|
98
|
+
C(p(e(l)("ap.common.cancelText")), 1)
|
|
93
99
|
]),
|
|
94
100
|
_: 1
|
|
95
101
|
}),
|
|
96
102
|
o(e(v), {
|
|
97
|
-
class: r(e(
|
|
103
|
+
class: r(e(m)("popover-footer-confirm-btn")),
|
|
98
104
|
type: "primary",
|
|
99
105
|
onClick: b
|
|
100
106
|
}, {
|
|
101
107
|
default: t(() => [
|
|
102
|
-
|
|
108
|
+
C(p(e(l)("ap.apForm.search.sorterConfirmBtn")), 1)
|
|
103
109
|
]),
|
|
104
110
|
_: 1
|
|
105
111
|
}, 8, ["class"])
|
|
@@ -109,14 +115,14 @@ const J = /* @__PURE__ */ T({
|
|
|
109
115
|
], 2)
|
|
110
116
|
]),
|
|
111
117
|
default: t(() => [
|
|
112
|
-
o(e(
|
|
113
|
-
title: e(
|
|
118
|
+
o(e(P), {
|
|
119
|
+
title: e(l)("ap.apForm.search.sorterTitle"),
|
|
114
120
|
placement: "top"
|
|
115
121
|
}, {
|
|
116
122
|
default: t(() => [
|
|
117
123
|
o(e(v), null, {
|
|
118
124
|
icon: t(() => [
|
|
119
|
-
o(e(
|
|
125
|
+
o(e(j))
|
|
120
126
|
]),
|
|
121
127
|
_: 1
|
|
122
128
|
})
|
|
@@ -129,5 +135,5 @@ const J = /* @__PURE__ */ T({
|
|
|
129
135
|
}
|
|
130
136
|
});
|
|
131
137
|
export {
|
|
132
|
-
|
|
138
|
+
M as default
|
|
133
139
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const sizeMap: {
|
|
2
2
|
readonly mini: "small";
|
|
3
3
|
readonly small: "small";
|
|
4
|
-
readonly medium: "
|
|
4
|
+
readonly medium: "middle";
|
|
5
5
|
};
|
|
6
6
|
export declare const sizeReverseMap: {
|
|
7
|
-
readonly small: "
|
|
8
|
-
readonly middle:
|
|
7
|
+
readonly small: "mini";
|
|
8
|
+
readonly middle: "medium";
|
|
9
9
|
};
|
|
10
10
|
export declare const ROW_SELECTION_FIELD = "_ap-grid-row-selection-field";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
mini: "small",
|
|
3
3
|
small: "small",
|
|
4
|
-
medium: "
|
|
5
|
-
},
|
|
6
|
-
small: "
|
|
7
|
-
middle:
|
|
8
|
-
},
|
|
4
|
+
medium: "middle"
|
|
5
|
+
}, i = {
|
|
6
|
+
small: "mini",
|
|
7
|
+
middle: "medium"
|
|
8
|
+
}, l = "_ap-grid-row-selection-field";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
l as ROW_SELECTION_FIELD,
|
|
11
|
+
e as sizeMap,
|
|
12
|
+
i as sizeReverseMap
|
|
13
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as Be, useSlots as Fe, getCurrentInstance as Ie, ref as B, computed as n, unref as o, watch as F, createElementBlock as I, openBlock as s, normalizeStyle as V, normalizeClass as g, createCommentVNode as
|
|
1
|
+
import { defineComponent as Be, useSlots as Fe, getCurrentInstance as Ie, ref as B, computed as n, unref as o, watch as F, createElementBlock as I, openBlock as s, normalizeStyle as V, normalizeClass as g, createCommentVNode as y, createElementVNode as E, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as L, createBlock as p, resolveDynamicComponent as D, renderSlot as O, normalizeProps as Ee, guardReactiveProps as Pe } from "vue";
|
|
2
2
|
import { VxeTable as Ne, VxeColumn as Y } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
4
|
import "vxe-pc-ui/es/style.css";
|
|
5
5
|
import { VxeUI as Z } from "vxe-pc-ui";
|
|
6
|
-
import { isUndefined as
|
|
6
|
+
import { isUndefined as S, omit as Te } from "lodash-unified";
|
|
7
7
|
import { ApForm as ze } from "../ap-form/index.mjs";
|
|
8
8
|
import "../config-provider/index.mjs";
|
|
9
9
|
import { noRenderAsFormItemValueList as _e } from "../ap-table/constants.mjs";
|
|
@@ -115,13 +115,13 @@ const No = /* @__PURE__ */ Be({
|
|
|
115
115
|
},
|
|
116
116
|
setup(re, { expose: te }) {
|
|
117
117
|
var G;
|
|
118
|
-
const C = Fe(), a = re,
|
|
119
|
-
|
|
120
|
-
const { e: P, b: c, be: le } = Ze("ap-grid"), ne = eo("valueTypeMap"),
|
|
118
|
+
const C = Fe(), a = re, w = (G = Ie()) == null ? void 0 : G.appContext.app;
|
|
119
|
+
w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Z), w.__VXE_PC_UI_INSTALLED__ = !0);
|
|
120
|
+
const { e: P, b: c, be: le } = Ze("ap-grid"), ne = eo("valueTypeMap"), d = B([]), $ = B([]), m = B(), x = B(a.size), [, i] = Je(), { t: se } = oo();
|
|
121
121
|
Z.setConfig({
|
|
122
122
|
i18n: (e, r) => se(`ap.${e}`, r)
|
|
123
123
|
});
|
|
124
|
-
const { renderConfig:
|
|
124
|
+
const { renderConfig: de, updateSignal: ie } = Xe(d);
|
|
125
125
|
let K = 0;
|
|
126
126
|
const ce = n(() => {
|
|
127
127
|
if (m.value)
|
|
@@ -133,13 +133,13 @@ const No = /* @__PURE__ */ Be({
|
|
|
133
133
|
return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
|
|
134
134
|
(t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !_e.includes(t.valueType)
|
|
135
135
|
)) == null ? void 0 : r.sort((t, u) => {
|
|
136
|
-
let
|
|
137
|
-
return ee(u.order) -
|
|
136
|
+
let b = ee(t.order);
|
|
137
|
+
return ee(u.order) - b;
|
|
138
138
|
})) == null ? void 0 : l.map((t) => {
|
|
139
139
|
const u = Ae(
|
|
140
140
|
t,
|
|
141
141
|
Ve(t.fieldProps, {})
|
|
142
|
-
),
|
|
142
|
+
), b = {
|
|
143
143
|
...t,
|
|
144
144
|
fieldProps: {
|
|
145
145
|
label: t.title,
|
|
@@ -151,10 +151,10 @@ const No = /* @__PURE__ */ Be({
|
|
|
151
151
|
},
|
|
152
152
|
renderNode: void 0
|
|
153
153
|
};
|
|
154
|
-
return
|
|
155
|
-
|
|
154
|
+
return b.renderNode = Le(
|
|
155
|
+
b,
|
|
156
156
|
o(ne)
|
|
157
|
-
),
|
|
157
|
+
), b;
|
|
158
158
|
})) || [];
|
|
159
159
|
}), ue = n(() => {
|
|
160
160
|
var r;
|
|
@@ -167,10 +167,10 @@ const No = /* @__PURE__ */ Be({
|
|
|
167
167
|
a.card ? null : c("wrapper"),
|
|
168
168
|
a.adaptive ? c("adaptive") : null,
|
|
169
169
|
a.sticky ? c("sticky") : null
|
|
170
|
-
].filter(Boolean)), j = n(() => oe(o(
|
|
170
|
+
].filter(Boolean)), j = n(() => oe(o(d), (e) => {
|
|
171
171
|
if (e.sorter === !0)
|
|
172
172
|
return e.key || e.dataIndex;
|
|
173
|
-
}).filter(Boolean)), H = n(() => oe(o(
|
|
173
|
+
}).filter(Boolean)), H = n(() => oe(o(d), (e) => {
|
|
174
174
|
if (e.filters && !e.onFilter)
|
|
175
175
|
return e.key || e.dataIndex;
|
|
176
176
|
}).filter(Boolean)), {
|
|
@@ -185,7 +185,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
185
185
|
} = De({
|
|
186
186
|
async request(e) {
|
|
187
187
|
var l;
|
|
188
|
-
if (!k.value.preserveSelectedRowKeys &&
|
|
188
|
+
if (!k.value.preserveSelectedRowKeys && S(a.dataSource) && A(), !S(a.dataSource)) {
|
|
189
189
|
const t = e.pageSize * (e.current - 1);
|
|
190
190
|
return {
|
|
191
191
|
data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
|
|
@@ -208,19 +208,19 @@ const No = /* @__PURE__ */ Be({
|
|
|
208
208
|
pagination: a.pagination
|
|
209
209
|
}), { sortChangeEvent: he, filterChangeEvent: ve, paginationChangeEvent: Ce } = $e(ge);
|
|
210
210
|
Me({
|
|
211
|
-
columns: n(() =>
|
|
211
|
+
columns: n(() => d.value),
|
|
212
212
|
columnsBackup: n(() => $.value),
|
|
213
|
-
size: n(() =>
|
|
213
|
+
size: n(() => Ue[x.value]),
|
|
214
214
|
updateColumns(e) {
|
|
215
215
|
var r;
|
|
216
|
-
|
|
216
|
+
d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
|
|
217
217
|
},
|
|
218
218
|
updateSize(e) {
|
|
219
|
-
|
|
219
|
+
x.value = qe[e];
|
|
220
220
|
},
|
|
221
221
|
renderConfig: n(() => ({
|
|
222
222
|
className: le("table-header", "title"),
|
|
223
|
-
color:
|
|
223
|
+
color: i.value.colorPrimary
|
|
224
224
|
})),
|
|
225
225
|
dataSource: n(() => o(f).records),
|
|
226
226
|
getSearchFormValues: U,
|
|
@@ -229,13 +229,13 @@ const No = /* @__PURE__ */ Be({
|
|
|
229
229
|
reset: z
|
|
230
230
|
});
|
|
231
231
|
const be = n(
|
|
232
|
-
() =>
|
|
232
|
+
() => d.value.some(
|
|
233
233
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
234
234
|
) ? "left" : void 0
|
|
235
235
|
), ye = n(
|
|
236
|
-
() =>
|
|
236
|
+
() => S(a.loading) ? f.loading : a.loading
|
|
237
237
|
), Se = n(
|
|
238
|
-
() =>
|
|
238
|
+
() => S(a.dataSource) ? f.records : a.dataSource
|
|
239
239
|
), { selectedRows: R, rowSelection: k, ...we } = He({
|
|
240
240
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
241
241
|
dataSource: Se,
|
|
@@ -279,7 +279,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
279
279
|
() => {
|
|
280
280
|
var r;
|
|
281
281
|
const e = Re();
|
|
282
|
-
|
|
282
|
+
d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
deep: !0,
|
|
@@ -300,7 +300,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
300
300
|
), F(
|
|
301
301
|
() => a.size,
|
|
302
302
|
(e) => {
|
|
303
|
-
|
|
303
|
+
x.value = e;
|
|
304
304
|
}
|
|
305
305
|
), te({
|
|
306
306
|
submit: T,
|
|
@@ -308,7 +308,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
308
308
|
refresh: me,
|
|
309
309
|
setSearchFormValues: q,
|
|
310
310
|
getSearchFormValues: U,
|
|
311
|
-
getShowColumns: () => o(
|
|
311
|
+
getShowColumns: () => o(d),
|
|
312
312
|
rowSelection: {
|
|
313
313
|
selectedRows: n(() => R.value),
|
|
314
314
|
clearAll: A
|
|
@@ -319,7 +319,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
319
319
|
class: g(pe.value),
|
|
320
320
|
style: V(e.wrapperStyle)
|
|
321
321
|
}, [
|
|
322
|
-
o(
|
|
322
|
+
o(S)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), I("div", {
|
|
323
323
|
key: 0,
|
|
324
324
|
class: g(e.card ? o(P)("search-wrapper") : null),
|
|
325
325
|
style: V(e.searchFormWrapperStyle)
|
|
@@ -352,7 +352,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
352
352
|
key: "0"
|
|
353
353
|
} : void 0
|
|
354
354
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
355
|
-
], 6)) :
|
|
355
|
+
], 6)) : y("", !0),
|
|
356
356
|
E("div", {
|
|
357
357
|
class: g([o(P)("table-wrapper"), e.card ? o(P)("table-wrapper-card") : null]),
|
|
358
358
|
style: V(e.tableWrapperStyle)
|
|
@@ -363,7 +363,7 @@ const No = /* @__PURE__ */ Be({
|
|
|
363
363
|
O(e.$slots, "title", {
|
|
364
364
|
selectedRows: o(R),
|
|
365
365
|
selectedRowKeys: o(k).selectedRowKeys,
|
|
366
|
-
shownColumns:
|
|
366
|
+
shownColumns: d.value,
|
|
367
367
|
clearAll: A
|
|
368
368
|
})
|
|
369
369
|
], 2),
|
|
@@ -373,27 +373,25 @@ const No = /* @__PURE__ */ Be({
|
|
|
373
373
|
(s(), p(o(Ne), h(o(Ke)(a), {
|
|
374
374
|
ref_key: "tableRef",
|
|
375
375
|
ref: m,
|
|
376
|
-
key: o(
|
|
376
|
+
key: o(ie),
|
|
377
377
|
data: o(f).records,
|
|
378
378
|
"sort-config": { remote: j.value.length > 0 },
|
|
379
379
|
"filter-config": { remote: H.value.length > 0 },
|
|
380
380
|
loading: ye.value,
|
|
381
381
|
style: {
|
|
382
|
-
"--vxe-ui-table-row-checkbox-checked-background-color": o(
|
|
383
|
-
"--vxe-ui-table-row-hover-checkbox-checked-background-color": o(
|
|
384
|
-
"--vxe-ui-font-primary-color": o(
|
|
382
|
+
"--vxe-ui-table-row-checkbox-checked-background-color": o(i).controlItemBgActive,
|
|
383
|
+
"--vxe-ui-table-row-hover-checkbox-checked-background-color": o(i).controlItemBgActiveHover,
|
|
384
|
+
"--vxe-ui-font-primary-color": o(i).colorPrimary,
|
|
385
385
|
"--vxe-ui-table-header-background-color": "var(--ap-table-header-bg)",
|
|
386
386
|
"--vxe-ui-table-cell-padding-default": "12px",
|
|
387
387
|
"--vxe-ui-table-cell-padding-medium": "9px",
|
|
388
|
-
"--vxe-ui-table-row-radio-checked-background-color": o(
|
|
389
|
-
"--vxe-ui-table-row-hover-radio-checked-background-color": o(
|
|
390
|
-
"--vxe-ui-font-color": o(
|
|
391
|
-
"--vxe-ui-table-border-color": o(
|
|
392
|
-
"--vxe-ui-table-header-font-color": o(
|
|
393
|
-
"--vxe-ui-table-cell-padding-mini": "8px",
|
|
394
|
-
"--vxe-ui-table-row-line-height": "18px"
|
|
388
|
+
"--vxe-ui-table-row-radio-checked-background-color": o(i).controlItemBgActive,
|
|
389
|
+
"--vxe-ui-table-row-hover-radio-checked-background-color": o(i).controlItemBgActiveHover,
|
|
390
|
+
"--vxe-ui-font-color": o(i).colorTextBase,
|
|
391
|
+
"--vxe-ui-table-border-color": o(i).colorBorderSecondary,
|
|
392
|
+
"--vxe-ui-table-header-font-color": o(i).colorTextBase
|
|
395
393
|
},
|
|
396
|
-
size:
|
|
394
|
+
size: x.value,
|
|
397
395
|
onSortChange: o(he),
|
|
398
396
|
onFilterChange: o(ve),
|
|
399
397
|
onCheckboxChange: _,
|
|
@@ -412,9 +410,9 @@ const No = /* @__PURE__ */ Be({
|
|
|
412
410
|
(s(), p(D(a.expandable.renderContent(l))))
|
|
413
411
|
]),
|
|
414
412
|
_: 1
|
|
415
|
-
}, 16, ["fixed"])) :
|
|
416
|
-
a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(je)(o(k),
|
|
417
|
-
(s(!0), I(Q, null, L(o(
|
|
413
|
+
}, 16, ["fixed"])) : y("", !0),
|
|
414
|
+
a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(je)(o(k), d.value), { field: o(Ge) }), null, 16, ["field"])) : y("", !0),
|
|
415
|
+
(s(!0), I(Q, null, L(o(de), (l) => (s(), p(D(l), {
|
|
418
416
|
key: l.props.colId
|
|
419
417
|
}))), 128))
|
|
420
418
|
]),
|
|
@@ -437,12 +435,12 @@ const No = /* @__PURE__ */ Be({
|
|
|
437
435
|
"scroll-container": ce.value,
|
|
438
436
|
"extra-size": -4.2,
|
|
439
437
|
"bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
|
|
440
|
-
"track-color": "#
|
|
441
|
-
}, null, 8, ["scroll-container"])) :
|
|
438
|
+
"track-color": "var(--ap-table-header-bg, #f2f6f9)"
|
|
439
|
+
}, null, 8, ["scroll-container"])) : y("", !0),
|
|
442
440
|
e.pagination !== !1 ? (s(), p(o(Oe), h({
|
|
443
441
|
key: 1,
|
|
444
442
|
class: o(c)("pagination")
|
|
445
|
-
}, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) :
|
|
443
|
+
}, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) : y("", !0)
|
|
446
444
|
], 2)
|
|
447
445
|
], 6)
|
|
448
446
|
], 6));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as
|
|
1
|
+
import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as b, normalizeStyle as K, normalizeClass as y, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
|
|
2
2
|
import { Divider as je, Table as We } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as _e } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as He } from "../ap-form/index.mjs";
|
|
@@ -155,9 +155,9 @@ const Or = /* @__PURE__ */ Le({
|
|
|
155
155
|
b: f,
|
|
156
156
|
be: A,
|
|
157
157
|
m: me,
|
|
158
|
-
cssVar:
|
|
158
|
+
cssVar: be
|
|
159
159
|
} = ur("ap-table"), $ = ir("valueTypeMap"), {
|
|
160
|
-
height:
|
|
160
|
+
height: ye,
|
|
161
161
|
contentRef: ge
|
|
162
162
|
} = ar(), D = w(), j = w(), {
|
|
163
163
|
isStickyMode: W,
|
|
@@ -317,7 +317,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
317
317
|
var a, o;
|
|
318
318
|
if (r.adaptive && (S.total > 0 || ((a = r.dataSource) == null ? void 0 : a.length)))
|
|
319
319
|
return {
|
|
320
|
-
y: l(
|
|
320
|
+
y: l(ye),
|
|
321
321
|
x: ((o = r.scroll) == null ? void 0 : o.x) || "100%"
|
|
322
322
|
};
|
|
323
323
|
if (r.scroll)
|
|
@@ -409,16 +409,16 @@ const Or = /* @__PURE__ */ Le({
|
|
|
409
409
|
},
|
|
410
410
|
y: void 0
|
|
411
411
|
}
|
|
412
|
-
}), (e, a) => (
|
|
412
|
+
}), (e, a) => (b(), B("div", {
|
|
413
413
|
ref_key: "tableWrapperRef",
|
|
414
414
|
ref: D,
|
|
415
|
-
class:
|
|
416
|
-
style: K(l(
|
|
415
|
+
class: y(Ne.value),
|
|
416
|
+
style: K(l(be)({
|
|
417
417
|
"scroll-bar-width": `${l(H)}px`
|
|
418
418
|
}))
|
|
419
|
-
}, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (
|
|
419
|
+
}, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (b(), B("div", {
|
|
420
420
|
key: 0,
|
|
421
|
-
class:
|
|
421
|
+
class: y(e.card ? l(z)("search-wrapper") : null),
|
|
422
422
|
style: K(e.searchFormWrapperStyle)
|
|
423
423
|
}, [m(l(He).SearchForm, v(e.searchForm || {}, {
|
|
424
424
|
ref_key: "formRef",
|
|
@@ -428,7 +428,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
428
428
|
onSubmit: l(I),
|
|
429
429
|
onReset: l(V)
|
|
430
430
|
}), ae({
|
|
431
|
-
default: R(() => [(
|
|
431
|
+
default: R(() => [(b(!0), B(re, null, te(U.value, (o) => (b(), le(Ae(o.renderNode.Comp), v({
|
|
432
432
|
key: o.dataIndex,
|
|
433
433
|
item: o,
|
|
434
434
|
ref_for: !0
|
|
@@ -444,20 +444,20 @@ const Or = /* @__PURE__ */ Le({
|
|
|
444
444
|
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), L("div", {
|
|
445
445
|
ref_key: "contentRef",
|
|
446
446
|
ref: ge,
|
|
447
|
-
class:
|
|
447
|
+
class: y([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
|
|
448
448
|
style: K(e.tableWrapperStyle)
|
|
449
449
|
}, [L("div", {
|
|
450
|
-
class:
|
|
451
|
-
}, [e.settings ? (
|
|
450
|
+
class: y(l(f)("header-wrapper"))
|
|
451
|
+
}, [e.settings ? (b(), B("div", {
|
|
452
452
|
key: 0,
|
|
453
|
-
class:
|
|
453
|
+
class: y(l(f)("header"))
|
|
454
454
|
}, [L("div", {
|
|
455
|
-
class:
|
|
455
|
+
class: y(l(A)("header", "title"))
|
|
456
456
|
}, [C(e.$slots, "title", v({
|
|
457
457
|
selectedRows: l(x),
|
|
458
458
|
selectedRowKeys: l(T).selectedRowKeys,
|
|
459
459
|
shownColumns: u.value
|
|
460
|
-
}, F))], 2), c.title ? (
|
|
460
|
+
}, F))], 2), c.title ? (b(), le(l(je), {
|
|
461
461
|
key: 0,
|
|
462
462
|
type: "vertical"
|
|
463
463
|
})) : oe("", !0), m(fr, {
|
|
@@ -493,7 +493,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
493
493
|
"scroll-container": (t = (o = j.value) == null ? void 0 : o.table) == null ? void 0 : t.scrollBodyRef,
|
|
494
494
|
direction: "horizontal",
|
|
495
495
|
"bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
|
|
496
|
-
"track-color": "#
|
|
496
|
+
"track-color": "var(--ap-table-header-bg, #f2f6f9)"
|
|
497
497
|
}, null, 8, ["scroll-container"])];
|
|
498
498
|
}),
|
|
499
499
|
key: "0"
|
|
@@ -2,5 +2,6 @@ import { ApViewProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
|
|
4
4
|
maxViewNum: number;
|
|
5
|
+
isDefaultSystemView: boolean;
|
|
5
6
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
7
|
export default _default;
|