@aplus-frontend/ui 0.2.20 → 0.2.22

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 (73) hide show
  1. package/es/index.mjs +95 -93
  2. package/es/src/ap-descriptions/help-message/index.vue2.mjs +18 -18
  3. package/es/src/ap-drawer/index.d.ts +8 -0
  4. package/es/src/ap-drawer/index.mjs +10 -0
  5. package/es/src/ap-drawer/interface.d.ts +16 -0
  6. package/es/src/ap-drawer/interface.mjs +1 -0
  7. package/es/src/ap-drawer/style/css.d.ts +1 -0
  8. package/es/src/ap-drawer/style/css.js +1 -0
  9. package/es/src/ap-drawer/style/index.d.ts +1 -0
  10. package/es/src/ap-drawer/style/index.js +1 -0
  11. package/es/src/ap-drawer/utils/createDrawer.d.ts +2 -0
  12. package/es/src/ap-drawer/utils/createDrawer.mjs +83 -0
  13. package/es/src/ap-drawer/utils/index.d.ts +1 -0
  14. package/es/src/ap-drawer/utils/index.mjs +4 -0
  15. package/es/src/ap-form/interface.d.ts +1 -1
  16. package/es/src/ap-form/item/index.vue.mjs +48 -51
  17. package/es/src/ap-form/items/number/index.vue.d.ts +10 -10
  18. package/es/src/ap-form/items/text/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/items/text/password.vue.d.ts +10 -10
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -9
  21. package/es/src/ap-form/render/control.vue.mjs +7 -7
  22. package/es/src/ap-form/render/item.vue.d.ts +6 -5
  23. package/es/src/ap-form/render/item.vue.mjs +20 -12
  24. package/es/src/ap-form/render/style/css.d.ts +1 -0
  25. package/es/src/ap-form/render/style/css.js +1 -0
  26. package/es/src/ap-form/render/style/style.d.ts +1 -0
  27. package/es/src/ap-list/index.vue.d.ts +10 -2
  28. package/es/src/ap-list/index.vue.mjs +135 -85
  29. package/es/src/ap-list/interface.d.ts +22 -3
  30. package/es/src/ap-modal/interface.d.ts +3 -0
  31. package/es/src/ap-modal/utils/createModal.mjs +46 -36
  32. package/es/src/ap-table/constants.d.ts +42 -42
  33. package/es/src/ap-tag/ap-tag.vue.mjs +16 -13
  34. package/es/src/index.d.ts +1 -0
  35. package/es/src/index.mjs +206 -204
  36. package/es/src/path-map.mjs +4 -1
  37. package/lib/index.js +1 -1
  38. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  39. package/lib/src/ap-drawer/index.d.ts +8 -0
  40. package/lib/src/ap-drawer/index.js +1 -0
  41. package/lib/src/ap-drawer/interface.d.ts +16 -0
  42. package/lib/src/ap-drawer/interface.js +1 -0
  43. package/lib/src/ap-drawer/style/css.d.ts +1 -0
  44. package/lib/src/ap-drawer/style/css.js +1 -0
  45. package/lib/src/ap-drawer/style/index.d.ts +1 -0
  46. package/lib/src/ap-drawer/style/index.js +1 -0
  47. package/lib/src/ap-drawer/utils/createDrawer.d.ts +2 -0
  48. package/lib/src/ap-drawer/utils/createDrawer.js +1 -0
  49. package/lib/src/ap-drawer/utils/index.d.ts +1 -0
  50. package/lib/src/ap-drawer/utils/index.js +1 -0
  51. package/lib/src/ap-form/interface.d.ts +1 -1
  52. package/lib/src/ap-form/item/index.vue.js +1 -1
  53. package/lib/src/ap-form/items/number/index.vue.d.ts +10 -10
  54. package/lib/src/ap-form/items/text/index.vue.d.ts +10 -10
  55. package/lib/src/ap-form/items/text/password.vue.d.ts +10 -10
  56. package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -9
  57. package/lib/src/ap-form/render/control.vue.js +1 -1
  58. package/lib/src/ap-form/render/item.vue.d.ts +6 -5
  59. package/lib/src/ap-form/render/item.vue.js +1 -1
  60. package/lib/src/ap-form/render/style/css.d.ts +1 -0
  61. package/lib/src/ap-form/render/style/css.js +1 -0
  62. package/lib/src/ap-form/render/style/style.d.ts +1 -0
  63. package/lib/src/ap-list/index.vue.d.ts +10 -2
  64. package/lib/src/ap-list/index.vue.js +1 -1
  65. package/lib/src/ap-list/interface.d.ts +22 -3
  66. package/lib/src/ap-modal/interface.d.ts +3 -0
  67. package/lib/src/ap-modal/utils/createModal.js +1 -1
  68. package/lib/src/ap-table/constants.d.ts +42 -42
  69. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  70. package/lib/src/index.d.ts +1 -0
  71. package/lib/src/index.js +1 -1
  72. package/lib/src/path-map.js +1 -1
  73. package/package.json +4 -3
