@aplus-frontend/ui 0.6.0-beta.0 → 0.6.0-beta.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/ap-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +57 -58
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/item/index.vue.mjs +33 -28
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.mjs +8 -7
- package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
- package/es/src/ap-form/items/number/index.vue.mjs +9 -8
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.mjs +7 -6
- package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.mjs +5 -4
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +8 -8
- package/es/src/ap-form/search-form/index.vue.mjs +36 -35
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ap-grid/editable/index.vue.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +149 -140
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +206 -199
- 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 +120 -114
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +63 -55
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +38 -38
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +2 -4
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/css-var.mjs +2 -2
- package/es/src/design-token/index.mjs +9 -3
- package/es/src/editable-table/form-item.vue.mjs +1 -1
- package/es/src/editable-table/index.vue.mjs +27 -27
- 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/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.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-table/ap-table.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/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.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 +1 -1
- package/theme/antd-global-overwrite/admin/index.css +5 -8
- package/theme/antd-global-overwrite/admin/modal.css +2 -5
- package/theme/antd-global-overwrite/admin/modal.less +3 -3
- 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 +5 -8
- package/theme/antd-global-overwrite/aplus/modal.css +2 -5
- package/theme/antd-global-overwrite/aplus/modal.less +3 -3
- package/theme/antd-global-overwrite/aplus/table.css +3 -3
- package/theme/antd-global-overwrite/aplus/table.less +3 -3
- package/theme/ap-action/item-dropdown.css +5 -5
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +5 -5
- package/theme/ap-action/item.less +1 -1
- package/theme/ap-appendix/ap-appendix.css +7 -5
- package/theme/ap-appendix/ap-appendix.less +4 -2
- package/theme/ap-attachment/ap-attachment.css +7 -7
- package/theme/ap-attachment/ap-attachment.less +4 -4
- package/theme/ap-batch-action/ap-batch-action.css +9 -6
- package/theme/ap-batch-action/ap-batch-action.less +6 -3
- package/theme/ap-button/ap-button.css +3 -3
- package/theme/ap-card/ap-card.css +3 -3
- package/theme/ap-descriptions/ap-descriptions.css +6 -8
- package/theme/ap-descriptions/ap-descriptions.less +3 -5
- package/theme/ap-download/ap-download.css +10 -13
- package/theme/ap-download/ap-download.less +8 -11
- package/theme/ap-expand-alert/ap-expand-alert.css +4 -4
- package/theme/ap-expand-alert/ap-expand-alert.less +3 -4
- package/theme/ap-field/checkbox.css +4 -4
- package/theme/ap-field/checkbox.less +2 -1
- package/theme/ap-field/index.css +5 -5
- package/theme/ap-field/number.css +3 -3
- package/theme/ap-field/radio.css +4 -4
- package/theme/ap-field/radio.less +1 -1
- package/theme/ap-field/text-area.css +3 -3
- package/theme/ap-form/ap-form-item-group.css +3 -3
- package/theme/ap-form/ap-form-item.css +10 -8
- package/theme/ap-form/ap-form-item.less +8 -6
- package/theme/ap-form/drawer-form.css +3 -3
- package/theme/ap-form/index.css +21 -19
- package/theme/ap-form/item-text-group.css +3 -3
- package/theme/ap-form/item-text.css +3 -3
- package/theme/ap-form/modal-form.css +3 -3
- package/theme/ap-form/search-form-sorter.css +12 -12
- package/theme/ap-form/search-form-sorter.less +7 -7
- package/theme/ap-form/search-form.css +21 -19
- package/theme/ap-form/search-form.less +5 -5
- package/theme/ap-grid/editable.css +5 -5
- package/theme/ap-grid/editable.less +3 -2
- package/theme/ap-grid/index.css +43 -32
- package/theme/ap-grid/index.less +20 -9
- package/theme/ap-group-search/ap-extension-select.css +3 -3
- package/theme/ap-group-search/ap-group-search.css +3 -3
- package/theme/ap-group-search/ap-popover-select.css +3 -3
- package/theme/ap-image/ap-image.css +3 -3
- package/theme/ap-input-radio/ap-input-radio.css +3 -3
- package/theme/ap-label/ap-label.css +3 -3
- package/theme/ap-ladder/ap-ladder.css +6 -6
- package/theme/ap-ladder/ap-ladder.less +3 -3
- package/theme/ap-layout/ap-info-layout.css +3 -3
- package/theme/ap-list/index.css +4 -4
- package/theme/ap-list/index.less +2 -1
- package/theme/ap-product-info/ap-product-info.css +3 -3
- package/theme/ap-select-layout/ap-select-layout.css +11 -11
- package/theme/ap-select-layout/ap-select-layout.less +8 -8
- package/theme/ap-size-input/ap-size-input.css +3 -3
- package/theme/ap-status/ap-status.css +5 -6
- package/theme/ap-status/ap-status.less +2 -4
- package/theme/ap-summary/index.css +6 -6
- package/theme/ap-summary/index.less +3 -3
- package/theme/ap-table/ap-table-index.css +8 -8
- package/theme/ap-table/ap-table-index.less +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +46 -42
- package/theme/ap-table/ap-table.less +10 -9
- package/theme/ap-table/setting/index.css +7 -7
- package/theme/ap-table/setting/modal.css +5 -5
- package/theme/ap-table/setting/select-group.css +3 -3
- package/theme/ap-table/setting/sortable-item-meta.css +3 -3
- package/theme/ap-table/setting/sortable-item.css +3 -3
- package/theme/ap-table/setting/sorter.css +5 -5
- package/theme/ap-table-modal/index.css +46 -42
- package/theme/ap-tag/ap-tag-group.css +3 -3
- package/theme/ap-tag/ap-tag-group.less +2 -2
- package/theme/ap-tag/ap-tag.css +27 -18
- package/theme/ap-tag/ap-tag.less +37 -24
- package/theme/ap-title/ap-title.css +5 -5
- package/theme/ap-title/ap-title.less +2 -2
- package/theme/ap-upload/index.css +6 -6
- package/theme/ap-upload/multiple-file.css +4 -4
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +5 -5
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +3 -3
- package/theme/ap-upload/upload.css +3 -3
- package/theme/ap-upload-single/index.css +3 -3
- package/theme/ap-view/ap-view.css +7 -3
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/batch-input-group/index.css +5 -5
- package/theme/batch-input-group/popover-input.css +3 -3
- package/theme/check-card/index.css +22 -22
- package/theme/check-card/index.less +17 -15
- package/theme/editable-table/index.css +36 -32
- package/theme/editable-table/index.less +9 -7
- package/theme/full-screen/index.css +3 -3
- package/theme/index.css +174 -147
- package/theme/mask/index.css +3 -3
- package/theme/mixins/config.less +26 -4
- package/theme/mixins/mixins.css +3 -3
- package/theme/scroll-bar/index.css +3 -3
- package/theme/scroll-view/index.css +3 -3
- package/theme/splitter/index.css +8 -8
- package/theme/text/group.css +3 -3
- package/theme/text/index.css +5 -5
- package/theme/work-order-modal/index.css +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, ref as x, useSlots as S, computed as g, createBlock as k, openBlock as F, normalizeProps as n, guardReactiveProps as i, unref as l, createSlots as u, withCtx as p, createVNode as C, mergeProps as P, renderList as
|
|
1
|
+
import { defineComponent as B, ref as x, useSlots as S, computed as g, createBlock as k, openBlock as F, normalizeProps as n, guardReactiveProps as i, unref as l, createSlots as u, withCtx as p, createVNode as C, mergeProps as P, renderList as c, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as b, pick as $ } from "lodash-unified";
|
|
@@ -48,6 +48,7 @@ const E = /* @__PURE__ */ B({
|
|
|
48
48
|
initialValue: {},
|
|
49
49
|
_signal: {},
|
|
50
50
|
transform: {},
|
|
51
|
+
description: {},
|
|
51
52
|
field: { default: () => ({}) },
|
|
52
53
|
placeholder: {},
|
|
53
54
|
disabled: { type: Boolean, default: void 0 }
|
|
@@ -83,20 +84,20 @@ const E = /* @__PURE__ */ B({
|
|
|
83
84
|
ref_key: "treeSelectRef",
|
|
84
85
|
ref: a
|
|
85
86
|
}), u({ _: 2 }, [
|
|
86
|
-
|
|
87
|
+
c(l(b)(f, l(_)), (d, t) => ({
|
|
87
88
|
name: t,
|
|
88
89
|
fn: p((s) => [
|
|
89
|
-
|
|
90
|
+
m(e.$slots, t, n(i(s || {})))
|
|
90
91
|
])
|
|
91
92
|
}))
|
|
92
93
|
]), 1040)
|
|
93
94
|
]),
|
|
94
95
|
_: 2
|
|
95
96
|
}, [
|
|
96
|
-
|
|
97
|
+
c(l($)(f, l(_)), (d, t) => ({
|
|
97
98
|
name: t,
|
|
98
99
|
fn: p((s) => [
|
|
99
|
-
|
|
100
|
+
m(e.$slots, t, n(i(s || {})))
|
|
100
101
|
])
|
|
101
102
|
}))
|
|
102
103
|
]), 1040));
|
|
@@ -43,11 +43,12 @@ const S = /* @__PURE__ */ m({
|
|
|
43
43
|
valuePropName: { default: "value" },
|
|
44
44
|
initialValue: {},
|
|
45
45
|
_signal: {},
|
|
46
|
-
transform: {}
|
|
46
|
+
transform: {},
|
|
47
|
+
description: {}
|
|
47
48
|
},
|
|
48
49
|
setup(d) {
|
|
49
|
-
const
|
|
50
|
-
return (a, h) => (v(), B(e(p).FormItem, o(l(
|
|
50
|
+
const i = d, u = c();
|
|
51
|
+
return (a, h) => (v(), B(e(p).FormItem, o(l(i)), y({
|
|
51
52
|
default: t(() => [
|
|
52
53
|
x(e(p).ControlRender, null, {
|
|
53
54
|
default: t((r) => [
|
|
@@ -58,7 +59,7 @@ const S = /* @__PURE__ */ m({
|
|
|
58
59
|
]),
|
|
59
60
|
_: 2
|
|
60
61
|
}, [
|
|
61
|
-
_(e(g)(
|
|
62
|
+
_(e(g)(u, "default"), (r, n) => ({
|
|
62
63
|
name: n,
|
|
63
64
|
fn: t((f) => [
|
|
64
65
|
s(a.$slots, n, o(l(f || {})))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, ref as k, createBlock as s, openBlock as
|
|
2
|
-
import { Popover as B, Tooltip as
|
|
1
|
+
import { defineComponent as y, ref as k, createBlock as s, openBlock as l, unref as e, withCtx as o, createVNode as t, createElementVNode as d, normalizeClass as c, createElementBlock as C, Fragment as F, renderList as _, resolveDynamicComponent as b, createTextVNode as f, toDisplayString as v } from "vue";
|
|
2
|
+
import { Popover as B, Tooltip as x, Button as u, Row as h, Col as L, Divider as N, Flex as S } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApFilterOutlined as w } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
5
|
import { useNamespace as D } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -17,9 +17,9 @@ const O = /* @__PURE__ */ y({
|
|
|
17
17
|
function g(n) {
|
|
18
18
|
return n.closest(".ant-form") || document.body;
|
|
19
19
|
}
|
|
20
|
-
return (n,
|
|
20
|
+
return (n, p) => (l(), s(e(B), {
|
|
21
21
|
open: m.value,
|
|
22
|
-
"onUpdate:open":
|
|
22
|
+
"onUpdate:open": p[1] || (p[1] = (r) => m.value = r),
|
|
23
23
|
"overlay-class-name": e(a)("popover"),
|
|
24
24
|
trigger: "click",
|
|
25
25
|
placement: "bottom",
|
|
@@ -30,16 +30,16 @@ const O = /* @__PURE__ */ y({
|
|
|
30
30
|
content: o(() => [
|
|
31
31
|
d("div", {
|
|
32
32
|
class: c([e(a)("popover-content")]),
|
|
33
|
-
style: { paddingBottom:
|
|
33
|
+
style: { paddingBottom: "4px", width: "825px" }
|
|
34
34
|
}, [
|
|
35
|
-
t(e(
|
|
35
|
+
t(e(h), { gutter: 16 }, {
|
|
36
36
|
default: o(() => [
|
|
37
|
-
(
|
|
37
|
+
(l(!0), C(F, null, _(n.config, (r) => (l(), s(e(L), {
|
|
38
38
|
key: r.key,
|
|
39
39
|
span: 8
|
|
40
40
|
}, {
|
|
41
41
|
default: o(() => [
|
|
42
|
-
(
|
|
42
|
+
(l(), s(b(r.node)))
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1024))), 128))
|
|
@@ -54,7 +54,7 @@ const O = /* @__PURE__ */ y({
|
|
|
54
54
|
t(e(S), { justify: "end" }, {
|
|
55
55
|
default: o(() => [
|
|
56
56
|
t(e(u), {
|
|
57
|
-
onClick:
|
|
57
|
+
onClick: p[0] || (p[0] = (r) => m.value = !1)
|
|
58
58
|
}, {
|
|
59
59
|
default: o(() => [
|
|
60
60
|
f(v(e(i)("ap.common.cancelText")), 1)
|
|
@@ -78,7 +78,7 @@ const O = /* @__PURE__ */ y({
|
|
|
78
78
|
], 2)
|
|
79
79
|
]),
|
|
80
80
|
default: o(() => [
|
|
81
|
-
t(e(
|
|
81
|
+
t(e(x), {
|
|
82
82
|
title: e(i)("ap.apForm.search.moreFilter"),
|
|
83
83
|
placement: "top"
|
|
84
84
|
}, {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, computed as n, createElementBlock as a, openBlock as d, normalizeClass as r, unref as t, createElementVNode as l, createVNode as u, toDisplayString as f } from "vue";
|
|
2
2
|
import { HolderOutlined as h } from "@ant-design/icons-vue";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import { isBoolean as _ } from "lodash-unified";
|
|
5
5
|
import { isDef as v } from "@fruits-chain/utils";
|
|
6
6
|
import { useNamespace as b } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const x = ["title"], C = /* @__PURE__ */
|
|
7
|
+
const x = ["title"], C = /* @__PURE__ */ c({
|
|
8
8
|
name: "ApFormSearchFormPopoverSorterItem",
|
|
9
9
|
__name: "sortable-item",
|
|
10
10
|
props: {
|
|
11
11
|
item: {}
|
|
12
12
|
},
|
|
13
13
|
setup(m) {
|
|
14
|
-
const s = m,
|
|
14
|
+
const s = m, i = n(() => {
|
|
15
15
|
const e = s.item.props;
|
|
16
|
-
return e.label || e.placeholder;
|
|
17
|
-
}), p =
|
|
16
|
+
return e.description || e.label || e.placeholder;
|
|
17
|
+
}), p = n(() => {
|
|
18
18
|
const e = s.item.props;
|
|
19
19
|
return _(e.hidden) ? !!e.hidden : v(e.hidden);
|
|
20
20
|
}), { b: o } = b("search-form-sorter");
|
|
21
|
-
return (e, B) => (d(),
|
|
21
|
+
return (e, B) => (d(), a("div", {
|
|
22
22
|
class: r([t(o)("sorter-item"), { [t(o)("sorter-item--hidden")]: p.value }])
|
|
23
23
|
}, [
|
|
24
24
|
l("div", null, [
|
|
@@ -28,8 +28,8 @@ const x = ["title"], C = /* @__PURE__ */ a({
|
|
|
28
28
|
}, null, 8, ["class"]),
|
|
29
29
|
l("span", {
|
|
30
30
|
class: r(t(o)("sorter-item-text")),
|
|
31
|
-
title:
|
|
32
|
-
}, f(
|
|
31
|
+
title: i.value
|
|
32
|
+
}, f(i.value), 11, x)
|
|
33
33
|
])
|
|
34
34
|
], 2));
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@ import "../ap-form.vue.mjs";
|
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
5
|
import { genRealChildren as V } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { isArray as ie, isBoolean as
|
|
7
|
+
import { isArray as ie, isBoolean as ue, omit as ce } from "lodash-unified";
|
|
8
8
|
import { isDef as M } from "../../utils/index.mjs";
|
|
9
9
|
import { execFunc as W, diffFormItem as pe } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
@@ -113,15 +113,16 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
113
113
|
setup(f, {
|
|
114
114
|
expose: q
|
|
115
115
|
}) {
|
|
116
|
-
var
|
|
116
|
+
var E;
|
|
117
117
|
const i = oe(), o = f, {
|
|
118
118
|
b: m
|
|
119
119
|
} = fe("ap-form-search-form"), {
|
|
120
120
|
t: N
|
|
121
121
|
} = me(), z = de(o), y = ae();
|
|
122
122
|
function k() {
|
|
123
|
-
var
|
|
124
|
-
|
|
123
|
+
var a;
|
|
124
|
+
const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
|
|
125
|
+
W(o.onSubmit, e);
|
|
125
126
|
}
|
|
126
127
|
function H() {
|
|
127
128
|
var e, a;
|
|
@@ -129,22 +130,22 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
129
130
|
}
|
|
130
131
|
const G = (e) => M(e) ? (ie(e) ? e : [e]).join("") : Date.now();
|
|
131
132
|
let I = [];
|
|
132
|
-
const
|
|
133
|
+
const u = j(V(i.default())), c = j((E = i.extra) == null ? void 0 : E.call(i)), T = _(() => Math.floor(s / n(z)));
|
|
133
134
|
L(() => i.default(), (e) => {
|
|
134
|
-
I =
|
|
135
|
+
I = u.value, u.value = pe(I, V(e));
|
|
135
136
|
}), L(() => {
|
|
136
137
|
var e;
|
|
137
138
|
return (e = i.extra) == null ? void 0 : e.call(i);
|
|
138
139
|
}, (e) => {
|
|
139
|
-
|
|
140
|
+
c.value = e;
|
|
140
141
|
});
|
|
141
|
-
const
|
|
142
|
-
const e =
|
|
142
|
+
const l = _(() => {
|
|
143
|
+
const e = u.value, a = [], r = [], g = [], h = n(T);
|
|
143
144
|
let v = 0, b = 0;
|
|
144
|
-
const Q = s * o.maxRows - h * (n(
|
|
145
|
+
const Q = s * o.maxRows - h * (n(c) && !o.extraInAction ? 2 : 1);
|
|
145
146
|
e.forEach((S, Z) => {
|
|
146
147
|
const p = S.props;
|
|
147
|
-
if (
|
|
148
|
+
if (ue(p.hidden) ? !!p.hidden : M(p.hidden))
|
|
148
149
|
a.push(S);
|
|
149
150
|
else {
|
|
150
151
|
let C = p.span || h;
|
|
@@ -153,31 +154,31 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
153
154
|
span: C,
|
|
154
155
|
key: `ApFormSearchFormItem-${Z}-${G(p.name)}-${p._signal}`
|
|
155
156
|
}, $ = s - v % s;
|
|
156
|
-
$ < C && (C += $), v += C, v > Q ?
|
|
157
|
+
$ < C && (C += $), v += C, v > Q ? r.push(O) : (b = v, g.push(O));
|
|
157
158
|
}
|
|
158
159
|
});
|
|
159
|
-
const
|
|
160
|
+
const P = s - (b + h) % s, X = b % s < h, Y = P < h ? s : P;
|
|
160
161
|
return {
|
|
161
162
|
hideNode: t(w, null, [a]),
|
|
162
163
|
nodes: g,
|
|
163
|
-
collapseNodes:
|
|
164
|
+
collapseNodes: r,
|
|
164
165
|
extraSpan: Y,
|
|
165
166
|
lastRowOnlyIncludeActionAndExtra: X
|
|
166
167
|
};
|
|
167
168
|
});
|
|
168
169
|
function J(e) {
|
|
169
|
-
|
|
170
|
+
u.value = [...e];
|
|
170
171
|
}
|
|
171
172
|
const K = _(() => {
|
|
172
173
|
let e;
|
|
173
174
|
const a = t(R, {
|
|
174
|
-
span: n(
|
|
175
|
+
span: n(T),
|
|
175
176
|
key: "actionWrapper"
|
|
176
177
|
}, {
|
|
177
178
|
default: () => [t(D, null, {
|
|
178
179
|
default: () => [t(B, {
|
|
179
180
|
wrap: "wrap",
|
|
180
|
-
justify:
|
|
181
|
+
justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(c) && o.extraInAction) ? "flex-end" : "space-between"
|
|
181
182
|
}, {
|
|
182
183
|
default: () => [t(B, {
|
|
183
184
|
gap: 8,
|
|
@@ -185,12 +186,12 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
185
186
|
}, {
|
|
186
187
|
default: () => [t("div", {
|
|
187
188
|
class: m("column-setting-trigger-wrapper")
|
|
188
|
-
}, [
|
|
189
|
+
}, [l.value.collapseNodes.length ? t(he, {
|
|
189
190
|
onSubmit: k,
|
|
190
|
-
config:
|
|
191
|
+
config: l.value.collapseNodes,
|
|
191
192
|
submitLoading: o.submitLoading
|
|
192
|
-
}, null) : null, o.sortable &&
|
|
193
|
-
children:
|
|
193
|
+
}, null) : null, o.sortable && u.value.length ? t(xe, {
|
|
194
|
+
children: u.value,
|
|
194
195
|
onClickConfirm: J
|
|
195
196
|
}, null) : null]), t(U, {
|
|
196
197
|
type: "primary",
|
|
@@ -207,24 +208,24 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
207
208
|
}, {
|
|
208
209
|
default: () => [o.resetText || N("ap.apForm.search.reset")]
|
|
209
210
|
})]
|
|
210
|
-
}), o.extraInAction ? n(
|
|
211
|
+
}), o.extraInAction ? n(c) : null]
|
|
211
212
|
})]
|
|
212
213
|
})]
|
|
213
|
-
}),
|
|
214
|
-
span:
|
|
214
|
+
}), r = !o.extraInAction && n(c) ? t(R, {
|
|
215
|
+
span: l.value.extraSpan,
|
|
215
216
|
key: "extraNode"
|
|
216
217
|
}, {
|
|
217
218
|
default: () => [t(D, null, {
|
|
218
219
|
default: () => [t(B, {
|
|
219
|
-
justify:
|
|
220
|
-
}, ge(e = n(
|
|
220
|
+
justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
|
|
221
|
+
}, ge(e = n(c)) ? e : {
|
|
221
222
|
default: () => [e]
|
|
222
223
|
})]
|
|
223
224
|
})]
|
|
224
225
|
}) : null, g = t(R, {
|
|
225
|
-
span:
|
|
226
|
+
span: l.value.extraSpan
|
|
226
227
|
}, null);
|
|
227
|
-
return
|
|
228
|
+
return l.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [r || g, a]) : t(w, null, [a, r]);
|
|
228
229
|
});
|
|
229
230
|
return q({
|
|
230
231
|
apForm: _(() => n(y))
|
|
@@ -232,15 +233,15 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
232
233
|
ref_key: "apForm",
|
|
233
234
|
ref: y,
|
|
234
235
|
class: n(m)()
|
|
235
|
-
}, n(
|
|
236
|
-
default: F(() => [(d(), x(A(
|
|
237
|
-
gutter:
|
|
236
|
+
}, n(ce)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
237
|
+
default: F(() => [(d(), x(A(l.value.hideNode))), t(n(se), {
|
|
238
|
+
gutter: 8
|
|
238
239
|
}, {
|
|
239
|
-
default: F(() => [(d(!0), le(w, null, re(
|
|
240
|
-
key:
|
|
241
|
-
span:
|
|
240
|
+
default: F(() => [(d(!0), le(w, null, re(l.value.nodes, (r) => (d(), x(n(R), {
|
|
241
|
+
key: r.key,
|
|
242
|
+
span: r.span
|
|
242
243
|
}, {
|
|
243
|
-
default: F(() => [(d(), x(A(
|
|
244
|
+
default: F(() => [(d(), x(A(r.node)))]),
|
|
244
245
|
_: 2
|
|
245
246
|
}, 1032, ["span"]))), 128)), (d(), x(A(K.value)))]),
|
|
246
247
|
_: 1
|