@aplus-frontend/ui 0.0.6 → 0.0.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.
Files changed (103) hide show
  1. package/es/index.mjs +129 -119
  2. package/es/src/ap-field/checkbox/index.vue.mjs +8 -8
  3. package/es/src/ap-field/date/index.vue.d.ts +2 -2
  4. package/es/src/ap-field/date/index.vue.mjs +1 -1
  5. package/es/src/ap-field/date-range/index.vue.d.ts +6 -2
  6. package/es/src/ap-field/date-range/index.vue.mjs +46 -44
  7. package/es/src/ap-field/index.d.ts +8 -2
  8. package/es/src/ap-field/index.mjs +27 -16
  9. package/es/src/ap-field/interface.d.ts +29 -1
  10. package/es/src/ap-field/rate/index.vue.d.ts +64 -0
  11. package/es/src/ap-field/rate/index.vue.mjs +64 -0
  12. package/es/src/ap-field/rate/index.vue2.mjs +4 -0
  13. package/es/src/ap-field/segmented/index.vue.d.ts +54 -0
  14. package/es/src/ap-field/segmented/index.vue.mjs +81 -0
  15. package/es/src/ap-field/segmented/index.vue2.mjs +4 -0
  16. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  17. package/es/src/ap-field/select/index.vue.mjs +4 -4
  18. package/es/src/ap-field/slider/index.vue.d.ts +64 -0
  19. package/es/src/ap-field/slider/index.vue.mjs +90 -0
  20. package/es/src/ap-field/slider/index.vue2.mjs +4 -0
  21. package/es/src/ap-field/switch/index.vue.mjs +7 -7
  22. package/es/src/ap-field/text/index.d.ts +8 -0
  23. package/es/src/ap-field/text/index.mjs +10 -0
  24. package/es/src/ap-field/text/index.vue.d.ts +2 -2
  25. package/es/src/ap-field/text/index.vue.mjs +2 -131
  26. package/es/src/ap-field/text/index.vue2.mjs +131 -2
  27. package/es/src/ap-field/text/input-password-props.d.ts +13 -0
  28. package/es/src/ap-field/text/password.vue.d.ts +74 -0
  29. package/es/src/ap-field/text/password.vue.mjs +152 -0
  30. package/es/src/ap-field/text/password.vue2.mjs +4 -0
  31. package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
  32. package/es/src/ap-field/text-area/index.vue.mjs +1 -1
  33. package/es/src/ap-form/items/index.d.ts +2 -2
  34. package/es/src/ap-form/items/index.mjs +4 -1
  35. package/es/src/ap-form/items/interface.d.ts +6 -1
  36. package/es/src/ap-form/items/text/index.d.ts +8 -0
  37. package/es/src/ap-form/items/text/index.mjs +10 -0
  38. package/es/src/ap-form/items/text/index.vue.mjs +2 -93
  39. package/es/src/ap-form/items/text/index.vue2.mjs +93 -2
  40. package/es/src/ap-form/items/text/password.vue.d.ts +63 -0
  41. package/es/src/ap-form/items/text/password.vue.mjs +83 -0
  42. package/es/src/ap-form/items/text/password.vue2.mjs +4 -0
  43. package/es/src/ap-form/search-form/index.vue.mjs +53 -53
  44. package/es/src/ap-table/ap-table.vue.d.ts +2 -1
  45. package/es/src/ap-table/ap-table.vue.mjs +71 -70
  46. package/es/src/ap-table/constants.d.ts +4644 -1597
  47. package/es/src/ap-table/constants.mjs +40 -37
  48. package/es/src/ap-table/hooks/use-table-paging.mjs +14 -14
  49. package/es/src/ap-table/interface.d.ts +11 -3
  50. package/es/src/ap-table/utils.d.ts +1 -1
  51. package/es/src/index.mjs +112 -102
  52. package/lib/index.js +1 -1
  53. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  54. package/lib/src/ap-field/date/index.vue.d.ts +2 -2
  55. package/lib/src/ap-field/date/index.vue.js +1 -1
  56. package/lib/src/ap-field/date-range/index.vue.d.ts +6 -2
  57. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  58. package/lib/src/ap-field/index.d.ts +8 -2
  59. package/lib/src/ap-field/index.js +1 -1
  60. package/lib/src/ap-field/interface.d.ts +29 -1
  61. package/lib/src/ap-field/rate/index.vue.d.ts +64 -0
  62. package/lib/src/ap-field/rate/index.vue.js +1 -0
  63. package/lib/src/ap-field/rate/index.vue2.js +1 -0
  64. package/lib/src/ap-field/segmented/index.vue.d.ts +54 -0
  65. package/lib/src/ap-field/segmented/index.vue.js +1 -0
  66. package/lib/src/ap-field/segmented/index.vue2.js +1 -0
  67. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  68. package/lib/src/ap-field/select/index.vue.js +1 -1
  69. package/lib/src/ap-field/slider/index.vue.d.ts +64 -0
  70. package/lib/src/ap-field/slider/index.vue.js +1 -0
  71. package/lib/src/ap-field/slider/index.vue2.js +1 -0
  72. package/lib/src/ap-field/switch/index.vue.js +1 -1
  73. package/lib/src/ap-field/text/index.d.ts +8 -0
  74. package/lib/src/ap-field/text/index.js +1 -0
  75. package/lib/src/ap-field/text/index.vue.d.ts +2 -2
  76. package/lib/src/ap-field/text/index.vue.js +1 -1
  77. package/lib/src/ap-field/text/index.vue2.js +1 -1
  78. package/lib/src/ap-field/text/input-password-props.d.ts +13 -0
  79. package/lib/src/ap-field/text/password.vue.d.ts +74 -0
  80. package/lib/src/ap-field/text/password.vue.js +1 -0
  81. package/lib/src/ap-field/text/password.vue2.js +1 -0
  82. package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
  83. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  84. package/lib/src/ap-form/items/index.d.ts +2 -2
  85. package/lib/src/ap-form/items/index.js +1 -1
  86. package/lib/src/ap-form/items/interface.d.ts +6 -1
  87. package/lib/src/ap-form/items/text/index.d.ts +8 -0
  88. package/lib/src/ap-form/items/text/index.js +1 -0
  89. package/lib/src/ap-form/items/text/index.vue.js +1 -1
  90. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  91. package/lib/src/ap-form/items/text/password.vue.d.ts +63 -0
  92. package/lib/src/ap-form/items/text/password.vue.js +1 -0
  93. package/lib/src/ap-form/items/text/password.vue2.js +1 -0
  94. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  95. package/lib/src/ap-table/ap-table.vue.d.ts +2 -1
  96. package/lib/src/ap-table/ap-table.vue.js +1 -1
  97. package/lib/src/ap-table/constants.d.ts +4644 -1597
  98. package/lib/src/ap-table/constants.js +1 -1
  99. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  100. package/lib/src/ap-table/interface.d.ts +11 -3
  101. package/lib/src/ap-table/utils.d.ts +1 -1
  102. package/lib/src/index.js +1 -1
  103. package/package.json +3 -3