@@ -1,15 +1,15 @@
1
- import { defineComponent as O, useSlots as $, ref as f, onMounted as j, computed as b, unref as l, watch as q, cloneVNode as E, openBlock as F, createBlock as g, mergeProps as K, createSlots as Q, withCtx as i, resolveDynamicComponent as U, createCommentVNode as G, createElementVNode as h, normalizeClass as H, createVNode as B, normalizeStyle as J, toDisplayString as M, renderList as W, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
- import { Form as ee, Tooltip as oe } from "@aplus-frontend/antdv";
1
+ import { defineComponent as D, useSlots as $, ref as d, onMounted as j, computed as F, unref as l, watch as q, cloneVNode as E, openBlock as g, createBlock as h, mergeProps as K, createSlots as O, withCtx as i, resolveDynamicComponent as Q, createCommentVNode as U, createElementVNode as G, normalizeClass as H, createVNode as p, normalizeStyle as J, renderList as M, renderSlot as W, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
+ import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
3
3
  import { useToken as le } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { isFunction as C, cloneDeep as te, isArray as ae, omit as N } from "lodash-unified";
4
+ import { isFunction as B, cloneDeep as te, isArray as ae, omit as C } from "lodash-unified";
5
5
  import { apFormItemColPropKeys as re } from "../constant.mjs";
6
6
  import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
7
7
  import "../../config-provider/index.mjs";
8
8
  import { useInjectForm as ie } from "../context.mjs";
9
9
  import { isPromise as se } from "@fruits-chain/utils";
10
10
  import { getSingleVNode as ue, getValidVNodeList as me } from "../../utils/slot.mjs";
11
- import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
12
- const fe = ["title"], Ne = /* @__PURE__ */ O({
11
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
12
+ const Ce = /* @__PURE__ */ D({
13
13
  name: "ApFormItem",
14
14
  __name: "index",
15
15
  props: {
@@ -53,17 +53,17 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
53
53
  _signal: {},
54
54
  transform: {}
55
55
  },
56
- setup(k, { expose: w }) {
57
- const o = k, r = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: p, b: P } = de("ap-form-item"), d = f(!1), n = f(), [, S] = le();
56
+ setup(N, { expose: k }) {
57
+ const o = N, r = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: P } = fe("ap-form-item"), f = d(!1), n = d(), [, x] = le();
58
58
  j(async () => {
59
- let e = C(o.initialValue) ? o.initialValue() : o.initialValue;
59
+ let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
60
60
  se(e) && (e = await e), m == null || m.registerField({
61
61
  name: o.name,
62
62
  initialValue: te(e),
63
63
  transform: o.transform
64
64
  });
65
65
  });
66
- const c = b(() => o.name ? ae(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(s)) : s == null ? void 0 : s.value[o.name] : null), v = f(ue(r.default));
66
+ const y = F(() => o.name ? ae(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(s)) : s == null ? void 0 : s.value[o.name] : null), v = d(ue(r.default));
67
67
  q(
68
68
  () => {
69
69
  var e;
@@ -73,37 +73,37 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
73
73
  v.value = me(e)[0];
74
74
  }
75
75
  );
76
- function x(e) {
76
+ function w(e) {
77
77
  u == null || u(o.name, e);
78
78
  }
79
- function I() {
80
- d.value = !0;
79
+ function S() {
80
+ f.value = !0;
81
81
  }
82
- function _() {
83
- d.value = !1;
82
+ function I() {
83
+ f.value = !1;
84
84
  }
85
- const y = b(() => {
85
+ const V = F(() => {
86
86
  var t, a;
87
87
  if (!o.name)
88
88
  return (t = r.default()) == null ? void 0 : t[0];
89
89
  const e = l(v);
90
90
  return e ? E(e, {
91
- [o.valuePropName]: l(c),
92
- [`onUpdate:${o.valuePropName}`]: x,
91
+ [o.valuePropName]: l(y),
92
+ [`onUpdate:${o.valuePropName}`]: w,
93
93
  bordered: o.bordered ? !1 : (a = e == null ? void 0 : e.props) == null ? void 0 : a.bordered,
94
- onFocus: I,
95
- onBlur: _
94
+ onFocus: S,
95
+ onBlur: I
96
96
  }) : null;
97
97
  });
98
- function z() {
98
+ function T() {
99
99
  var e;
100
100
  (e = n.value) == null || e.onFieldBlur();
101
101
  }
102
- function A() {
102
+ function z() {
103
103
  var e;
104
104
  (e = n.value) == null || e.onFieldChange();
105
105
  }
106
- function D() {
106
+ function A() {
107
107
  var e;
108
108
  (e = n.value) == null || e.clearValidate();
109
109
  }
@@ -112,46 +112,46 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
112
112
  (e = n.value) == null || e.resetField();
113
113
  }
114
114
  function R(e = !1) {
115
- const t = l(c);
115
+ const t = l(y);
116
116
  if (!e || !o.transform)
117
117
  return t;
118
- const a = C(o.transform) ? o.transform : o.transform.transformer;
118
+ const a = B(o.transform) ? o.transform : o.transform.transformer;
119
119
  return o.transform ? a(t) : t;
120
120
  }
121
- return w({
122
- onFieldBlur: z,
123
- onFieldChange: A,
124
- clearValidate: D,
121
+ return k({
122
+ onFieldBlur: T,
123
+ onFieldChange: z,
124
+ clearValidate: A,
125
125
  resetField: L,
126
126
  getFieldValue: R
127
- }), (e, t) => (F(), g(l(ee).Item, K({
127
+ }), (e, t) => (g(), h(l(Z).Item, K({
128
128
  ref_key: "formItemRef",
129
129
  ref: n
130
- }, l(N)(o, [...l(re), "tooltip", "label"]), {
130
+ }, l(C)(o, [...l(re), "tooltip", "label"]), {
131
131
  class: {
132
- [l(p)("bordered")]: e.bordered,
133
- [l(p)("focused")]: e.bordered && d.value,
132
+ [l(c)("bordered")]: e.bordered,
133
+ [l(c)("focused")]: e.bordered && f.value,
134
134
  [l(P)()]: !0
135
135
  },
136
136
  colon: e.bordered ? !1 : o.colon
137
- }), Q({
137
+ }), O({
138
138
  default: i(() => [
139
- y.value ? (F(), g(U(y.value), { key: 0 })) : G("", !0)
139
+ V.value ? (g(), h(Q(V.value), { key: 0 })) : U("", !0)
140
140
  ]),
141
141
  _: 2
142
142
  }, [
143
143
  o.tooltip ? {
144
144
  name: "tooltip",
145
145
  fn: i(({ class: a }) => [
146
- h("span", {
146
+ G("span", {
147
147
  class: H(a)
148
148
  }, [
149
- B(l(oe), {
149
+ p(l(ee), {
150
150
  title: o.tooltip
151
151
  }, {
152
152
  default: i(() => [
153
- B(l(ne), {
154
- style: J({ color: l(S).colorPrimary })
153
+ p(l(ne), {
154
+ style: J({ color: l(x).colorPrimary })
155
155
  }, null, 8, ["style"])
156
156
  ]),
157
157
  _: 1
@@ -163,26 +163,23 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
163
163
  e.label ? {
164
164
  name: "label",
165
165
  fn: i(() => [
166
- h("span", {
167
- title: e.label,
168
- style: {
169
- whiteSpace: "nowrap",
170
- overflow: "hidden",
171
- textOverflow: "ellipsis"
172
- }
173
- }, M(e.label), 9, fe)
166
+ p(l(oe), {
167
+ content: e.label,
168
+ ellipsis: { tooltip: e.label },
169
+ style: { "min-width": "0px", flex: "1" }
170
+ }, null, 8, ["content", "ellipsis"])
174
171
  ]),
175
172
  key: "1"
176
173
  } : void 0,
177
- W(l(N)(r, "default"), (a, V) => ({
178
- name: V,
179
- fn: i((T) => [
180
- X(e.$slots, V, Y(Z(T || {})))
174
+ M(l(C)(r, "default"), (a, b) => ({
175
+ name: b,
176
+ fn: i((_) => [
177
+ W(e.$slots, b, X(Y(_ || {})))
181
178
  ])
182
179
  }))
183
180
  ]), 1040, ["class", "colon"]));
184
181
  }
185
182
  });
186
183
  export {
187
- Ne as default
184
+ Ce as default
188
185
  };
@@ -62,13 +62,13 @@ declare function __VLS_template(): {
62
62
  readonly prefix?: any;
63
63
  readonly autofocus?: boolean | undefined;
64
64
  'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
65
+ readonly suffix?: any;
65
66
  readonly defaultValue?: ValueType | undefined;
66
67
  readonly onPressEnter?: KeyboardEventHandler | undefined;
67
68
  readonly valueModifiers?: Record<string, any> | undefined;
68
69
  readonly readonly?: boolean | undefined;
69
70
  readonly addonBefore?: any;
70
71
  readonly addonAfter?: any;
71
- readonly suffix?: any;
72
72
  readonly stringMode?: boolean | undefined;
73
73
  readonly parser?: ((displayValue: string) => ValueType) | undefined;
74
74
  readonly formatter?: ((value: ValueType, info: {
@@ -159,6 +159,9 @@ declare function __VLS_template(): {
159
159
  type: PropType<ValueType>;
160
160
  default: number;
161
161
  };
162
+ suffix: {
163
+ type: PropType<any>;
164
+ };
162
165
  defaultValue: {
163
166
  type: PropType<ValueType>;
164
167
  };
@@ -177,9 +180,6 @@ declare function __VLS_template(): {
177
180
  addonAfter: {
178
181
  type: PropType<any>;
179
182
  };
180
- suffix: {
181
- type: PropType<any>;
182
- };
183
183
  stringMode: {
184
184
  type: PropType<boolean>;
185
185
  };
@@ -316,6 +316,9 @@ declare function __VLS_template(): {
316
316
  type: PropType<ValueType>;
317
317
  default: number;
318
318
  };
319
+ suffix: {
320
+ type: PropType<any>;
321
+ };
319
322
  defaultValue: {
320
323
  type: PropType<ValueType>;
321
324
  };
@@ -334,9 +337,6 @@ declare function __VLS_template(): {
334
337
  addonAfter: {
335
338
  type: PropType<any>;
336
339
  };
337
- suffix: {
338
- type: PropType<any>;
339
- };
340
340
  stringMode: {
341
341
  type: PropType<boolean>;
342
342
  };
@@ -493,6 +493,9 @@ declare function __VLS_template(): {
493
493
  type: PropType<ValueType>;
494
494
  default: number;
495
495
  };
496
+ suffix: {
497
+ type: PropType<any>;
498
+ };
496
499
  defaultValue: {
497
500
  type: PropType<ValueType>;
498
501
  };
@@ -511,9 +514,6 @@ declare function __VLS_template(): {
511
514
  addonAfter: {
512
515
  type: PropType<any>;
513
516
  };
514
- suffix: {
515
- type: PropType<any>;
516
- };
517
517
  stringMode: {
518
518
  type: PropType<boolean>;
519
519
  };
@@ -61,6 +61,7 @@ declare function __VLS_template(): {
61
61
  readonly loading?: boolean | undefined;
62
62
  readonly autofocus?: boolean | undefined;
63
63
  'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
64
+ readonly suffix?: any;
64
65
  readonly focused?: boolean | undefined;
65
66
  readonly defaultValue?: string | number | undefined;
66
67
  readonly maxlength?: number | undefined;
@@ -74,7 +75,6 @@ declare function __VLS_template(): {
74
75
  readonly handleReset?: MouseEventHandler | undefined;
75
76
  readonly addonBefore?: any;
76
77
  readonly addonAfter?: any;
77
- readonly suffix?: any;
78
78
  readonly clearIcon?: any;
79
79
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
80
80
  size: {
@@ -161,6 +161,9 @@ declare function __VLS_template(): {
161
161
  'onUpdate:value': {
162
162
  type: PropType<(val: string) => void>;
163
163
  };
164
+ suffix: {
165
+ type: PropType<any>;
166
+ };
164
167
  focused: {
165
168
  type: PropType<boolean>;
166
169
  };
@@ -204,9 +207,6 @@ declare function __VLS_template(): {
204
207
  addonAfter: {
205
208
  type: PropType<any>;
206
209
  };
207
- suffix: {
208
- type: PropType<any>;
209
- };
210
210
  clearIcon: {
211
211
  type: PropType<any>;
212
212
  };
@@ -319,6 +319,9 @@ declare function __VLS_template(): {
319
319
  'onUpdate:value': {
320
320
  type: PropType<(val: string) => void>;
321
321
  };
322
+ suffix: {
323
+ type: PropType<any>;
324
+ };
322
325
  focused: {
323
326
  type: PropType<boolean>;
324
327
  };
@@ -362,9 +365,6 @@ declare function __VLS_template(): {
362
365
  addonAfter: {
363
366
  type: PropType<any>;
364
367
  };
365
- suffix: {
366
- type: PropType<any>;
367
- };
368
368
  clearIcon: {
369
369
  type: PropType<any>;
370
370
  };
@@ -498,6 +498,9 @@ declare function __VLS_template(): {
498
498
  'onUpdate:value': {
499
499
  type: PropType<(val: string) => void>;
500
500
  };
501
+ suffix: {
502
+ type: PropType<any>;
503
+ };
501
504
  focused: {
502
505
  type: PropType<boolean>;
503
506
  };
@@ -541,9 +544,6 @@ declare function __VLS_template(): {
541
544
  addonAfter: {
542
545
  type: PropType<any>;
543
546
  };
544
- suffix: {
545
- type: PropType<any>;
546
- };
547
547
  clearIcon: {
548
548
  type: PropType<any>;
549
549
  };
@@ -69,6 +69,7 @@ declare function __VLS_template(): {
69
69
  readonly loading?: boolean | undefined;
70
70
  readonly autofocus?: boolean | undefined;
71
71
  'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
72
+ readonly suffix?: any;
72
73
  readonly focused?: boolean | undefined;
73
74
  readonly defaultValue?: string | number | undefined;
74
75
  readonly maxlength?: number | undefined;
@@ -82,7 +83,6 @@ declare function __VLS_template(): {
82
83
  readonly handleReset?: MouseEventHandler | undefined;
83
84
  readonly addonBefore?: any;
84
85
  readonly addonAfter?: any;
85
- readonly suffix?: any;
86
86
  readonly clearIcon?: any;
87
87
  readonly inputPrefixCls?: string | undefined;
88
88
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
@@ -177,6 +177,9 @@ declare function __VLS_template(): {
177
177
  'onUpdate:value': {
178
178
  type: PropType<(val: string) => void>;
179
179
  };
180
+ suffix: {
181
+ type: PropType<any>;
182
+ };
180
183
  focused: {
181
184
  type: PropType<boolean>;
182
185
  };
@@ -220,9 +223,6 @@ declare function __VLS_template(): {
220
223
  addonAfter: {
221
224
  type: PropType<any>;
222
225
  };
223
- suffix: {
224
- type: PropType<any>;
225
- };
226
226
  clearIcon: {
227
227
  type: PropType<any>;
228
228
  };
@@ -354,6 +354,9 @@ declare function __VLS_template(): {
354
354
  'onUpdate:value': {
355
355
  type: PropType<(val: string) => void>;
356
356
  };
357
+ suffix: {
358
+ type: PropType<any>;
359
+ };
357
360
  focused: {
358
361
  type: PropType<boolean>;
359
362
  };
@@ -397,9 +400,6 @@ declare function __VLS_template(): {
397
400
  addonAfter: {
398
401
  type: PropType<any>;
399
402
  };
400
- suffix: {
401
- type: PropType<any>;
402
- };
403
403
  clearIcon: {
404
404
  type: PropType<any>;
405
405
  };
@@ -553,6 +553,9 @@ declare function __VLS_template(): {
553
553
  'onUpdate:value': {
554
554
  type: PropType<(val: string) => void>;
555
555
  };
556
+ suffix: {
557
+ type: PropType<any>;
558
+ };
556
559
  focused: {
557
560
  type: PropType<boolean>;
558
561
  };
@@ -596,9 +599,6 @@ declare function __VLS_template(): {
596
599
  addonAfter: {
597
600
  type: PropType<any>;
598
601
  };
599
- suffix: {
600
- type: PropType<any>;
601
- };
602
602
  clearIcon: {
603
603
  type: PropType<any>;
604
604
  };
@@ -98,6 +98,9 @@ declare function __VLS_template(): {
98
98
  'onUpdate:value': {
99
99
  type: PropType<(val: string) => void>;
100
100
  };
101
+ rows: {
102
+ type: PropType<number>;
103
+ };
101
104
  focused: {
102
105
  type: PropType<boolean>;
103
106
  };
@@ -142,9 +145,6 @@ declare function __VLS_template(): {
142
145
  type: PropType<boolean>;
143
146
  default: boolean;
144
147
  };
145
- rows: {
146
- type: PropType<number>;
147
- };
148
148
  autoSize: {
149
149
  type: PropType<boolean | AutoSizeType>;
150
150
  };
@@ -248,6 +248,9 @@ declare function __VLS_template(): {
248
248
  'onUpdate:value': {
249
249
  type: PropType<(val: string) => void>;
250
250
  };
251
+ rows: {
252
+ type: PropType<number>;
253
+ };
251
254
  focused: {
252
255
  type: PropType<boolean>;
253
256
  };
@@ -292,9 +295,6 @@ declare function __VLS_template(): {
292
295
  type: PropType<boolean>;
293
296
  default: boolean;
294
297
  };
295
- rows: {
296
- type: PropType<number>;
297
- };
298
298
  autoSize: {
299
299
  type: PropType<boolean | AutoSizeType>;
300
300
  };
@@ -406,6 +406,9 @@ declare function __VLS_template(): {
406
406
  'onUpdate:value': {
407
407
  type: PropType<(val: string) => void>;
408
408
  };
409
+ rows: {
410
+ type: PropType<number>;
411
+ };
409
412
  focused: {
410
413
  type: PropType<boolean>;
411
414
  };
@@ -450,9 +453,6 @@ declare function __VLS_template(): {
450
453
  type: PropType<boolean>;
451
454
  default: boolean;
452
455
  };
453
- rows: {
454
- type: PropType<number>;
455
- };
456
456
  autoSize: {
457
457
  type: PropType<boolean | AutoSizeType>;
458
458
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as p, computed as u, renderSlot as s, normalizeProps as c, guardReactiveProps as a } from "vue";
2
- import { FormItemInputContext as l } from "@aplus-frontend/antdv/es/form/FormItemContext";
1
+ import { defineComponent as p, computed as u, renderSlot as c, normalizeProps as s, guardReactiveProps as a } from "vue";
2
+ import { FormItemInputContext as m } from "@aplus-frontend/antdv/es/form/FormItemContext";
3
3
  const f = /* @__PURE__ */ p({
4
4
  name: "ApFormControlRender",
5
5
  __name: "control",
@@ -10,12 +10,12 @@ const f = /* @__PURE__ */ p({
10
10
  onFocus: { type: Function },
11
11
  onBlur: { type: Function }
12
12
  },
13
- setup(o) {
14
- const t = o, n = l.useInject(), e = u(() => ({
15
- ...n,
16
- ...t
13
+ setup(e) {
14
+ const o = e, t = m.useInject(), n = u(() => ({
15
+ ...t,
16
+ ...o
17
17
  }));
18
- return console.log("getMergedProps", e.value), (r, m) => s(r.$slots, "default", c(a(e.value)));
18
+ return (r, l) => c(r.$slots, "default", s(a(n.value)));
19
19
  }
20
20
  });
21
21
  export {
@@ -1,12 +1,13 @@
1
1
  import { FormItemStatusContextProps } from '@aplus-frontend/antdv/es/form/FormItemContext';
2
- import { ApFormControlRenderProps } from '../interface';
2
+ import { ApFormControlRenderProps, ApFormItemSlots } from '../interface';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
4
  import { ApFormItemProps } from '..';
5
- type SlotsType = {
6
- default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
7
- };
8
5
  declare function __VLS_template(): {
9
- slots: Readonly<SlotsType> & SlotsType;
6
+ slots: Readonly<{
7
+ default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
8
+ } & Omit<ApFormItemSlots, "default">> & {
9
+ default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
10
+ } & Omit<ApFormItemSlots, "default">;
10
11
  refs: {};
11
12
  attrs: Partial<{}>;
12
13
  };
@@ -1,6 +1,7 @@
1
- import { defineComponent as s, openBlock as i, createBlock as u, unref as o, normalizeProps as l, guardReactiveProps as a, withCtx as t, createVNode as f, renderSlot as m } from "vue";
2
- import { ApForm as r } from "../index.mjs";
3
- const x = /* @__PURE__ */ s({
1
+ import { defineComponent as m, useSlots as c, openBlock as B, createBlock as v, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as y, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
2
+ import { omit as g } from "lodash-unified";
3
+ import { ApForm as p } from "../index.mjs";
4
+ const S = /* @__PURE__ */ m({
4
5
  name: "ApFormItemRender",
5
6
  __name: "item",
6
7
  props: {
@@ -44,21 +45,28 @@ const x = /* @__PURE__ */ s({
44
45
  _signal: {},
45
46
  transform: {}
46
47
  },
47
- setup(n) {
48
- const e = n;
49
- return console.log("props", e), (p, c) => (i(), u(o(r).FormItem, l(a(e)), {
48
+ setup(d) {
49
+ const u = d, i = c();
50
+ return (a, h) => (B(), v(e(p).FormItem, o(l(u)), y({
50
51
  default: t(() => [
51
- f(o(r).ControlRender, null, {
52
- default: t((d) => [
53
- m(p.$slots, "default", l(a(d)))
52
+ x(e(p).ControlRender, null, {
53
+ default: t((r) => [
54
+ s(a.$slots, "default", o(l(r)))
54
55
  ]),
55
56
  _: 3
56
57
  })
57
58
  ]),
58
- _: 3
59
- }, 16));
59
+ _: 2
60
+ }, [
61
+ _(e(g)(i, "default"), (r, n) => ({
62
+ name: n,
63
+ fn: t((f) => [
64
+ s(a.$slots, n, o(l(f || {})))
65
+ ])
66
+ }))
67
+ ]), 1040));
60
68
  }
61
69
  });
62
70
  export {
63
- x as default
71
+ S as default
64
72
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -24,13 +24,21 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
24
24
  empty?(_: {
25
25
  loading: boolean;
26
26
  }): any;
27
- renderContent?(_: {
28
- dataSource: RecordType[];
27
+ renderItem?(_: {
28
+ item: RecordType;
29
+ index: number;
30
+ }): any;
31
+ renderItem?(_: {
32
+ item: RecordType;
33
+ index: number;
29
34
  }): any;
30
35
  renderItem?(_: {
31
36
  item: RecordType;
32
37
  index: number;
33
38
  }): any;
39
+ renderContent?(_: {
40
+ dataSource: RecordType[];
41
+ }): any;
34
42
  };
35
43
  emit: {};
36
44
  }>) => VNode<RendererNode, RendererElement, {