@aplus-frontend/ui 6.35.2 → 6.36.0

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 (119) hide show
  1. package/es/src/ap-field/date/index.vue.mjs +6 -5
  2. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  3. package/es/src/ap-field/date-range/index.vue.mjs +20 -17
  4. package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
  5. package/es/src/ap-field/index.d.ts +3 -3
  6. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  8. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  9. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  10. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  11. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  12. package/es/src/ap-form/ap-form.vue.d.ts +1 -1
  13. package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  14. package/es/src/ap-form/interface.d.ts +12 -1
  15. package/es/src/ap-form/item/index.vue.d.ts +34 -34
  16. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  17. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  18. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  19. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  20. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
  21. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  22. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  23. package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
  24. package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
  25. package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  26. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  27. package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
  28. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
  31. package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
  32. package/es/src/ap-form/search-form/index.vue.mjs +94 -88
  33. package/es/src/ap-modal/utils/createModal.mjs +38 -35
  34. package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  35. package/es/src/ap-table/constants.d.ts +77 -77
  36. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
  37. package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  38. package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
  39. package/es/src/business/ap-attachment/constans.d.ts +4 -0
  40. package/es/src/business/ap-attachment/constans.mjs +4 -0
  41. package/es/src/business/ap-attachment/index.d.ts +15 -0
  42. package/es/src/business/ap-attachment/interface.d.ts +1 -0
  43. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
  44. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  45. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  46. package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  47. package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
  48. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  49. package/es/src/config-provider/config-provider.d.ts +10 -1
  50. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  51. package/es/src/config-provider/index.d.ts +16 -1
  52. package/es/src/utils/config-provider-preset.d.ts +3 -1
  53. package/es/src/version.d.ts +1 -1
  54. package/es/src/version.mjs +1 -1
  55. package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  56. package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
  57. package/lib/src/ap-field/date/index.vue.js +1 -1
  58. package/lib/src/ap-field/date/read.vue2.js +1 -1
  59. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  60. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  61. package/lib/src/ap-field/index.d.ts +3 -3
  62. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  63. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  64. package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
  65. package/lib/src/ap-field/text/read.vue.d.ts +1 -1
  66. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  67. package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
  68. package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
  69. package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  70. package/lib/src/ap-form/interface.d.ts +12 -1
  71. package/lib/src/ap-form/item/index.vue.d.ts +34 -34
  72. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  73. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  74. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  75. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  76. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
  77. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  78. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  79. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
  80. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
  81. package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  82. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  83. package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
  84. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  85. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  86. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  87. package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
  88. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  89. package/lib/src/ap-modal/utils/createModal.js +1 -1
  90. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  91. package/lib/src/ap-table/constants.d.ts +77 -77
  92. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  93. package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  94. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  95. package/lib/src/business/ap-attachment/constans.d.ts +4 -0
  96. package/lib/src/business/ap-attachment/constans.js +1 -1
  97. package/lib/src/business/ap-attachment/index.d.ts +15 -0
  98. package/lib/src/business/ap-attachment/interface.d.ts +1 -0
  99. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  100. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  101. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  102. package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  103. package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
  104. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  105. package/lib/src/config-provider/config-provider.d.ts +10 -1
  106. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  107. package/lib/src/config-provider/index.d.ts +16 -1
  108. package/lib/src/utils/config-provider-preset.d.ts +3 -1
  109. package/lib/src/version.d.ts +1 -1
  110. package/lib/src/version.js +1 -1
  111. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  112. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  113. package/package.json +3 -3
  114. package/theme/ap-attachment/ap-attachment.css +8 -4
  115. package/theme/ap-attachment/ap-attachment.less +8 -4
  116. package/theme/ap-upload/index.css +6 -0
  117. package/theme/ap-upload/multiple-file.css +6 -0
  118. package/theme/ap-upload/multiple-file.less +7 -0
  119. package/theme/index.css +14 -4