@@ -1,95 +1,4 @@
1
- import { defineComponent as m, ref as b, computed as v, openBlock as h, createBlock as y, normalizeProps as r, guardReactiveProps as s, unref as n, withCtx as d, createVNode as B, mergeProps as g, createSlots as x, renderList as S, renderSlot as _ } from "vue";
2
- import "../../ap-form-item.vue2.mjs";
3
- import { ApField as R } from "../../../ap-field/index.mjs";
4
- import { omit as k } from "lodash-unified";
5
- import C from "../../ap-form-item.vue.mjs";
6
- const q = /* @__PURE__ */ m({
7
- name: "ApFormItemText",
8
- __name: "index",
9
- props: {
10
- htmlFor: {},
11
- prefixCls: {},
12
- label: {},
13
- help: {},
14
- extra: {},
15
- labelCol: {},
16
- wrapperCol: {},
17
- hasFeedback: { type: Boolean, default: !1 },
18
- colon: { type: Boolean, default: void 0 },
19
- labelAlign: {},
20
- prop: {},
21
- name: {},
22
- rules: {},
23
- autoLink: { type: Boolean, default: !0 },
24
- required: { type: Boolean, default: void 0 },
25
- validateFirst: { type: Boolean, default: void 0 },
26
- validateStatus: {},
27
- validateTrigger: {},
28
- messageVariables: {},
29
- hidden: { type: Boolean },
30
- noStyle: { type: Boolean },
31
- tooltip: {},
32
- span: {},
33
- order: {},
34
- offset: {},
35
- push: {},
36
- pull: {},
37
- xs: {},
38
- sm: {},
39
- md: {},
40
- lg: {},
41
- xl: {},
42
- xxl: {},
43
- flex: {},
44
- bordered: { type: Boolean },
45
- valuePropName: {},
46
- field: { default: () => ({}) },
47
- placeholder: {},
48
- disabled: { type: Boolean, default: !1 }
49
- },
50
- setup(p, { expose: i }) {
51
- const { Text: u } = R, f = p, l = b();
52
- return i({
53
- focus: (e) => {
54
- var o;
55
- (o = l.value) == null || o.focus(e);
56
- },
57
- blur: () => {
58
- var e;
59
- (e = l.value) == null || e.blur();
60
- },
61
- setSelectionRange: (e, o, a) => {
62
- var t;
63
- (t = l.value) == null || t.setSelectionRange(e, o, a);
64
- },
65
- select: () => {
66
- var e;
67
- (e = l.value) == null || e.select();
68
- },
69
- input: v(() => {
70
- var e;
71
- return (e = l.value) == null ? void 0 : e.input;
72
- })
73
- }), (e, o) => (h(), y(C, r(s(n(k)(f, ["field", "disabled", "placeholder"]))), {
74
- default: d(() => [
75
- B(n(u), g({
76
- ref_key: "inputRef",
77
- ref: l,
78
- disabled: e.disabled,
79
- placeholder: e.placeholder
80
- }, e.field), x({ _: 2 }, [
81
- S(e.$slots, (a, t) => ({
82
- name: t,
83
- fn: d((c) => [
84
- _(e.$slots, t, r(s(c || {})))
85
- ])
86
- }))
87
- ]), 1040, ["disabled", "placeholder"])
88
- ]),
89
- _: 3
90
- }, 16));
91
- }
92
- });
1
+ import f from "./index.vue2.mjs";
93
2
  export {
94
- q as default
3
+ f as default
95
4
  };
