@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.
Files changed (132) hide show
  1. package/es/src/ap-form/interface.d.ts +4 -0
  2. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  3. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
  4. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +89 -75
  5. package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
  6. package/es/src/ap-form/search-form/index.vue.mjs +76 -75
  7. package/es/src/ap-grid/constants.d.ts +3 -3
  8. package/es/src/ap-grid/constants.mjs +9 -9
  9. package/es/src/ap-grid/index.vue.mjs +44 -46
  10. package/es/src/ap-grid/interface.d.ts +1 -1
  11. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
  12. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +1 -1
  13. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  14. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +89 -70
  15. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
  16. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  17. package/es/src/business/ap-label/constans.mjs +1 -1
  18. package/es/src/business/ap-view/ap-view.vue2.mjs +121 -118
  19. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
  20. package/es/src/business/hooks/usePageListApGrid.mjs +1 -1
  21. package/lib/src/ap-form/interface.d.ts +4 -0
  22. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  23. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  24. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  25. package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
  26. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  27. package/lib/src/ap-grid/constants.d.ts +3 -3
  28. package/lib/src/ap-grid/constants.js +1 -1
  29. package/lib/src/ap-grid/index.vue.js +1 -1
  30. package/lib/src/ap-grid/interface.d.ts +1 -1
  31. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
  32. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  33. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  34. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  35. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  36. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  37. package/lib/src/business/ap-label/constans.js +1 -1
  38. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  39. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  40. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  41. package/package.json +1 -1
  42. package/theme/ap-action/item-dropdown.css +1 -1
  43. package/theme/ap-action/item.css +2 -2
  44. package/theme/ap-appendix/ap-appendix.css +3 -3
  45. package/theme/ap-appendix/ap-appendix.less +2 -2
  46. package/theme/ap-attachment/ap-attachment.css +3 -2
  47. package/theme/ap-attachment/ap-attachment.less +2 -2
  48. package/theme/ap-batch-action/ap-batch-action.css +1 -1
  49. package/theme/ap-button/ap-button.css +1 -1
  50. package/theme/ap-card/ap-card.css +1 -1
  51. package/theme/ap-descriptions/ap-descriptions.css +1 -1
  52. package/theme/ap-download/ap-download.css +1 -1
  53. package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
  54. package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
  55. package/theme/ap-field/checkbox.css +1 -1
  56. package/theme/ap-field/index.css +1 -1
  57. package/theme/ap-field/number.css +1 -1
  58. package/theme/ap-field/radio.css +1 -1
  59. package/theme/ap-field/text-area.css +1 -1
  60. package/theme/ap-form/ap-form-item-group.css +1 -1
  61. package/theme/ap-form/ap-form-item.css +1 -1
  62. package/theme/ap-form/drawer-form.css +1 -1
  63. package/theme/ap-form/index.css +14 -5
  64. package/theme/ap-form/item-text-group.css +1 -1
  65. package/theme/ap-form/item-text.css +1 -1
  66. package/theme/ap-form/modal-form.css +1 -1
  67. package/theme/ap-form/search-form-sorter.css +6 -5
  68. package/theme/ap-form/search-form-sorter.less +1 -0
  69. package/theme/ap-form/search-form.css +14 -5
  70. package/theme/ap-form/search-form.less +8 -0
  71. package/theme/ap-grid/editable.css +1 -1
  72. package/theme/ap-grid/index.css +26 -7
  73. package/theme/ap-grid/index.less +11 -1
  74. package/theme/ap-group-search/ap-extension-select.css +1 -1
  75. package/theme/ap-group-search/ap-group-search.css +1 -1
  76. package/theme/ap-group-search/ap-popover-select.css +1 -1
  77. package/theme/ap-image/ap-image.css +1 -1
  78. package/theme/ap-input-radio/ap-input-radio.css +1 -1
  79. package/theme/ap-label/ap-label.css +1 -1
  80. package/theme/ap-ladder/ap-ladder.css +2 -1
  81. package/theme/ap-ladder/ap-ladder.less +1 -0
  82. package/theme/ap-layout/ap-info-layout.css +1 -1
  83. package/theme/ap-list/index.css +1 -1
  84. package/theme/ap-product-info/ap-product-info.css +1 -1
  85. package/theme/ap-select-layout/ap-select-layout.css +1 -1
  86. package/theme/ap-size-input/ap-size-input.css +1 -1
  87. package/theme/ap-status/ap-status.css +2 -2
  88. package/theme/ap-status/ap-status.less +1 -1
  89. package/theme/ap-summary/index.css +1 -1
  90. package/theme/ap-table/ap-table-index.css +1 -1
  91. package/theme/ap-table/ap-table-paragraph-ellipsis.css +1 -1
  92. package/theme/ap-table/ap-table.css +20 -12
  93. package/theme/ap-table/ap-table.less +4 -4
  94. package/theme/ap-table/setting/index.css +2 -3
  95. package/theme/ap-table/setting/modal.css +2 -2
  96. package/theme/ap-table/setting/select-group.css +1 -1
  97. package/theme/ap-table/setting/sortable-item-meta.css +1 -1
  98. package/theme/ap-table/setting/sortable-item.css +1 -1
  99. package/theme/ap-table/setting/sorter.css +1 -2
  100. package/theme/ap-table-modal/index.css +20 -12
  101. package/theme/ap-tag/ap-tag-group.css +3 -3
  102. package/theme/ap-tag/ap-tag-group.less +2 -3
  103. package/theme/ap-tag/ap-tag.css +4 -4
  104. package/theme/ap-tag/ap-tag.less +3 -3
  105. package/theme/ap-title/ap-title.css +6 -4
  106. package/theme/ap-title/ap-title.less +5 -3
  107. package/theme/ap-upload/index.css +6 -6
  108. package/theme/ap-upload/multiple-file.css +2 -2
  109. package/theme/ap-upload/multiple-file.less +1 -1
  110. package/theme/ap-upload/picture.css +3 -3
  111. package/theme/ap-upload/picture.less +2 -2
  112. package/theme/ap-upload/single-file.css +3 -3
  113. package/theme/ap-upload/single-file.less +2 -2
  114. package/theme/ap-upload/upload.css +1 -1
  115. package/theme/ap-upload-single/index.css +1 -1
  116. package/theme/ap-view/ap-view.css +1 -1
  117. package/theme/batch-input-group/index.css +2 -1
  118. package/theme/batch-input-group/popover-input.css +2 -1
  119. package/theme/batch-input-group/popover-input.less +1 -0
  120. package/theme/check-card/index.css +4 -4
  121. package/theme/editable-table/index.css +15 -6
  122. package/theme/full-screen/index.css +1 -1
  123. package/theme/index.css +60 -37
  124. package/theme/mask/index.css +1 -1
  125. package/theme/mixins/config.less +1 -1
  126. package/theme/mixins/mixins.css +1 -1
  127. package/theme/scroll-bar/index.css +1 -1
  128. package/theme/scroll-view/index.css +1 -1
  129. package/theme/splitter/index.css +3 -3
  130. package/theme/text/group.css +1 -1
  131. package/theme/text/index.css +2 -2
  132. 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
- declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormPopoverFilterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
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 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
- import { IconApFilterOutlined as w } from "@aplus-frontend/icon";
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 D } from "../../../config-provider/hooks/use-namespace.mjs";
6
- import { useLocale as P } from "../../../config-provider/hooks/use-locale.mjs";
7
- const O = /* @__PURE__ */ y({
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(T) {
16
- const { e: a } = D("ap-form-search-form"), { t: i } = P(), m = k(!1);
17
- function g(n) {
18
- return n.closest(".ant-form") || document.body;
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 (n, p) => (l(), s(e(B), {
21
- open: m.value,
22
- "onUpdate:open": p[1] || (p[1] = (r) => m.value = r),
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": g
28
+ "get-popup-container": b
29
29
  }, {
30
30
  content: o(() => [
31
- d("div", {
32
- class: c([e(a)("popover-content")]),
31
+ g("div", {
32
+ class: s([e(a)("popover-content")]),
33
33
  style: { paddingBottom: "4px", width: "825px" }
34
34
  }, [
35
- t(e(h), { gutter: 16 }, {
35
+ t(e(N), { gutter: 8 }, {
36
36
  default: o(() => [
37
- (l(!0), C(F, null, _(n.config, (r) => (l(), s(e(L), {
38
- key: r.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
- (l(), s(b(r.node)))
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(N), { style: { margin: "0" } }),
51
- d("div", {
52
- class: c(e(a)("popover-footer"))
50
+ t(e(w), { style: { margin: "0" } }),
51
+ g("div", {
52
+ class: s(e(a)("popover-footer"))
53
53
  }, [
54
- t(e(S), { justify: "end" }, {
54
+ t(e(D), { justify: "end" }, {
55
55
  default: o(() => [
56
56
  t(e(u), {
57
- onClick: p[0] || (p[0] = (r) => m.value = !1)
57
+ onClick: p[0] || (p[0] = (n) => l.value = !1)
58
58
  }, {
59
59
  default: o(() => [
60
- f(v(e(i)("ap.common.cancelText")), 1)
60
+ v(y(e(m)("ap.common.cancelText")), 1)
61
61
  ]),
62
62
  _: 1
63
63
  }),
64
64
  t(e(u), {
65
- class: c(e(a)("popover-footer-confirm-btn")),
65
+ class: s(e(a)("popover-footer-confirm-btn")),
66
66
  type: "primary",
67
- loading: n.submitLoading,
68
- onClick: n.onSubmit
67
+ loading: r.submitLoading,
68
+ onClick: r.onSubmit
69
69
  }, {
70
70
  default: o(() => [
71
- f(v(e(i)("ap.apForm.search.search")), 1)
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(x), {
82
- title: e(i)("ap.apForm.search.moreFilter"),
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), null, {
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(w))
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
- O as default
105
+ U as default
102
106
  };
@@ -1,105 +1,117 @@
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
- import { IconApLayoutOutlined as P } from "@aplus-frontend/icon";
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 V from "vuedraggable";
5
+ import I from "vuedraggable";
6
6
  import "./sortable-item.vue.mjs";
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({
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(k) {
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;
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 b() {
26
- i.value = !1, console.log(e(p)), d.onClickConfirm(e(p));
32
+ function B() {
33
+ p.value = !1, v = [...e(c)], l.onClickConfirm(e(c));
27
34
  }
28
- function x() {
29
- p.value = [..._];
35
+ function N() {
36
+ c.value = [...g];
30
37
  }
31
- function N(m) {
32
- return j(m.props.name);
38
+ function T(t) {
39
+ return L(t.props.name);
33
40
  }
34
- return (m, f) => (B(), w(e(S), {
35
- open: i.value,
36
- "onUpdate:open": f[1] || (f[1] = (u) => i.value = u),
37
- "overlay-class-name": e(c)("popover"),
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": F
54
+ "get-popup-container": x
43
55
  }, {
44
- content: t(() => [
45
- n("div", {
46
- class: r(e(a)("header"))
56
+ content: a(() => [
57
+ s("div", {
58
+ class: r(e(n)("header"))
47
59
  }, [
48
- n("span", {
49
- class: r(e(a)("header-title"))
50
- }, l(e(s)("ap.apForm.search.sorterTitle")), 3),
51
- o(e(C), { justify: "space-between" }, {
52
- default: t(() => [
53
- n("span", {
54
- class: r(e(a)("header-desc"))
55
- }, l(e(s)("ap.apForm.search.sorterDesc")), 3),
56
- n("div", {
57
- class: r(e(a)("header-action-wrapper")),
58
- onClick: x
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
- n("span", {
61
- class: r(e(a)("header-reset-btn"))
62
- }, l(e(s)("ap.apForm.search.sorterReset")), 3)
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
- n("div", {
69
- class: r([e(c)("popover-content"), e(a)("content")])
80
+ s("div", {
81
+ class: r([e(f)("popover-content"), e(n)("content")])
70
82
  }, [
71
- o(e(V), {
72
- list: p.value,
73
- class: r(e(a)("sorter-wrapper")),
74
- "item-key": N
83
+ o(e(I), {
84
+ list: c.value,
85
+ class: r(e(n)("sorter-wrapper")),
86
+ "item-key": T
75
87
  }, {
76
- item: t(({ element: u }) => [
77
- o(I, { item: u }, null, 8, ["item"])
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(L), { style: { margin: "0" } }),
83
- n("div", {
84
- class: r(e(c)("popover-footer"))
94
+ o(e(z), { style: { margin: "0" } }),
95
+ s("div", {
96
+ class: r(e(f)("popover-footer"))
85
97
  }, [
86
- o(e(C), { justify: "end" }, {
87
- default: t(() => [
88
- o(e(v), {
89
- onClick: f[0] || (f[0] = (u) => i.value = !1)
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: t(() => [
92
- y(l(e(s)("ap.common.cancelText")), 1)
103
+ default: a(() => [
104
+ b(m(e(i)("ap.common.cancelText")), 1)
93
105
  ]),
94
106
  _: 1
95
107
  }),
96
- o(e(v), {
97
- class: r(e(c)("popover-footer-confirm-btn")),
108
+ o(e(h), {
109
+ class: r(e(f)("popover-footer-confirm-btn")),
98
110
  type: "primary",
99
- onClick: b
111
+ onClick: B
100
112
  }, {
101
- default: t(() => [
102
- y(l(e(s)("ap.apForm.search.sorterConfirmBtn")), 1)
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: t(() => [
112
- o(e(D), {
113
- title: e(s)("ap.apForm.search.sorterTitle"),
123
+ default: a(() => [
124
+ o(e(j), {
125
+ title: e(i)("ap.apForm.search.sorterTitle"),
114
126
  placement: "top"
115
127
  }, {
116
- default: t(() => [
117
- o(e(v), null, {
118
- icon: t(() => [
119
- o(e(P))
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
- J as default
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 | ColSize>;
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 | ColSize>;
1223
+ type: PropType<string | number | **
1224
+ * extra区域展开占据的span数(占据剩余所有空间)
1225
+ */).ColSize>;
1222
1226
  default: string | number | ColSize;
1223
1227
  };
1224
1228
  prefixCls: StringConstructor;