@aplus-frontend/ui 0.6.0-beta.1 → 0.6.0-beta.3
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-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +39 -34
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.mjs +23 -20
- package/es/src/ap-grid/editable/index.vue.mjs +3 -0
- package/es/src/ap-grid/index.vue.mjs +146 -136
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +32 -32
- package/es/src/ap-table/ap-table.vue2.mjs +206 -199
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
- package/es/src/ap-tag/interface.d.ts +4 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -12
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +108 -99
- package/es/src/business/ap-export-group/index.d.ts +3 -0
- package/es/src/business/ap-export-group/interface.d.ts +7 -2
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +72 -69
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +49 -43
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +2 -4
- package/es/src/config-provider/css-var.mjs +2 -2
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.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-grid/utils/table.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +4 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +3 -0
- package/lib/src/business/ap-export-group/interface.d.ts +7 -2
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +4 -4
- package/theme/antd-global-overwrite/admin/index.css +9 -25
- package/theme/antd-global-overwrite/admin/modal.css +6 -22
- package/theme/antd-global-overwrite/admin/modal.less +7 -22
- package/theme/antd-global-overwrite/admin/table.css +3 -3
- package/theme/antd-global-overwrite/admin/table.less +3 -3
- package/theme/antd-global-overwrite/aplus/index.css +9 -19
- package/theme/antd-global-overwrite/aplus/modal.css +6 -16
- package/theme/antd-global-overwrite/aplus/modal.less +7 -17
- package/theme/antd-global-overwrite/aplus/table.css +3 -3
- package/theme/antd-global-overwrite/aplus/table.less +3 -3
- package/theme/ap-appendix/ap-appendix.css +4 -2
- package/theme/ap-appendix/ap-appendix.less +4 -2
- package/theme/ap-attachment/ap-attachment.css +4 -4
- package/theme/ap-attachment/ap-attachment.less +4 -4
- package/theme/ap-batch-action/ap-batch-action.css +6 -3
- package/theme/ap-batch-action/ap-batch-action.less +6 -3
- package/theme/ap-descriptions/ap-descriptions.css +3 -5
- package/theme/ap-descriptions/ap-descriptions.less +3 -5
- package/theme/ap-download/ap-download.css +7 -10
- package/theme/ap-download/ap-download.less +8 -11
- package/theme/ap-expand-alert/ap-expand-alert.css +1 -1
- package/theme/ap-expand-alert/ap-expand-alert.less +3 -4
- package/theme/ap-form/ap-form-item.css +2 -2
- package/theme/ap-form/ap-form-item.less +2 -2
- package/theme/ap-form/index.css +5 -2
- package/theme/ap-form/search-form.css +5 -2
- package/theme/ap-form/search-form.less +3 -0
- package/theme/ap-grid/editable.less +3 -2
- package/theme/ap-grid/index.css +6 -3
- package/theme/ap-grid/index.less +6 -4
- package/theme/ap-ladder/ap-ladder.css +3 -3
- package/theme/ap-ladder/ap-ladder.less +3 -3
- package/theme/ap-select-layout/ap-select-layout.css +8 -8
- package/theme/ap-select-layout/ap-select-layout.less +8 -8
- package/theme/ap-status/ap-status.css +2 -3
- package/theme/ap-status/ap-status.less +2 -4
- package/theme/ap-summary/index.css +3 -3
- package/theme/ap-summary/index.less +3 -3
- package/theme/ap-table/ap-table-index.css +5 -5
- package/theme/ap-table/ap-table-index.less +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +15 -14
- package/theme/ap-table/ap-table.less +2 -5
- package/theme/ap-table/setting/index.css +3 -3
- package/theme/ap-table/setting/modal.css +1 -2
- package/theme/ap-table/setting/modal.less +1 -2
- package/theme/ap-table/setting/select-group.css +2 -1
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table-modal/index.css +15 -14
- package/theme/ap-tag/ap-tag-group.less +2 -2
- package/theme/ap-tag/ap-tag.css +24 -15
- package/theme/ap-tag/ap-tag.less +37 -24
- package/theme/ap-title/ap-title.css +2 -2
- package/theme/ap-title/ap-title.less +2 -2
- package/theme/ap-upload/index.css +3 -3
- package/theme/ap-upload/multiple-file.css +1 -1
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +2 -2
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-view/ap-view.css +4 -0
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/editable-table/index.css +5 -2
- package/theme/index.css +90 -77
|
@@ -6,7 +6,7 @@ import { omit as F } from "lodash-unified";
|
|
|
6
6
|
import { transferOpacityColor as O, isAsynchronous as j } from "./utils/index.mjs";
|
|
7
7
|
import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
import { useGlobalConfig as R } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
|
-
const q =
|
|
9
|
+
const q = 72, E = 300, Y = /* @__PURE__ */ W({
|
|
10
10
|
__name: "ap-button",
|
|
11
11
|
props: {
|
|
12
12
|
prefixCls: {},
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as T, ref as h, unref as e, createBlock as w, openBlock as B, withCtx as t, createVNode as o, createElementVNode as n, normalizeClass as r, toDisplayString as l, createTextVNode as
|
|
2
|
-
import { Popover as
|
|
1
|
+
import { defineComponent as T, ref as h, unref as e, createBlock as w, openBlock as B, withCtx as t, createVNode as o, createElementVNode as n, normalizeClass as r, toDisplayString as l, createTextVNode as y } from "vue";
|
|
2
|
+
import { Popover as S, Tooltip as D, Button as v, Flex as C, Divider as L } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApLayoutOutlined as P } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import V from "vuedraggable";
|
|
6
6
|
import "./sortable-item.vue.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
7
|
+
import { getStringName as j } from "../../../item-group/helper.mjs";
|
|
8
|
+
import { useNamespace as g } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as A } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import I from "./sortable-item.vue2.mjs";
|
|
11
|
+
const J = /* @__PURE__ */ T({
|
|
11
12
|
name: "ApFormSearchFormPopoverSorter",
|
|
12
13
|
__name: "index",
|
|
13
14
|
props: {
|
|
@@ -15,22 +16,25 @@ const G = /* @__PURE__ */ T({
|
|
|
15
16
|
onClickConfirm: { type: Function }
|
|
16
17
|
},
|
|
17
18
|
setup(k) {
|
|
18
|
-
const d = k,
|
|
19
|
-
let
|
|
20
|
-
const { e:
|
|
21
|
-
function F(
|
|
22
|
-
return
|
|
19
|
+
const d = k, p = h(d.children);
|
|
20
|
+
let _ = [...d.children];
|
|
21
|
+
const { e: c } = g("ap-form-search-form"), { b: a } = g("search-form-sorter"), { t: s } = A(), i = h(!1);
|
|
22
|
+
function F(m) {
|
|
23
|
+
return m.closest(".ant-form") || document.body;
|
|
23
24
|
}
|
|
24
25
|
function b() {
|
|
25
|
-
i.value = !1, console.log(e(
|
|
26
|
+
i.value = !1, console.log(e(p)), d.onClickConfirm(e(p));
|
|
26
27
|
}
|
|
27
28
|
function x() {
|
|
28
|
-
|
|
29
|
+
p.value = [..._];
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
function N(m) {
|
|
32
|
+
return j(m.props.name);
|
|
33
|
+
}
|
|
34
|
+
return (m, f) => (B(), w(e(S), {
|
|
31
35
|
open: i.value,
|
|
32
|
-
"onUpdate:open":
|
|
33
|
-
"overlay-class-name": e(
|
|
36
|
+
"onUpdate:open": f[1] || (f[1] = (u) => i.value = u),
|
|
37
|
+
"overlay-class-name": e(c)("popover"),
|
|
34
38
|
trigger: "click",
|
|
35
39
|
placement: "bottom",
|
|
36
40
|
mask: "",
|
|
@@ -44,7 +48,7 @@ const G = /* @__PURE__ */ T({
|
|
|
44
48
|
n("span", {
|
|
45
49
|
class: r(e(a)("header-title"))
|
|
46
50
|
}, l(e(s)("ap.apForm.search.sorterTitle")), 3),
|
|
47
|
-
o(e(
|
|
51
|
+
o(e(C), { justify: "space-between" }, {
|
|
48
52
|
default: t(() => [
|
|
49
53
|
n("span", {
|
|
50
54
|
class: r(e(a)("header-desc"))
|
|
@@ -62,39 +66,40 @@ const G = /* @__PURE__ */ T({
|
|
|
62
66
|
})
|
|
63
67
|
], 2),
|
|
64
68
|
n("div", {
|
|
65
|
-
class: r([e(
|
|
69
|
+
class: r([e(c)("popover-content"), e(a)("content")])
|
|
66
70
|
}, [
|
|
67
|
-
o(e(
|
|
68
|
-
list:
|
|
69
|
-
class: r(e(a)("sorter-wrapper"))
|
|
71
|
+
o(e(V), {
|
|
72
|
+
list: p.value,
|
|
73
|
+
class: r(e(a)("sorter-wrapper")),
|
|
74
|
+
"item-key": N
|
|
70
75
|
}, {
|
|
71
|
-
item: t(({ element:
|
|
72
|
-
o(
|
|
76
|
+
item: t(({ element: u }) => [
|
|
77
|
+
o(I, { item: u }, null, 8, ["item"])
|
|
73
78
|
]),
|
|
74
79
|
_: 1
|
|
75
80
|
}, 8, ["list", "class"])
|
|
76
81
|
], 2),
|
|
77
82
|
o(e(L), { style: { margin: "0" } }),
|
|
78
83
|
n("div", {
|
|
79
|
-
class: r(e(
|
|
84
|
+
class: r(e(c)("popover-footer"))
|
|
80
85
|
}, [
|
|
81
|
-
o(e(
|
|
86
|
+
o(e(C), { justify: "end" }, {
|
|
82
87
|
default: t(() => [
|
|
83
|
-
o(e(
|
|
84
|
-
onClick:
|
|
88
|
+
o(e(v), {
|
|
89
|
+
onClick: f[0] || (f[0] = (u) => i.value = !1)
|
|
85
90
|
}, {
|
|
86
91
|
default: t(() => [
|
|
87
|
-
|
|
92
|
+
y(l(e(s)("ap.common.cancelText")), 1)
|
|
88
93
|
]),
|
|
89
94
|
_: 1
|
|
90
95
|
}),
|
|
91
|
-
o(e(
|
|
92
|
-
class: r(e(
|
|
96
|
+
o(e(v), {
|
|
97
|
+
class: r(e(c)("popover-footer-confirm-btn")),
|
|
93
98
|
type: "primary",
|
|
94
99
|
onClick: b
|
|
95
100
|
}, {
|
|
96
101
|
default: t(() => [
|
|
97
|
-
|
|
102
|
+
y(l(e(s)("ap.apForm.search.sorterConfirmBtn")), 1)
|
|
98
103
|
]),
|
|
99
104
|
_: 1
|
|
100
105
|
}, 8, ["class"])
|
|
@@ -109,7 +114,7 @@ const G = /* @__PURE__ */ T({
|
|
|
109
114
|
placement: "top"
|
|
110
115
|
}, {
|
|
111
116
|
default: t(() => [
|
|
112
|
-
o(e(
|
|
117
|
+
o(e(v), null, {
|
|
113
118
|
icon: t(() => [
|
|
114
119
|
o(e(P))
|
|
115
120
|
]),
|
|
@@ -124,5 +129,5 @@ const G = /* @__PURE__ */ T({
|
|
|
124
129
|
}
|
|
125
130
|
});
|
|
126
131
|
export {
|
|
127
|
-
|
|
132
|
+
J as default
|
|
128
133
|
};
|
|
@@ -235,7 +235,7 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
235
235
|
class: n(m)()
|
|
236
236
|
}, n(ce)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
237
237
|
default: F(() => [(d(), x(A(l.value.hideNode))), t(n(se), {
|
|
238
|
-
gutter:
|
|
238
|
+
gutter: 8
|
|
239
239
|
}, {
|
|
240
240
|
default: F(() => [(d(!0), le(w, null, re(l.value.nodes, (r) => (d(), x(n(R), {
|
|
241
241
|
key: r.key,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as
|
|
1
|
+
import { defineComponent as P, useSlots as A, toRef as H, ref as h, unref as u, watch as K, nextTick as W, createBlock as G, openBlock as U, mergeProps as y, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
2
|
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isArray as Z, isUndefined as I, isNumber as m, cloneDeep as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -9,7 +9,7 @@ import { useInjectForm as te } from "../../ap-form/context.mjs";
|
|
|
9
9
|
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useGlobalConfig as le } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
11
|
import ne from "../index.vue.mjs";
|
|
12
|
-
const
|
|
12
|
+
const ge = /* @__PURE__ */ P({
|
|
13
13
|
name: "EditableGrid",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -108,6 +108,9 @@ const ye = /* @__PURE__ */ P({
|
|
|
108
108
|
loadingConfig: {},
|
|
109
109
|
headerCellConfig: {},
|
|
110
110
|
footerCellConfig: {},
|
|
111
|
+
round: {
|
|
112
|
+
type: Boolean
|
|
113
|
+
},
|
|
111
114
|
rowSelection: {
|
|
112
115
|
type: Boolean,
|
|
113
116
|
default: void 0
|
|
@@ -182,32 +185,32 @@ const ye = /* @__PURE__ */ P({
|
|
|
182
185
|
const a = {
|
|
183
186
|
...e || {}
|
|
184
187
|
};
|
|
185
|
-
t == null || t.setFieldValue(l.name, a, !0, (
|
|
186
|
-
if (!r
|
|
187
|
-
r
|
|
188
|
+
t == null || t.setFieldValue(l.name, a, !0, (f, r) => {
|
|
189
|
+
if (!f[r]) {
|
|
190
|
+
f[r] = [a];
|
|
188
191
|
return;
|
|
189
192
|
}
|
|
190
|
-
I(o) ? r
|
|
193
|
+
I(o) ? f[r].push(a) : f[r].splice(o, 0, a);
|
|
191
194
|
});
|
|
192
195
|
}
|
|
193
196
|
function L(e, o = "suffix") {
|
|
194
|
-
var
|
|
195
|
-
const n = ((
|
|
197
|
+
var f;
|
|
198
|
+
const n = ((f = u(d)) == null ? void 0 : f.length) || 0, a = m(e) ? e : e.length;
|
|
196
199
|
if (w(l.maxLength) && n + a > l.maxLength)
|
|
197
200
|
return;
|
|
198
201
|
const s = m(e) ? new Array(e).fill(0).map(() => ({})) : M(e);
|
|
199
|
-
t == null || t.setFieldValue(l.name, s, !0, (
|
|
200
|
-
if (!
|
|
201
|
-
|
|
202
|
+
t == null || t.setFieldValue(l.name, s, !0, (r, i) => {
|
|
203
|
+
if (!r[i]) {
|
|
204
|
+
r[i] = [...s];
|
|
202
205
|
return;
|
|
203
206
|
}
|
|
204
|
-
o === "suffix" ?
|
|
207
|
+
o === "suffix" ? r[i].push(...s) : r[i].unshift(...s);
|
|
205
208
|
});
|
|
206
209
|
}
|
|
207
210
|
function V(e) {
|
|
208
211
|
const o = new Set(m(e) ? [e] : e);
|
|
209
212
|
t == null || t.setFieldValue(l.name, void 0, !0, (n, a) => {
|
|
210
|
-
n[a] = n[a].filter((s,
|
|
213
|
+
n[a] = n[a].filter((s, f) => !o.has(f));
|
|
211
214
|
});
|
|
212
215
|
}
|
|
213
216
|
function T() {
|
|
@@ -221,9 +224,9 @@ const ye = /* @__PURE__ */ P({
|
|
|
221
224
|
t == null || t.setFieldValue(l.name, void 0, !0, (a, s) => {
|
|
222
225
|
if (!(!a[s] || !a[s][e])) {
|
|
223
226
|
if (!n) {
|
|
224
|
-
const
|
|
225
|
-
for (const
|
|
226
|
-
|
|
227
|
+
const f = Object.keys(a[s][e]);
|
|
228
|
+
for (const r of f)
|
|
229
|
+
r !== l.rowKey && delete a[s][e][r];
|
|
227
230
|
}
|
|
228
231
|
Object.assign(a[s][e], {
|
|
229
232
|
...o
|
|
@@ -253,11 +256,11 @@ const ye = /* @__PURE__ */ P({
|
|
|
253
256
|
scrollTo: O,
|
|
254
257
|
setTableData: E,
|
|
255
258
|
clear: z
|
|
256
|
-
}), (e, o) => (U(), G(u(C).FormItem,
|
|
259
|
+
}), (e, o) => (U(), G(u(C).FormItem, y(e.formItem, {
|
|
257
260
|
name: e.name,
|
|
258
261
|
label: e.label
|
|
259
262
|
}), {
|
|
260
|
-
default:
|
|
263
|
+
default: g(() => [$(ne, y(u(ee)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
|
|
261
264
|
ref_key: "tableRef",
|
|
262
265
|
ref: c,
|
|
263
266
|
class: u(B)(),
|
|
@@ -268,12 +271,12 @@ const ye = /* @__PURE__ */ P({
|
|
|
268
271
|
_: 2
|
|
269
272
|
}, [J(R, (n, a) => ({
|
|
270
273
|
name: a,
|
|
271
|
-
fn:
|
|
274
|
+
fn: g((s) => [Q(e.$slots, a, X(Y(s || {})))])
|
|
272
275
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
273
276
|
_: 3
|
|
274
277
|
}, 16, ["name", "label"]));
|
|
275
278
|
}
|
|
276
279
|
});
|
|
277
280
|
export {
|
|
278
|
-
|
|
281
|
+
ge as default
|
|
279
282
|
};
|