@@ -1,4 +1,95 @@
1
- import f from "./index.vue.mjs";
1
+ import { defineComponent as m, ref as b, computed as v, openBlock as h, createBlock as y, normalizeProps as r, guardReactiveProps as s, unref as n, withCtx as d, createVNode as B, mergeProps as g, createSlots as x, renderList as S, renderSlot as _ } from "vue";
2
+ import "../../ap-form-item.vue2.mjs";
3
+ import { ApField as R } from "../../../ap-field/index.mjs";
4
+ import { omit as k } from "lodash-unified";
5
+ import C from "../../ap-form-item.vue.mjs";
6
+ const q = /* @__PURE__ */ m({
7
+ name: "ApFormItemText",
8
+ __name: "index",
9
+ props: {
10
+ htmlFor: {},
11
+ prefixCls: {},
12
+ label: {},
13
+ help: {},
14
+ extra: {},
15
+ labelCol: {},
16
+ wrapperCol: {},
17
+ hasFeedback: { type: Boolean, default: !1 },
18
+ colon: { type: Boolean, default: void 0 },
19
+ labelAlign: {},
20
+ prop: {},
21
+ name: {},
22
+ rules: {},
23
+ autoLink: { type: Boolean, default: !0 },
24
+ required: { type: Boolean, default: void 0 },
25
+ validateFirst: { type: Boolean, default: void 0 },
26
+ validateStatus: {},
27
+ validateTrigger: {},
28
+ messageVariables: {},
29
+ hidden: { type: Boolean },
30
+ noStyle: { type: Boolean },
31
+ tooltip: {},
32
+ span: {},
33
+ order: {},
34
+ offset: {},
35
+ push: {},
36
+ pull: {},
37
+ xs: {},
38
+ sm: {},
39
+ md: {},
40
+ lg: {},
41
+ xl: {},
42
+ xxl: {},
43
+ flex: {},
44
+ bordered: { type: Boolean },
45
+ valuePropName: {},
46
+ field: { default: () => ({}) },
47
+ placeholder: {},
48
+ disabled: { type: Boolean, default: !1 }
49
+ },
50
+ setup(p, { expose: i }) {
51
+ const { Text: u } = R, f = p, l = b();
52
+ return i({
53
+ focus: (e) => {
54
+ var o;
55
+ (o = l.value) == null || o.focus(e);
56
+ },
57
+ blur: () => {
58
+ var e;
59
+ (e = l.value) == null || e.blur();
60
+ },
61
+ setSelectionRange: (e, o, a) => {
62
+ var t;
63
+ (t = l.value) == null || t.setSelectionRange(e, o, a);
64
+ },
65
+ select: () => {
66
+ var e;
67
+ (e = l.value) == null || e.select();
68
+ },
69
+ input: v(() => {
70
+ var e;
71
+ return (e = l.value) == null ? void 0 : e.input;
72
+ })
73
+ }), (e, o) => (h(), y(C, r(s(n(k)(f, ["field", "disabled", "placeholder"]))), {
74
+ default: d(() => [
75
+ B(n(u), g({
76
+ ref_key: "inputRef",
77
+ ref: l,
78
+ disabled: e.disabled,
79
+ placeholder: e.placeholder
80
+ }, e.field), x({ _: 2 }, [
81
+ S(e.$slots, (a, t) => ({
82
+ name: t,
83
+ fn: d((c) => [
84
+ _(e.$slots, t, r(s(c || {})))
85
+ ])
86
+ }))
87
+ ]), 1040, ["disabled", "placeholder"])
88
+ ]),
89
+ _: 3
90
+ }, 16));
91
+ }
92
+ });
2
93
  export {
3
- f as default
94
+ q as default
4
95
  };
