@aplus-frontend/ui 0.6.0-beta.7 → 0.6.0-beta.9
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/interface.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +89 -75
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +76 -75
- 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 +44 -46
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +1 -1
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +89 -70
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +121 -118
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
- package/es/src/business/hooks/usePageListApGrid.mjs +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.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.d.ts +6 -2
- package/lib/src/ap-form/search-form/index.vue.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/hooks/use-table-paging-ng.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-label/constans.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/hooks/usePageListApGrid.js +1 -1
- package/package.json +1 -1
- package/theme/ap-action/item-dropdown.css +1 -1
- package/theme/ap-action/item.css +2 -2
- package/theme/ap-appendix/ap-appendix.css +3 -3
- package/theme/ap-appendix/ap-appendix.less +2 -2
- package/theme/ap-attachment/ap-attachment.css +3 -2
- package/theme/ap-attachment/ap-attachment.less +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +1 -1
- package/theme/ap-button/ap-button.css +1 -1
- package/theme/ap-card/ap-card.css +1 -1
- package/theme/ap-descriptions/ap-descriptions.css +1 -1
- package/theme/ap-download/ap-download.css +1 -1
- package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
- package/theme/ap-field/checkbox.css +1 -1
- package/theme/ap-field/index.css +1 -1
- package/theme/ap-field/number.css +1 -1
- package/theme/ap-field/radio.css +1 -1
- package/theme/ap-field/text-area.css +1 -1
- package/theme/ap-form/ap-form-item-group.css +1 -1
- package/theme/ap-form/ap-form-item.css +1 -1
- package/theme/ap-form/drawer-form.css +1 -1
- package/theme/ap-form/index.css +14 -5
- package/theme/ap-form/item-text-group.css +1 -1
- package/theme/ap-form/item-text.css +1 -1
- package/theme/ap-form/modal-form.css +1 -1
- package/theme/ap-form/search-form-sorter.css +6 -5
- package/theme/ap-form/search-form-sorter.less +1 -0
- package/theme/ap-form/search-form.css +14 -5
- package/theme/ap-form/search-form.less +8 -0
- package/theme/ap-grid/editable.css +1 -1
- package/theme/ap-grid/index.css +26 -7
- package/theme/ap-grid/index.less +11 -1
- package/theme/ap-group-search/ap-extension-select.css +1 -1
- package/theme/ap-group-search/ap-group-search.css +1 -1
- package/theme/ap-group-search/ap-popover-select.css +1 -1
- package/theme/ap-image/ap-image.css +1 -1
- package/theme/ap-input-radio/ap-input-radio.css +1 -1
- package/theme/ap-label/ap-label.css +1 -1
- package/theme/ap-ladder/ap-ladder.css +2 -1
- package/theme/ap-ladder/ap-ladder.less +1 -0
- package/theme/ap-layout/ap-info-layout.css +1 -1
- package/theme/ap-list/index.css +1 -1
- package/theme/ap-product-info/ap-product-info.css +1 -1
- package/theme/ap-select-layout/ap-select-layout.css +1 -1
- package/theme/ap-size-input/ap-size-input.css +1 -1
- package/theme/ap-status/ap-status.css +2 -2
- package/theme/ap-status/ap-status.less +1 -1
- package/theme/ap-summary/index.css +1 -1
- package/theme/ap-table/ap-table-index.css +1 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +1 -1
- package/theme/ap-table/ap-table.css +20 -12
- package/theme/ap-table/ap-table.less +4 -4
- package/theme/ap-table/setting/index.css +2 -3
- package/theme/ap-table/setting/modal.css +2 -2
- package/theme/ap-table/setting/select-group.css +1 -1
- package/theme/ap-table/setting/sortable-item-meta.css +1 -1
- package/theme/ap-table/setting/sortable-item.css +1 -1
- package/theme/ap-table/setting/sorter.css +1 -2
- package/theme/ap-table-modal/index.css +20 -12
- package/theme/ap-tag/ap-tag-group.css +3 -3
- package/theme/ap-tag/ap-tag-group.less +2 -3
- package/theme/ap-tag/ap-tag.css +4 -4
- package/theme/ap-tag/ap-tag.less +3 -3
- package/theme/ap-title/ap-title.css +6 -4
- package/theme/ap-title/ap-title.less +5 -3
- package/theme/ap-upload/index.css +6 -6
- package/theme/ap-upload/multiple-file.css +2 -2
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +3 -3
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +3 -3
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +1 -1
- package/theme/ap-upload-single/index.css +1 -1
- package/theme/ap-view/ap-view.css +1 -1
- package/theme/batch-input-group/index.css +2 -1
- package/theme/batch-input-group/popover-input.css +2 -1
- package/theme/batch-input-group/popover-input.less +1 -0
- package/theme/check-card/index.css +4 -4
- package/theme/editable-table/index.css +15 -6
- package/theme/full-screen/index.css +1 -1
- package/theme/index.css +60 -37
- package/theme/mask/index.css +1 -1
- package/theme/mixins/config.less +1 -1
- package/theme/mixins/mixins.css +1 -1
- package/theme/scroll-bar/index.css +1 -1
- package/theme/scroll-view/index.css +1 -1
- package/theme/splitter/index.css +3 -3
- package/theme/text/group.css +1 -1
- package/theme/text/index.css +2 -2
- package/theme/work-order-modal/index.css +1 -1
|
@@ -183,6 +183,10 @@ export type ApFormSearchFormPopoverSorterProps = {
|
|
|
183
183
|
* @returns
|
|
184
184
|
*/
|
|
185
185
|
onClickConfirm: (sortedChildren: VNode[]) => void;
|
|
186
|
+
/**
|
|
187
|
+
* 当前的children是否已经排序过了
|
|
188
|
+
*/
|
|
189
|
+
sorted?: boolean;
|
|
186
190
|
};
|
|
187
191
|
export type ApFormSearchFormExpose = {
|
|
188
192
|
apForm: ApFormExpose;
|
|
@@ -1,4 +1,133 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverFilterProps } from '../../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
4
|
+
import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
6
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
|
+
declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormPopoverFilterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
9
|
+
triggerBtnRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
10
|
+
prefixCls: StringConstructor;
|
|
11
|
+
type: PropType<ButtonType>;
|
|
12
|
+
htmlType: {
|
|
13
|
+
type: PropType<ButtonHTMLType>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
shape: {
|
|
17
|
+
type: PropType<ButtonShape>;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<ButtonSize>;
|
|
21
|
+
};
|
|
22
|
+
loading: {
|
|
23
|
+
type: PropType<boolean | {
|
|
24
|
+
delay?: number;
|
|
25
|
+
}>;
|
|
26
|
+
default: () => boolean | {
|
|
27
|
+
delay?: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
ghost: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
38
|
+
block: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
danger: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
icon: VueTypeValidableDef<any>;
|
|
47
|
+
href: StringConstructor;
|
|
48
|
+
target: StringConstructor;
|
|
49
|
+
title: StringConstructor;
|
|
50
|
+
onClick: {
|
|
51
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
52
|
+
};
|
|
53
|
+
onMousedown: {
|
|
54
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
57
|
+
block: boolean;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
danger: boolean;
|
|
60
|
+
ghost: boolean;
|
|
61
|
+
htmlType: ButtonHTMLType;
|
|
62
|
+
loading: boolean | {
|
|
63
|
+
delay?: number;
|
|
64
|
+
};
|
|
65
|
+
}, true, {}, CustomSlotsType<{
|
|
66
|
+
icon: any;
|
|
67
|
+
default: any;
|
|
68
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
69
|
+
P: {};
|
|
70
|
+
B: {};
|
|
71
|
+
D: {};
|
|
72
|
+
C: {};
|
|
73
|
+
M: {};
|
|
74
|
+
Defaults: {};
|
|
75
|
+
}, Readonly< ExtractPropTypes<{
|
|
76
|
+
prefixCls: StringConstructor;
|
|
77
|
+
type: PropType<ButtonType>;
|
|
78
|
+
htmlType: {
|
|
79
|
+
type: PropType<ButtonHTMLType>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
shape: {
|
|
83
|
+
type: PropType<ButtonShape>;
|
|
84
|
+
};
|
|
85
|
+
size: {
|
|
86
|
+
type: PropType<ButtonSize>;
|
|
87
|
+
};
|
|
88
|
+
loading: {
|
|
89
|
+
type: PropType<boolean | {
|
|
90
|
+
delay?: number;
|
|
91
|
+
}>;
|
|
92
|
+
default: () => boolean | {
|
|
93
|
+
delay?: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
disabled: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: any;
|
|
99
|
+
};
|
|
100
|
+
ghost: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
block: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: any;
|
|
107
|
+
};
|
|
108
|
+
danger: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: any;
|
|
111
|
+
};
|
|
112
|
+
icon: VueTypeValidableDef<any>;
|
|
113
|
+
href: StringConstructor;
|
|
114
|
+
target: StringConstructor;
|
|
115
|
+
title: StringConstructor;
|
|
116
|
+
onClick: {
|
|
117
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
118
|
+
};
|
|
119
|
+
onMousedown: {
|
|
120
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
123
|
+
block: boolean;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
danger: boolean;
|
|
126
|
+
ghost: boolean;
|
|
127
|
+
htmlType: ButtonHTMLType;
|
|
128
|
+
loading: boolean | {
|
|
129
|
+
delay?: number;
|
|
130
|
+
};
|
|
131
|
+
}> | null;
|
|
132
|
+
}, any>;
|
|
4
133
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { IconApFilterOutlined as
|
|
1
|
+
import { defineComponent as C, ref as d, createBlock as c, openBlock as i, unref as e, withCtx as o, createVNode as t, normalizeClass as s, createElementVNode as g, createElementBlock as F, Fragment as _, renderList as B, resolveDynamicComponent as x, createTextVNode as v, toDisplayString as y } from "vue";
|
|
2
|
+
import { Popover as h, Tooltip as L, Button as u, Row as N, Col as S, Divider as w, Flex as D } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApFilterOutlined as P } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
import { useLocale as
|
|
7
|
-
const
|
|
5
|
+
import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useLocale as T } from "../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const U = /* @__PURE__ */ C({
|
|
8
8
|
name: "ApFormSearchFormPopoverFilter",
|
|
9
9
|
__name: "popover-filter",
|
|
10
10
|
props: {
|
|
@@ -12,34 +12,34 @@ const O = /* @__PURE__ */ y({
|
|
|
12
12
|
onSubmit: { type: Function },
|
|
13
13
|
submitLoading: { type: Boolean }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const { e: a } =
|
|
17
|
-
function
|
|
18
|
-
return
|
|
15
|
+
setup(V) {
|
|
16
|
+
const k = d(), { e: a, b: f } = R("ap-form-search-form"), { t: m } = T(), l = d(!1);
|
|
17
|
+
function b(r) {
|
|
18
|
+
return r.closest(".ant-form") || document.body;
|
|
19
19
|
}
|
|
20
|
-
return (
|
|
21
|
-
open:
|
|
22
|
-
"onUpdate:open": p[1] || (p[1] = (
|
|
20
|
+
return (r, p) => (i(), c(e(h), {
|
|
21
|
+
open: l.value,
|
|
22
|
+
"onUpdate:open": p[1] || (p[1] = (n) => l.value = n),
|
|
23
23
|
"overlay-class-name": e(a)("popover"),
|
|
24
24
|
trigger: "click",
|
|
25
25
|
placement: "bottom",
|
|
26
26
|
mask: "",
|
|
27
27
|
"mask-style": { backgroundColor: "transparent" },
|
|
28
|
-
"get-popup-container":
|
|
28
|
+
"get-popup-container": b
|
|
29
29
|
}, {
|
|
30
30
|
content: o(() => [
|
|
31
|
-
|
|
32
|
-
class:
|
|
31
|
+
g("div", {
|
|
32
|
+
class: s([e(a)("popover-content")]),
|
|
33
33
|
style: { paddingBottom: "4px", width: "825px" }
|
|
34
34
|
}, [
|
|
35
|
-
t(e(
|
|
35
|
+
t(e(N), { gutter: 8 }, {
|
|
36
36
|
default: o(() => [
|
|
37
|
-
(
|
|
38
|
-
key:
|
|
37
|
+
(i(!0), F(_, null, B(r.config, (n) => (i(), c(e(S), {
|
|
38
|
+
key: n.key,
|
|
39
39
|
span: 8
|
|
40
40
|
}, {
|
|
41
41
|
default: o(() => [
|
|
42
|
-
(
|
|
42
|
+
(i(), c(x(n.node)))
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1024))), 128))
|
|
@@ -47,28 +47,28 @@ const O = /* @__PURE__ */ y({
|
|
|
47
47
|
_: 1
|
|
48
48
|
})
|
|
49
49
|
], 2),
|
|
50
|
-
t(e(
|
|
51
|
-
|
|
52
|
-
class:
|
|
50
|
+
t(e(w), { style: { margin: "0" } }),
|
|
51
|
+
g("div", {
|
|
52
|
+
class: s(e(a)("popover-footer"))
|
|
53
53
|
}, [
|
|
54
|
-
t(e(
|
|
54
|
+
t(e(D), { justify: "end" }, {
|
|
55
55
|
default: o(() => [
|
|
56
56
|
t(e(u), {
|
|
57
|
-
onClick: p[0] || (p[0] = (
|
|
57
|
+
onClick: p[0] || (p[0] = (n) => l.value = !1)
|
|
58
58
|
}, {
|
|
59
59
|
default: o(() => [
|
|
60
|
-
|
|
60
|
+
v(y(e(m)("ap.common.cancelText")), 1)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}),
|
|
64
64
|
t(e(u), {
|
|
65
|
-
class:
|
|
65
|
+
class: s(e(a)("popover-footer-confirm-btn")),
|
|
66
66
|
type: "primary",
|
|
67
|
-
loading:
|
|
68
|
-
onClick:
|
|
67
|
+
loading: r.submitLoading,
|
|
68
|
+
onClick: r.onSubmit
|
|
69
69
|
}, {
|
|
70
70
|
default: o(() => [
|
|
71
|
-
|
|
71
|
+
v(y(e(m)("ap.apForm.search.search")), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}, 8, ["class", "loading", "onClick"])
|
|
@@ -78,17 +78,21 @@ const O = /* @__PURE__ */ y({
|
|
|
78
78
|
], 2)
|
|
79
79
|
]),
|
|
80
80
|
default: o(() => [
|
|
81
|
-
t(e(
|
|
82
|
-
title: e(
|
|
81
|
+
t(e(L), {
|
|
82
|
+
title: e(m)("ap.apForm.search.moreFilter"),
|
|
83
83
|
placement: "top"
|
|
84
84
|
}, {
|
|
85
85
|
default: o(() => [
|
|
86
|
-
t(e(u),
|
|
86
|
+
t(e(u), {
|
|
87
|
+
ref_key: "triggerBtnRef",
|
|
88
|
+
ref: k,
|
|
89
|
+
class: s([e(f)("trigger-btn"), { [e(f)("trigger-btn-active")]: l.value }])
|
|
90
|
+
}, {
|
|
87
91
|
icon: o(() => [
|
|
88
|
-
t(e(
|
|
92
|
+
t(e(P), { size: 14 })
|
|
89
93
|
]),
|
|
90
94
|
_: 1
|
|
91
|
-
})
|
|
95
|
+
}, 8, ["class"])
|
|
92
96
|
]),
|
|
93
97
|
_: 1
|
|
94
98
|
}, 8, ["title"])
|
|
@@ -98,5 +102,5 @@ const O = /* @__PURE__ */ y({
|
|
|
98
102
|
}
|
|
99
103
|
});
|
|
100
104
|
export {
|
|
101
|
-
|
|
105
|
+
U as default
|
|
102
106
|
};
|
|
@@ -1,105 +1,117 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { IconApLayoutOutlined as
|
|
1
|
+
import { defineComponent as S, ref as C, watch as k, unref as e, createBlock as D, openBlock as P, withCtx as a, createVNode as o, normalizeClass as r, createElementVNode as s, toDisplayString as m, createTextVNode as b } from "vue";
|
|
2
|
+
import { Popover as V, Tooltip as j, Button as h, Flex as _, Divider as z } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApLayoutOutlined as A } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
|
-
import
|
|
5
|
+
import I 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 L } from "../../../item-group/helper.mjs";
|
|
8
|
+
import { useNamespace as F } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as R } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import $ from "./sortable-item.vue2.mjs";
|
|
11
|
+
const W = /* @__PURE__ */ S({
|
|
12
12
|
name: "ApFormSearchFormPopoverSorter",
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
15
15
|
children: {},
|
|
16
|
-
onClickConfirm: { type: Function }
|
|
16
|
+
onClickConfirm: { type: Function },
|
|
17
|
+
sorted: { type: Boolean }
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
setup(w) {
|
|
20
|
+
const l = w, c = C(l.children);
|
|
21
|
+
let v = [...l.children], g = [...l.children];
|
|
22
|
+
k(
|
|
23
|
+
() => l.children,
|
|
24
|
+
(t) => {
|
|
25
|
+
l.sorted || (c.value = t, g = t, v = t);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const { e: f, b: y } = F("ap-form-search-form"), { b: n } = F("search-form-sorter"), { t: i } = R(), p = C(!1);
|
|
29
|
+
function x(t) {
|
|
30
|
+
return t.closest(".ant-form") || document.body;
|
|
24
31
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
32
|
+
function B() {
|
|
33
|
+
p.value = !1, v = [...e(c)], l.onClickConfirm(e(c));
|
|
27
34
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
35
|
+
function N() {
|
|
36
|
+
c.value = [...g];
|
|
30
37
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
38
|
+
function T(t) {
|
|
39
|
+
return L(t.props.name);
|
|
33
40
|
}
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
return k(
|
|
42
|
+
() => p.value,
|
|
43
|
+
(t) => {
|
|
44
|
+
t && (c.value = [...v]);
|
|
45
|
+
}
|
|
46
|
+
), (t, u) => (P(), D(e(V), {
|
|
47
|
+
open: p.value,
|
|
48
|
+
"onUpdate:open": u[1] || (u[1] = (d) => p.value = d),
|
|
49
|
+
"overlay-class-name": e(f)("popover"),
|
|
38
50
|
trigger: "click",
|
|
39
51
|
placement: "bottom",
|
|
40
52
|
mask: "",
|
|
41
53
|
"mask-style": { backgroundColor: "transparent" },
|
|
42
|
-
"get-popup-container":
|
|
54
|
+
"get-popup-container": x
|
|
43
55
|
}, {
|
|
44
|
-
content:
|
|
45
|
-
|
|
46
|
-
class: r(e(
|
|
56
|
+
content: a(() => [
|
|
57
|
+
s("div", {
|
|
58
|
+
class: r(e(n)("header"))
|
|
47
59
|
}, [
|
|
48
|
-
|
|
49
|
-
class: r(e(
|
|
50
|
-
},
|
|
51
|
-
o(e(
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
class: r(e(
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
class: r(e(
|
|
58
|
-
onClick:
|
|
60
|
+
s("span", {
|
|
61
|
+
class: r(e(n)("header-title"))
|
|
62
|
+
}, m(e(i)("ap.apForm.search.sorterTitle")), 3),
|
|
63
|
+
o(e(_), { justify: "space-between" }, {
|
|
64
|
+
default: a(() => [
|
|
65
|
+
s("span", {
|
|
66
|
+
class: r(e(n)("header-desc"))
|
|
67
|
+
}, m(e(i)("ap.apForm.search.sorterDesc")), 3),
|
|
68
|
+
s("div", {
|
|
69
|
+
class: r(e(n)("header-action-wrapper")),
|
|
70
|
+
onClick: N
|
|
59
71
|
}, [
|
|
60
|
-
|
|
61
|
-
class: r(e(
|
|
62
|
-
},
|
|
72
|
+
s("span", {
|
|
73
|
+
class: r(e(n)("header-reset-btn"))
|
|
74
|
+
}, m(e(i)("ap.apForm.search.sorterReset")), 3)
|
|
63
75
|
], 2)
|
|
64
76
|
]),
|
|
65
77
|
_: 1
|
|
66
78
|
})
|
|
67
79
|
], 2),
|
|
68
|
-
|
|
69
|
-
class: r([e(
|
|
80
|
+
s("div", {
|
|
81
|
+
class: r([e(f)("popover-content"), e(n)("content")])
|
|
70
82
|
}, [
|
|
71
|
-
o(e(
|
|
72
|
-
list:
|
|
73
|
-
class: r(e(
|
|
74
|
-
"item-key":
|
|
83
|
+
o(e(I), {
|
|
84
|
+
list: c.value,
|
|
85
|
+
class: r(e(n)("sorter-wrapper")),
|
|
86
|
+
"item-key": T
|
|
75
87
|
}, {
|
|
76
|
-
item:
|
|
77
|
-
o(
|
|
88
|
+
item: a(({ element: d }) => [
|
|
89
|
+
o($, { item: d }, null, 8, ["item"])
|
|
78
90
|
]),
|
|
79
91
|
_: 1
|
|
80
92
|
}, 8, ["list", "class"])
|
|
81
93
|
], 2),
|
|
82
|
-
o(e(
|
|
83
|
-
|
|
84
|
-
class: r(e(
|
|
94
|
+
o(e(z), { style: { margin: "0" } }),
|
|
95
|
+
s("div", {
|
|
96
|
+
class: r(e(f)("popover-footer"))
|
|
85
97
|
}, [
|
|
86
|
-
o(e(
|
|
87
|
-
default:
|
|
88
|
-
o(e(
|
|
89
|
-
onClick:
|
|
98
|
+
o(e(_), { justify: "end" }, {
|
|
99
|
+
default: a(() => [
|
|
100
|
+
o(e(h), {
|
|
101
|
+
onClick: u[0] || (u[0] = (d) => p.value = !1)
|
|
90
102
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
|
|
103
|
+
default: a(() => [
|
|
104
|
+
b(m(e(i)("ap.common.cancelText")), 1)
|
|
93
105
|
]),
|
|
94
106
|
_: 1
|
|
95
107
|
}),
|
|
96
|
-
o(e(
|
|
97
|
-
class: r(e(
|
|
108
|
+
o(e(h), {
|
|
109
|
+
class: r(e(f)("popover-footer-confirm-btn")),
|
|
98
110
|
type: "primary",
|
|
99
|
-
onClick:
|
|
111
|
+
onClick: B
|
|
100
112
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
113
|
+
default: a(() => [
|
|
114
|
+
b(m(e(i)("ap.apForm.search.sorterConfirmBtn")), 1)
|
|
103
115
|
]),
|
|
104
116
|
_: 1
|
|
105
117
|
}, 8, ["class"])
|
|
@@ -108,18 +120,20 @@ const J = /* @__PURE__ */ T({
|
|
|
108
120
|
})
|
|
109
121
|
], 2)
|
|
110
122
|
]),
|
|
111
|
-
default:
|
|
112
|
-
o(e(
|
|
113
|
-
title: e(
|
|
123
|
+
default: a(() => [
|
|
124
|
+
o(e(j), {
|
|
125
|
+
title: e(i)("ap.apForm.search.sorterTitle"),
|
|
114
126
|
placement: "top"
|
|
115
127
|
}, {
|
|
116
|
-
default:
|
|
117
|
-
o(e(
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
default: a(() => [
|
|
129
|
+
o(e(h), {
|
|
130
|
+
class: r([e(y)("trigger-btn"), { [e(y)("trigger-btn-active")]: p.value }])
|
|
131
|
+
}, {
|
|
132
|
+
icon: a(() => [
|
|
133
|
+
o(e(A), { size: 14 })
|
|
120
134
|
]),
|
|
121
135
|
_: 1
|
|
122
|
-
})
|
|
136
|
+
}, 8, ["class"])
|
|
123
137
|
]),
|
|
124
138
|
_: 1
|
|
125
139
|
}, 8, ["title"])
|
|
@@ -129,5 +143,5 @@ const J = /* @__PURE__ */ T({
|
|
|
129
143
|
}
|
|
130
144
|
});
|
|
131
145
|
export {
|
|
132
|
-
|
|
146
|
+
W as default
|
|
133
147
|
};
|
|
@@ -383,7 +383,9 @@ declare function __VLS_template(): {
|
|
|
383
383
|
default: string | number | ColSize;
|
|
384
384
|
};
|
|
385
385
|
xxl: {
|
|
386
|
-
type: PropType<string | number |
|
|
386
|
+
type: PropType<string | number | **
|
|
387
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
388
|
+
*/).ColSize>;
|
|
387
389
|
default: string | number | ColSize;
|
|
388
390
|
};
|
|
389
391
|
prefixCls: StringConstructor;
|
|
@@ -1218,7 +1220,9 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1218
1220
|
default: string | number | ColSize;
|
|
1219
1221
|
};
|
|
1220
1222
|
xxl: {
|
|
1221
|
-
type: PropType<string | number |
|
|
1223
|
+
type: PropType<string | number | **
|
|
1224
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
1225
|
+
*/).ColSize>;
|
|
1222
1226
|
default: string | number | ColSize;
|
|
1223
1227
|
};
|
|
1224
1228
|
prefixCls: StringConstructor;
|