@@ -1,6 +1,6 @@
1
- import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as $, guardReactiveProps as G } from "vue";
1
+ import { defineComponent as z, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as E, withCtx as p, createCommentVNode as N, createVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
2
2
  import u from "dayjs";
3
- import { InputGroup as L, Select as W, SelectOption as Y, DatePicker as Z } from "@aplus-frontend/antdv";
3
+ import { InputGroup as G, Select as L, SelectOption as Y, DatePicker as Z } from "@aplus-frontend/antdv";
4
4
  import { ApFieldDatePresetFormats as q, PRESET_FORMAT_MAP as b, PRESET_FORMAT_PICK_MAP as J, PRESET_FORMAT_TIME_MAP as Q } from "./constant.mjs";
5
5
  import "../../hooks/index.mjs";
6
6
  import { isNil as C, omit as X } from "lodash-unified";
@@ -56,6 +56,7 @@ const ye = /* @__PURE__ */ z({
56
56
  prefixCls: {},
57
57
  defaultPickerValue: {},
58
58
  disabledDate: {},
59
+ showWeek: { type: Boolean },
59
60
  dateRender: {},
60
61
  monthCellRender: {},
61
62
  renderExtraFooter: {},
@@ -151,7 +152,7 @@ const ye = /* @__PURE__ */ z({
151
152
  }
152
153
  return (o, n) => o.mode === "read" ? (i(), B(g, { key: 0 }, [
153
154
  k(w(c.value ? t(u)(c.value).format(s.value) : o.emptyText), 1)
154
- ], 64)) : (i(), y(t(L), {
155
+ ], 64)) : (i(), y(t(G), {
155
156
  key: 1,
156
157
  compact: "",
157
158
  style: E({
@@ -159,7 +160,7 @@ const ye = /* @__PURE__ */ z({
159
160
  })
160
161
  }, {
161
162
  default: p(() => [
162
- Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(W), {
163
+ Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(L), {
163
164
  key: 0,
164
165
  value: t(d),
165
166
  "onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
@@ -192,7 +193,7 @@ const ye = /* @__PURE__ */ z({
192
193
  P(o.$slots, (a, m) => ({
193
194
  name: m,
194
195
  fn: p((x) => [
195
- K(o.$slots, m, $(G(x || {})))
196
+ K(o.$slots, m, W($(x || {})))
196
197
  ])
197
198
  }))
198
199
  ]), 1040, ["value", "format", "picker"])
@@ -1,10 +1,10 @@
1
- import { defineComponent as s, computed as t, toDisplayString as u, unref as d } from "vue";
1
+ import { defineComponent as i, computed as t, toDisplayString as u, unref as d } from "vue";
2
2
  import n from "dayjs";
3
3
  import { isNil as m } from "lodash-unified";
4
4
  import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
5
5
  import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
6
6
  import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
7
- const T = /* @__PURE__ */ s({
7
+ const T = /* @__PURE__ */ i({
8
8
  name: "ApFieldDateRead",
9
9
  __name: "read",
10
10
  props: {
@@ -51,6 +51,7 @@ const T = /* @__PURE__ */ s({
51
51
  prefixCls: {},
52
52
  defaultPickerValue: {},
53
53
  disabledDate: {},
54
+ showWeek: { type: Boolean },
54
55
  dateRender: {},
55
56
  monthCellRender: {},
56
57
  renderExtraFooter: {},
@@ -84,18 +85,18 @@ const T = /* @__PURE__ */ s({
84
85
  formatBegins: { type: Boolean },
85
86
  timezone: {}
86
87
  },
87
- setup(r) {
88
- const e = r, { currentTimezone: l } = f(e), p = t(
88
+ setup(l) {
89
+ const e = l, { currentTimezone: r } = f(e), p = t(
89
90
  () => y.indexOf(e.format) > -1
90
- ), i = t(
91
+ ), s = t(
91
92
  () => p.value ? B[e.format] : e.format
92
93
  ), a = t(() => {
93
94
  if (m(e.value))
94
95
  return;
95
96
  let o = n(e.value);
96
- return e.timezone && (o = n(c(e.value, l.value))), o;
97
+ return e.timezone && (o = n(c(e.value, r.value))), o;
97
98
  });
98
- return (o, h) => u(a.value ? d(n)(a.value).format(i.value) : o.emptyText);
99
+ return (o, h) => u(a.value ? d(n)(a.value).format(s.value) : o.emptyText);
99
100
  }
100
101
  });
101
102
  export {
@@ -1,5 +1,5 @@
1
- import { defineComponent as W, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as S, openBlock as u, createTextVNode as k, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as T, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
2
- import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as w, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
1
+ import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
2
+ import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as T, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
5
5
  import d from "dayjs";
@@ -11,8 +11,8 @@ import { getTimeFormatToZone as A } from "@aplus-frontend/utils";
11
11
  import { useDefaultPlaceholder as ve } from "../hooks/use-default-placeholder.mjs";
12
12
  import { useDefaultPresets as he } from "../hooks/use-default-presets.mjs";
13
13
  import { useDateTimezone as ge } from "../hooks/use-date-timezone.mjs";
14
- import { useControllableValue as Se } from "../../hooks/useControllableValue.mjs";
15
- const ze = /* @__PURE__ */ W({
14
+ import { useControllableValue as ke } from "../../hooks/useControllableValue.mjs";
15
+ const ze = /* @__PURE__ */ L({
16
16
  name: "ApFieldDateRange",
17
17
  __name: "index",
18
18
  props: {
@@ -91,6 +91,9 @@ const ze = /* @__PURE__ */ W({
91
91
  picker: {},
92
92
  prefixCls: {},
93
93
  disabledDate: {},
94
+ showWeek: {
95
+ type: Boolean
96
+ },
94
97
  monthCellRender: {},
95
98
  locale: {},
96
99
  size: {},
@@ -160,10 +163,10 @@ const ze = /* @__PURE__ */ W({
160
163
  setup(R, {
161
164
  emit: F
162
165
  }) {
163
- const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? w[o.format] : o.format), {
166
+ const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? T[o.format] : o.format), {
164
167
  value: v,
165
168
  updateValue: O
166
- } = Se(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? w[o.format] : o.format), x = ve("DateRange", o), {
169
+ } = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? T[o.format] : o.format), x = ve("DateRange", o), {
167
170
  currentTimezone: l
168
171
  } = ge(o), {
169
172
  presets: E,
@@ -202,15 +205,15 @@ const ze = /* @__PURE__ */ W({
202
205
  function K(e) {
203
206
  e && V(), o.onOpenChange?.(e);
204
207
  }
205
- function $(e, a) {
208
+ function W(e, a) {
206
209
  if (M(e)) {
207
210
  o.onChange?.(e, a);
208
211
  return;
209
212
  }
210
- const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, L = e[1] ? p(r, f, !1) : null;
211
- o.onChange?.([D, L], a);
213
+ const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, G = e[1] ? p(r, f, !1) : null;
214
+ o.onChange?.([D, G], a);
212
215
  }
213
- const G = s(() => {
216
+ const $ = s(() => {
214
217
  const e = o.readModeSeparator;
215
218
  if (e)
216
219
  return Z(e) || de(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
@@ -221,27 +224,27 @@ const ze = /* @__PURE__ */ W({
221
224
  key: 0
222
225
  }, [h.value ? (u(), g(m, {
223
226
  key: 0
224
- }, [k(C(h.value[0]?.format(y.value)) + " ", 1), (u(), S(q(G.value))), k(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
227
+ }, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(q($.value))), S(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
225
228
  key: 1
226
- }, [k(C(e.emptyText), 1)], 64))], 64)) : (u(), S(t(ie), {
229
+ }, [S(C(e.emptyText), 1)], 64))], 64)) : (u(), k(t(ie), {
227
230
  key: 1,
228
231
  compact: "",
229
232
  style: J({
230
233
  display: Array.isArray(o.timezone) && o.timezone.length ? "flex" : "block"
231
234
  })
232
235
  }, {
233
- default: B(() => [Array.isArray(o.timezone) && o.timezone.length ? (u(), S(t(se), {
236
+ default: B(() => [Array.isArray(o.timezone) && o.timezone.length ? (u(), k(t(se), {
234
237
  key: 0,
235
238
  value: t(l),
236
239
  "onUpdate:value": a[0] || (a[0] = (n) => X(l) ? l.value = n : null),
237
240
  "default-active-first-option": "",
238
241
  "dropdown-match-select-width": !1
239
242
  }, {
240
- default: B(() => [(u(!0), g(m, null, T(o.timezone, (n) => (u(), S(t(pe), {
243
+ default: B(() => [(u(!0), g(m, null, w(o.timezone, (n) => (u(), k(t(pe), {
241
244
  key: n?.value,
242
245
  value: n?.value
243
246
  }, {
244
- default: B(() => [k(C(n?.label ?? n?.value), 1)]),
247
+ default: B(() => [S(C(n?.label ?? n?.value), 1)]),
245
248
  _: 2
246
249
  }, 1032, ["value"]))), 128))]),
247
250
  _: 1
@@ -250,12 +253,12 @@ const ze = /* @__PURE__ */ W({
250
253
  picker: I.value,
251
254
  format: N.value,
252
255
  "onUpdate:value": j,
253
- onChange: $,
256
+ onChange: W,
254
257
  onOk: H,
255
258
  onOpenChange: K
256
259
  }), oe({
257
260
  _: 2
258
- }, [T(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
261
+ }, [w(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
259
262
  name: r,
260
263
  fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
261
264
  }))]), 1040, ["value", "picker", "format"])]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
1
+ import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as h, toDisplayString as p, resolveDynamicComponent as b } from "vue";
2
2
  import { isNil as g } from "lodash-unified";
3
3
  import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
4
4
  import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
@@ -54,6 +54,7 @@ const M = /* @__PURE__ */ v({
54
54
  picker: {},
55
55
  prefixCls: {},
56
56
  disabledDate: {},
57
+ showWeek: { type: Boolean },
57
58
  monthCellRender: {},
58
59
  locale: {},
59
60
  size: {},
@@ -106,7 +107,7 @@ const M = /* @__PURE__ */ v({
106
107
  );
107
108
  return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
108
109
  l(p(t.value[0]?.format(u.value)) + " ", 1),
109
- (r(), b(h(o.readModeSeparator))),
110
+ (r(), h(b(o.readModeSeparator))),
110
111
  l(" " + p(t.value[1]?.format(u.value)), 1)
111
112
  ], 64)) : (r(), d(i, { key: 1 }, [
112
113
  l(p(o.emptyText), 1)
@@ -33,7 +33,7 @@ export type FieldType = {
33
33
  };
34
34
  export declare const ApFieldRead: {
35
35
  readonly Text: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextProps> & Readonly<{}>, {
36
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
36
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
37
37
  mode: FieldMode;
38
38
  disabled: boolean;
39
39
  bordered: boolean;
@@ -42,7 +42,7 @@ export declare const ApFieldRead: {
42
42
  allowClear: boolean;
43
43
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
44
44
  readonly TextArea: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{}>, {
45
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
45
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
46
46
  mode: FieldMode;
47
47
  disabled: boolean;
48
48
  bordered: boolean;
@@ -113,7 +113,7 @@ export declare const ApFieldRead: {
113
113
  emptyText: string;
114
114
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
115
115
  readonly Password: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextPasswordProps> & Readonly<{}>, {
116
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
116
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
117
117
  mode: FieldMode;
118
118
  visible: boolean;
119
119
  disabled: boolean;
@@ -27,7 +27,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextProps, {
27
27
  }, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{
28
28
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
29
29
  }>, {
30
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
30
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
31
31
  mode: FieldMode;
32
32
  disabled: boolean;
33
33
  bordered: boolean;
@@ -26,7 +26,7 @@ declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
26
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
27
27
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
28
28
  }>, {
29
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
29
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
30
30
  mode: FieldMode;
31
31
  visible: boolean;
32
32
  disabled: boolean;
@@ -2,7 +2,7 @@ import { ApFieldTextPasswordProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { FieldMode } from '..';
4
4
  declare const _default: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextPasswordProps> & Readonly<{}>, {
5
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
5
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
6
6
  mode: FieldMode;
7
7
  visible: boolean;
8
8
  disabled: boolean;
@@ -2,7 +2,7 @@ import { ApFieldTextProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { FieldMode } from '..';
4
4
  declare const _default: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{}>, {
5
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
5
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
6
6
  mode: FieldMode;
7
7
  disabled: boolean;
8
8
  bordered: boolean;
@@ -17,7 +17,7 @@ declare const _default: DefineComponent<ApFieldTextAreaProps, {
17
17
  }, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{
18
18
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
19
19
  }>, {
20
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
20
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
21
21
  mode: FieldMode;
22
22
  disabled: boolean;
23
23
  bordered: boolean;
@@ -2,7 +2,7 @@ import { ApFieldTextAreaProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { FieldMode } from '..';
4
4
  declare const _default: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{}>, {
5
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
5
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
6
6
  mode: FieldMode;
7
7
  disabled: boolean;
8
8
  bordered: boolean;
@@ -680,9 +680,9 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
680
680
  layout: string;
681
681
  colon: boolean;
682
682
  labelAlign: FormLabelAlign;
683
- validateTrigger: string | string[];
684
683
  hideRequiredMark: boolean;
685
684
  validateOnRuleChange: boolean;
685
+ validateTrigger: string | string[];
686
686
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
687
687
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
688
688
  formRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
@@ -2,8 +2,8 @@ import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
2
2
  import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
3
3
  import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
5
- import { RuleObject } from '@aplus-frontend/antdv/es/form';
6
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
+ import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../../type';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
@@ -31,7 +31,6 @@ declare function __VLS_template(): {
31
31
  readonly onSubmit?: ((e: Event) => void) | undefined;
32
32
  readonly layout?: string | undefined;
33
33
  readonly disabled?: boolean | undefined;
34
- readonly prefixCls?: string | undefined;
35
34
  readonly labelCol?: (Partial< ExtractPropTypes<{
36
35
  span: (StringConstructor | NumberConstructor)[];
37
36
  order: (StringConstructor | NumberConstructor)[];
@@ -100,17 +99,18 @@ declare function __VLS_template(): {
100
99
  }>> & HTMLAttributes) | undefined;
101
100
  readonly colon?: boolean | undefined;
102
101
  readonly labelAlign?: FormLabelAlign | undefined;
103
- readonly name?: string | undefined;
104
- readonly rules?: {
105
- [k: string]: RuleObject | RuleObject[];
106
- } | undefined;
107
- readonly validateTrigger?: string | string[] | undefined;
108
102
  readonly labelWrap?: boolean | undefined;
103
+ readonly prefixCls?: string | undefined;
109
104
  readonly requiredMark?: "" | RequiredMark | undefined;
110
105
  readonly hideRequiredMark?: boolean | undefined;
106
+ readonly rules?: {
107
+ [k: string]: RuleObject | RuleObject[];
108
+ } | undefined;
111
109
  readonly validateMessages?: ValidateMessages | undefined;
112
110
  readonly validateOnRuleChange?: boolean | undefined;
113
111
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
112
+ readonly name?: string | undefined;
113
+ readonly validateTrigger?: string | string[] | undefined;
114
114
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
115
115
  readonly onFinish?: ((values: any) => void) | undefined;
116
116
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
@@ -797,9 +797,9 @@ declare function __VLS_template(): {
797
797
  layout: string;
798
798
  colon: boolean;
799
799
  labelAlign: FormLabelAlign;
800
- validateTrigger: string | string[];
801
800
  hideRequiredMark: boolean;
802
801
  validateOnRuleChange: boolean;
802
+ validateTrigger: string | string[];
803
803
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
804
804
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
805
805
  beforeCreate?: (() => void) | (() => void)[];
@@ -825,11 +825,11 @@ declare function __VLS_template(): {
825
825
  layout: string;
826
826
  colon: boolean;
827
827
  labelAlign: FormLabelAlign;
828
- validateTrigger: string | string[];
829
828
  hideRequiredMark: boolean;
830
829
  validateOnRuleChange: boolean;
830
+ validateTrigger: string | string[];
831
831
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
832
- }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
832
+ }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
833
833
  setFieldsValue: (fields: Partial<any>) => void;
834
834
  setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
835
835
  resetFields: () => Promise<void>;
@@ -874,9 +874,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
874
874
  open: boolean;
875
875
  colon: boolean;
876
876
  labelAlign: FormLabelAlign;
877
- validateTrigger: string | string[];
878
877
  hideRequiredMark: boolean;
879
878
  validateOnRuleChange: boolean;
879
+ validateTrigger: string | string[];
880
880
  submitter: false | ApFormSubmitterConfig;
881
881
  showCancel: boolean;
882
882
  drawerProps: Omit<Partial< ExtractPropTypes<{
@@ -990,7 +990,6 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
990
990
  readonly onSubmit?: ((e: Event) => void) | undefined;
991
991
  readonly layout?: string | undefined;
992
992
  readonly disabled?: boolean | undefined;
993
- readonly prefixCls?: string | undefined;
994
993
  readonly labelCol?: (Partial< ExtractPropTypes<{
995
994
  span: (StringConstructor | NumberConstructor)[];
996
995
  order: (StringConstructor | NumberConstructor)[];
@@ -1059,17 +1058,18 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1059
1058
  }>> & HTMLAttributes) | undefined;
1060
1059
  readonly colon?: boolean | undefined;
1061
1060
  readonly labelAlign?: FormLabelAlign | undefined;
1062
- readonly name?: string | undefined;
1063
- readonly rules?: {
1064
- [k: string]: RuleObject | RuleObject[];
1065
- } | undefined;
1066
- readonly validateTrigger?: string | string[] | undefined;
1067
1061
  readonly labelWrap?: boolean | undefined;
1062
+ readonly prefixCls?: string | undefined;
1068
1063
  readonly requiredMark?: "" | RequiredMark | undefined;
1069
1064
  readonly hideRequiredMark?: boolean | undefined;
1065
+ readonly rules?: {
1066
+ [k: string]: RuleObject | RuleObject[];
1067
+ } | undefined;
1070
1068
  readonly validateMessages?: ValidateMessages | undefined;
1071
1069
  readonly validateOnRuleChange?: boolean | undefined;
1072
1070
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
1071
+ readonly name?: string | undefined;
1072
+ readonly validateTrigger?: string | string[] | undefined;
1073
1073
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
1074
1074
  readonly onFinish?: ((values: any) => void) | undefined;
1075
1075
  readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
@@ -1756,9 +1756,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1756
1756
  layout: string;
1757
1757
  colon: boolean;
1758
1758
  labelAlign: FormLabelAlign;
1759
- validateTrigger: string | string[];
1760
1759
  hideRequiredMark: boolean;
1761
1760
  validateOnRuleChange: boolean;
1761
+ validateTrigger: string | string[];
1762
1762
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
1763
1763
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1764
1764
  beforeCreate?: (() => void) | (() => void)[];
@@ -1784,11 +1784,11 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
1784
1784
  layout: string;
1785
1785
  colon: boolean;
1786
1786
  labelAlign: FormLabelAlign;
1787
- validateTrigger: string | string[];
1788
1787
  hideRequiredMark: boolean;
1789
1788
  validateOnRuleChange: boolean;
1789
+ validateTrigger: string | string[];
1790
1790
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
1791
- }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
1791
+ }> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
1792
1792
  setFieldsValue: (fields: Partial<any>) => void;
1793
1793
  setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
1794
1794
  resetFields: () => Promise<void>;
@@ -1,8 +1,9 @@
1
1
  import { ButtonProps, ColProps, DrawerProps, FormItemProps, FormProps, ModalProps, RowProps } from '@aplus-frontend/antdv';
2
2
  import { FormItemExpose } from '@aplus-frontend/antdv/es/form/FormItem';
3
3
  import { InternalNamePath, NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
4
- import { Recordable } from '../type';
4
+ import { LiteralUnion, Recordable } from '../type';
5
5
  import { VNode } from 'vue';
6
+ import { BreakPointType } from './search-form/hooks/use-count-per-row';
6
7
  export type { ApFormChangeInfo, ApFormFinishInfo } from './provider/interface';
7
8
  export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
8
9
  export type ApFormItemTransformFn = (value: any) => any;
@@ -147,6 +148,10 @@ export type ApFormItemExpose = FormItemExpose & {
147
148
  */
148
149
  getFieldValue: (shouldFormat?: boolean) => any;
149
150
  };
151
+ export type SearchFormResizeConfig = {
152
+ target?: LiteralUnion<'document' | 'form', string>;
153
+ breakPoint?: BreakPointType;
154
+ };
150
155
  export type ApFormListProps = {
151
156
  name: FormItemProps['name'];
152
157
  /**
@@ -178,8 +183,14 @@ export type ApFormSearchFormProps = ApFormProps & {
178
183
  sortable?: boolean;
179
184
  /**
180
185
  * 尺寸监听目标元素(用于响应式)
186
+ * @deprecated use `resize` instead.
181
187
  */
182
188
  resizeTarget?: HTMLElement | null;
189
+ /**
190
+ * 尺寸变化配置项
191
+ * @since 6.35.3
192
+ */
193
+ resize?: SearchFormResizeConfig;
183
194
  /**
184
195
  * 查询按钮loading延迟(默认300ms)
185
196
  */