@@ -0,0 +1,63 @@
1
+ import { ApFormItemTextPasswordProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ import { ApFieldTextPasswordProps } from '../../../ap-field';
4
+
5
+ type ApFormItemTextSlots = {
6
+ addonAfter: any;
7
+ addonBefore: any;
8
+ prefix: any;
9
+ suffix: any;
10
+ clearIcon: any;
11
+ iconRender: any;
12
+ };
13
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextPasswordProps>, {
14
+ hasFeedback: boolean;
15
+ colon: undefined;
16
+ autoLink: boolean;
17
+ required: undefined;
18
+ validateFirst: undefined;
19
+ disabled: boolean;
20
+ field: () => {};
21
+ }>, {
22
+ focus: () => void;
23
+ blur: () => void;
24
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemTextPasswordProps>, {
25
+ hasFeedback: boolean;
26
+ colon: undefined;
27
+ autoLink: boolean;
28
+ required: undefined;
29
+ validateFirst: undefined;
30
+ disabled: boolean;
31
+ field: () => {};
32
+ }>>>, {
33
+ disabled: boolean;
34
+ required: boolean;
35
+ field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
36
+ colon: boolean;
37
+ hasFeedback: boolean;
38
+ autoLink: boolean;
39
+ validateFirst: boolean;
40
+ }, {}>, Readonly<ApFormItemTextSlots> & ApFormItemTextSlots>;
41
+ export default _default;
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ type __VLS_WithDefaults<P, D> = {
52
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
+ default: D[K];
54
+ }> : P[K];
55
+ };
56
+ type __VLS_Prettify<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,83 @@
1
+ import { defineComponent as m, useSlots as c, ref as b, openBlock as h, createBlock as y, normalizeProps as a, guardReactiveProps as r, unref as t, withCtx as s, createVNode as B, mergeProps as v, createSlots as x, renderList as _, renderSlot as g } from "vue";
2
+ import "../../ap-form-item.vue2.mjs";
3
+ import { ApField as k } from "../../../ap-field/index.mjs";
4
+ import { omit as C } from "lodash-unified";
5
+ import F from "../../ap-form-item.vue.mjs";
6
+ const $ = /* @__PURE__ */ m({
7
+ name: "ApFormItemText",
8
+ __name: "password",
9
+ props: {
10
+ htmlFor: {},
11
+ prefixCls: {},
12
+ label: {},
13
+ help: {},
14
+ extra: {},
15
+ labelCol: {},
16
+ wrapperCol: {},
17
+ hasFeedback: { type: Boolean, default: !1 },
18
+ colon: { type: Boolean, default: void 0 },
19
+ labelAlign: {},
20
+ prop: {},
21
+ name: {},
22
+ rules: {},
23
+ autoLink: { type: Boolean, default: !0 },
24
+ required: { type: Boolean, default: void 0 },
25
+ validateFirst: { type: Boolean, default: void 0 },
26
+ validateStatus: {},
27
+ validateTrigger: {},
28
+ messageVariables: {},
29
+ hidden: { type: Boolean },
30
+ noStyle: { type: Boolean },
31
+ tooltip: {},
32
+ span: {},
33
+ order: {},
34
+ offset: {},
35
+ push: {},
36
+ pull: {},
37
+ xs: {},
38
+ sm: {},
39
+ md: {},
40
+ lg: {},
41
+ xl: {},
42
+ xxl: {},
43
+ flex: {},
44
+ bordered: { type: Boolean },
45
+ valuePropName: {},
46
+ field: { default: () => ({}) },
47
+ placeholder: {},
48
+ disabled: { type: Boolean, default: !1 }
49
+ },
50
+ setup(d, { expose: p }) {
51
+ const { Text: n } = k, i = c(), f = d, o = b();
52
+ return p({
53
+ focus: () => {
54
+ var e;
55
+ (e = o.value) == null || e.focus();
56
+ },
57
+ blur: () => {
58
+ var e;
59
+ (e = o.value) == null || e.blur();
60
+ }
61
+ }), (e, w) => (h(), y(F, a(r(t(C)(f, ["field", "disabled", "placeholder"]))), {
62
+ default: s(() => [
63
+ B(t(n).Password, v({
64
+ ref_key: "inputRef",
65
+ ref: o,
66
+ disabled: e.disabled,
67
+ placeholder: e.placeholder
68
+ }, e.field), x({ _: 2 }, [
69
+ _(i, (A, l) => ({
70
+ name: l,
71
+ fn: s((u) => [
72
+ g(e.$slots, l, a(r(u || {})))
73
+ ])
74
+ }))
75
+ ]), 1040, ["disabled", "placeholder"])
76
+ ]),
77
+ _: 3
78
+ }, 16));
79
+ }
80
+ });
81
+ export {
82
+ $ as default
83
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./password.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,10 +1,10 @@
1
- import { isVNode as J, defineComponent as K, useSlots as Q, ref as X, unref as o, shallowRef as v, computed as C, watch as P, cloneVNode as Y, createVNode as a, Fragment as Z, openBlock as k, createBlock as A, mergeProps as ee, withCtx as E, resolveDynamicComponent as te } from "vue";
2
- import { Flex as N, Space as oe, Button as y } from "ant-design-vue";
1
+ import { isVNode as J, defineComponent as K, useSlots as Q, ref as X, unref as o, shallowRef as P, computed as C, watch as k, cloneVNode as Y, createVNode as a, Fragment as Z, openBlock as A, createBlock as E, mergeProps as ee, withCtx as N, resolveDynamicComponent as te } from "vue";
2
+ import { Flex as T, Space as oe, Button as y } from "ant-design-vue";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../ap-form-item-group/index.vue2.mjs";
5
5
  import "../ap-form-item.vue2.mjs";
6
6
  import "../../hooks/index.mjs";
7
- import { genRealChildren as T } from "../ap-form-item-group/helper.mjs";
7
+ import { genRealChildren as V } from "../ap-form-item-group/helper.mjs";
8
8
  import { DoubleRightOutlined as ae } from "@ant-design/icons-vue";
9
9
  import "../../config-provider/index.mjs";
10
10
  import "../style/search-form.css";
@@ -12,13 +12,13 @@ import { omit as le } from "lodash-unified";
12
12
  import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
13
13
  import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
14
14
  import { useLocale as se } from "../../config-provider/hooks/use-locale.mjs";
15
- import V from "../ap-form-item.vue.mjs";
15
+ import I from "../ap-form-item.vue.mjs";
16
16
  import pe from "../ap-form.vue2.mjs";
17
17
  import ce from "../ap-form-item-group/index.vue.mjs";
18
18
  function ie(i) {
19
19
  return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !J(i);
20
20
  }
21
- const c = 24, Pe = /* @__PURE__ */ K({
21
+ const s = 24, Pe = /* @__PURE__ */ K({
22
22
  name: "ApFormSearchForm",
23
23
  __name: "index",
24
24
  props: {
@@ -98,106 +98,106 @@ const c = 24, Pe = /* @__PURE__ */ K({
98
98
  },
99
99
  emits: ["update:collapse"],
100
100
  setup(i, {
101
- expose: I,
102
- emit: j
101
+ expose: j,
102
+ emit: M
103
103
  }) {
104
104
  var S;
105
- const l = Q(), t = i, M = j, {
106
- value: f,
107
- updateValue: O
108
- } = ne(t, M, {
105
+ const l = Q(), t = i, O = M, {
106
+ value: u,
107
+ updateValue: $
108
+ } = ne(t, O, {
109
109
  valuePropName: "collapse",
110
110
  defaultValuePropName: "defaultCollapse"
111
111
  }), {
112
- b: $
112
+ b: D
113
113
  } = re("ap-form-search-form"), {
114
114
  t: g
115
115
  } = se(), m = X();
116
- function D() {
117
- O(!o(f));
118
- }
119
116
  function L() {
117
+ $(!o(u));
118
+ }
119
+ function q() {
120
120
  var e, n;
121
121
  (n = (e = m.value) == null ? void 0 : e.validateFields()) == null || n.then(t.onSubmit);
122
122
  }
123
- function q() {
124
- var e, n, d;
125
- t.customReset || (n = (e = m.value) == null ? void 0 : e.resetFields) == null || n.call(e), (d = t.onReset) == null || d.call(t);
123
+ function z() {
124
+ var e, n, f;
125
+ t.customReset || (n = (e = m.value) == null ? void 0 : e.resetFields) == null || n.call(e), (f = t.onReset) == null || f.call(t);
126
126
  }
127
- const R = v(T(l.default())), u = v((S = l.extra) == null ? void 0 : S.call(l)), F = C(() => Math.floor(c / t.countPerRow));
128
- P(() => l.default(), (e) => {
129
- R.value = T(e);
130
- }), P(() => {
127
+ const R = P(V(l.default())), d = P((S = l.extra) == null ? void 0 : S.call(l)), F = C(() => Math.floor(s / t.countPerRow));
128
+ k(() => l.default(), (e) => {
129
+ R.value = V(e);
130
+ }), k(() => {
131
131
  var e;
132
132
  return (e = l.extra) == null ? void 0 : e.call(l);
133
133
  }, (e) => {
134
- u.value = e;
134
+ d.value = e;
135
135
  });
136
- const z = C(() => {
136
+ const U = C(() => {
137
137
  let e;
138
- const n = [...o(R)], d = [], b = [], r = o(F);
138
+ const n = [...o(R)], f = [], b = [], r = o(F);
139
139
  let h = 0;
140
- n.forEach((s) => {
141
- const p = s.props;
142
- p != null && p.hidden ? d.push(s) : (h += p.span || r, b.push(s));
140
+ n.forEach((p) => {
141
+ const c = p.props;
142
+ c != null && c.hidden ? f.push(p) : (h += c.span || r, b.push(p));
143
143
  });
144
- const B = c - (h + r) % c, U = B < r ? c : B, x = c - r * (o(u) && !t.extraInAction ? 2 : 1), W = !t.forceExpand && h > x;
144
+ const B = s - (h + r) % s, w = B < r ? s : B, x = s - r * (o(d) && !t.extraInAction ? 2 : 1), W = !t.forceExpand && h > x;
145
145
  let _ = 0;
146
- const G = b.map((s, p) => {
147
- const w = s.props;
148
- return _ += w.span || r, Y(s, {
149
- span: w.span || r,
150
- key: `ApFormSearchFormItem-${p}`,
151
- hidden: !t.forceExpand && o(f) && _ > x
146
+ const G = b.map((p, c) => {
147
+ const v = p.props;
148
+ return _ += v.span || r, Y(p, {
149
+ span: v.span || r,
150
+ key: `ApFormSearchFormItem-${c}`,
151
+ hidden: !t.forceExpand && o(u) && _ > x
152
152
  });
153
- }), H = c - Math.min(x, _) - r;
154
- return a(Z, null, [G, d, a(V, {
153
+ }), H = s - Math.min(x, _) - r;
154
+ return a(Z, null, [G, f, a(I, {
155
155
  span: o(F)
156
156
  }, {
157
- default: () => [a(N, {
157
+ default: () => [a(T, {
158
158
  justify: "space-between"
159
159
  }, {
160
160
  default: () => [a(oe, null, {
161
161
  default: () => [a(y, {
162
162
  type: "primary",
163
- onClick: L,
163
+ onClick: q,
164
164
  loading: t.submitLoading
165
165
  }, {
166
166
  default: () => [t.searchText || g("ap.apForm.search.search")]
167
167
  }), a(y, {
168
- onClick: q
168
+ onClick: z
169
169
  }, {
170
170
  default: () => [t.resetText || g("ap.apForm.search.reset")]
171
171
  }), W ? a(y, {
172
- onClick: D,
172
+ onClick: L,
173
173
  icon: a(ae, {
174
174
  style: "color:#B8C3D1",
175
- rotate: o(f) ? 90 : -90
175
+ rotate: o(u) ? 90 : -90
176
176
  }, null)
177
177
  }, null) : null]
178
- }), t.extraInAction ? o(u) : null]
178
+ }), t.extraInAction ? o(d) : null]
179
179
  })]
180
- }), !t.extraInAction && o(u) ? a(V, {
181
- span: o(f) ? H : U
180
+ }), !t.extraInAction && o(d) ? a(I, {
181
+ span: o(u) ? H : w
182
182
  }, {
183
- default: () => [a(N, {
184
- justify: "end"
185
- }, ie(e = o(u)) ? e : {
183
+ default: () => [a(T, {
184
+ justify: !o(u) && w === s ? "start" : "end"
185
+ }, ie(e = o(d)) ? e : {
186
186
  default: () => [e]
187
187
  })]
188
188
  }) : null]);
189
189
  });
190
- return I({
190
+ return j({
191
191
  apForm: C(() => o(m))
192
- }), (e, n) => (k(), A(pe, ee({
193
- class: o($)(),
192
+ }), (e, n) => (A(), E(pe, ee({
193
+ class: o(D)(),
194
194
  ref_key: "apForm",
195
195
  ref: m
196
196
  }, o(le)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
197
- default: E(() => [a(ce, {
197
+ default: N(() => [a(ce, {
198
198
  "count-per-row": t.countPerRow
199
199
  }, {
200
- default: E(() => [(k(), A(te(z.value)))]),
200
+ default: N(() => [(A(), E(te(U.value)))]),
201
201
  _: 1
202
202
  }, 8, ["count-per-row"])]),
203
203
  _: 1
@@ -1,5 +1,5 @@
1
1
  import { ApTableProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
2
+ import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
3
3
  import { SpinSize } from 'ant-design-vue/es/spin/Spin';
4
4
  import { VueTypeValidableDef } from '../../node_modules/vue-types';
5
5
  import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
@@ -52,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
52
52
  reset: () => void;
53
53
  setSearchFormValues: typeof setSearchFormValues;
54
54
  getSearchFormValues: typeof getSearchFormValues;
55
+ dataSource: ComputedRef<any[]>;
55
56
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTableProps<any, any, "text">>, {
56
57
  bordered: boolean;
57
58
  childrenColumnName: string;