@aplus-frontend/ui 0.4.1 → 0.4.3

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 (128) hide show
  1. package/es/src/ap-field/date/helper.d.ts +1 -1
  2. package/es/src/ap-field/date/helper.mjs +9 -9
  3. package/es/src/ap-field/date/index.vue.mjs +33 -25
  4. package/es/src/ap-field/date-range/index.vue.mjs +44 -43
  5. package/es/src/ap-field/interface.d.ts +0 -6
  6. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  7. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  8. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  9. package/es/src/ap-field/select/index.vue.d.ts +407 -1
  10. package/es/src/ap-field/select/index.vue.mjs +14 -13
  11. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  12. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  13. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  14. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  15. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  16. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  18. package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
  19. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  20. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  21. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  22. package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
  23. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  24. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  25. package/es/src/ap-list/index.vue.d.ts +1 -1
  26. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  27. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  28. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  29. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  30. package/es/src/ap-table/constants.d.ts +2263 -13
  31. package/es/src/ap-table/context.d.ts +1 -0
  32. package/es/src/ap-table/context.mjs +11 -10
  33. package/es/src/ap-table/utils.d.ts +1180 -8
  34. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  35. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  36. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  37. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  38. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  39. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  40. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
  41. package/es/src/business/ap-batch-action/index.d.ts +5 -3
  42. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  43. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  44. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  45. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
  46. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  47. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  48. package/es/src/business/ap-group-search/index.d.ts +418 -4
  49. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  50. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
  51. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  52. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  53. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  54. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  55. package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
  56. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  57. package/es/src/business/hooks/usePageListApTable.mjs +20 -18
  58. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  59. package/es/src/editable-table/index.vue.d.ts +1 -1
  60. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  61. package/lib/src/ap-field/date/helper.d.ts +1 -1
  62. package/lib/src/ap-field/date/helper.js +1 -1
  63. package/lib/src/ap-field/date/index.vue.js +1 -1
  64. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  65. package/lib/src/ap-field/interface.d.ts +0 -6
  66. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  67. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  68. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  69. package/lib/src/ap-field/select/index.vue.d.ts +407 -1
  70. package/lib/src/ap-field/select/index.vue.js +1 -1
  71. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  72. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  73. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  74. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  75. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  76. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  77. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  78. package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
  79. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  80. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  81. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  84. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  85. package/lib/src/ap-list/index.vue.d.ts +1 -1
  86. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  87. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  88. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  89. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  90. package/lib/src/ap-table/constants.d.ts +2263 -13
  91. package/lib/src/ap-table/context.d.ts +1 -0
  92. package/lib/src/ap-table/context.js +1 -1
  93. package/lib/src/ap-table/utils.d.ts +1180 -8
  94. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  95. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  96. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  97. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  98. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  99. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  100. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  101. package/lib/src/business/ap-batch-action/index.d.ts +5 -3
  102. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  103. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  104. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  105. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  106. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  107. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  108. package/lib/src/business/ap-group-search/index.d.ts +418 -4
  109. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
  110. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  111. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  112. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  113. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  114. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  115. package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
  116. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  117. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  118. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  119. package/lib/src/editable-table/index.vue.d.ts +1 -1
  120. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  121. package/package.json +5 -5
  122. package/theme/ap-form/index.css +3 -4
  123. package/theme/ap-form/modal-form.css +3 -4
  124. package/theme/ap-form/modal-form.less +3 -4
  125. package/theme/ap-table/ap-table.css +3 -4
  126. package/theme/ap-table-modal/index.css +3 -4
  127. package/theme/editable-table/index.css +3 -4
  128. package/theme/index.css +3 -4
@@ -7,5 +7,5 @@ export declare const formatDay: (d: Dayjs, f: string, begin?: boolean) => number
7
7
  * @param timezone
8
8
  * @returns
9
9
  */
10
- export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f: string, begin?: boolean) => number | null;
10
+ export declare function formatDayWithTimezone(timezone?: ZoneAlias): (d: Dayjs, f?: string, begin?: boolean) => number | null;
11
11
  export declare const formatValue: (v: EventValue<Dayjs>) => number | null;
@@ -1,18 +1,18 @@
1
1
  import { getUtcTimestamp as m } from "@aplus-frontend/utils";
2
2
  import n from "dayjs";
3
- const i = (o, e, r = !0) => {
4
- if (!o)
3
+ const i = (e, r, o = !0) => {
4
+ if (!e)
5
5
  return null;
6
- let t = o.clone();
7
- return t = t.millisecond(0), e.indexOf("ss") === -1 && (t = t.second(r ? 0 : 59)), e.indexOf("mm") === -1 && (t = t.minute(r ? 0 : 59)), e.indexOf("HH") === -1 && (t = t.hour(r ? 0 : 23)), e.indexOf("DD") === -1 && (t = t.date(r ? 1 : 0), r || (t = t.month(t.month() + 1))), e.indexOf("MM") === -1 && (t = t.month(r ? 0 : 12)), t.valueOf();
6
+ let t = e.clone();
7
+ return t = t.millisecond(0), r.indexOf("ss") === -1 && (t = t.second(o ? 0 : 59)), r.indexOf("mm") === -1 && (t = t.minute(o ? 0 : 59)), r.indexOf("HH") === -1 && (t = t.hour(o ? 0 : 23)), r.indexOf("DD") === -1 && (t = t.date(o ? 1 : 0), o || (t = t.month(t.month() + 1))), r.indexOf("MM") === -1 && (t = t.month(o ? 0 : 12)), t.valueOf();
8
8
  };
9
- function d(o) {
10
- return (e, r, t = !0) => {
11
- const f = i(e, r, t);
12
- return o ? m(n(f), o) : f;
9
+ function d(e) {
10
+ return (r, o, t = !0) => {
11
+ const f = o ? i(r, o, t) : r.valueOf();
12
+ return e ? m(n(f), e) : f;
13
13
  };
14
14
  }
15
- const l = (o) => o && o.valueOf();
15
+ const l = (e) => e && e.valueOf();
16
16
  export {
17
17
  i as formatDay,
18
18
  d as formatDayWithTimezone,
@@ -87,20 +87,20 @@ const le = /* @__PURE__ */ b({
87
87
  },
88
88
  emits: ["update:value"],
89
89
  setup(h, { emit: B }) {
90
- const e = h, k = B, { value: p, updateValue: m } = Z(
90
+ const e = h, k = B, { value: p, updateValue: c } = Z(
91
91
  e,
92
92
  k
93
- ), P = Y("Date", e), l = i(
93
+ ), P = Y("Date", e), n = i(
94
94
  () => I.indexOf(e.format) > -1
95
95
  ), d = i(
96
- () => l.value ? H[e.format] : e.format
97
- ), f = i(() => {
96
+ () => n.value ? H[e.format] : e.format
97
+ ), m = i(() => {
98
98
  if (y(t(p)))
99
99
  return;
100
100
  let o = r(t(p));
101
101
  return e.timezone && (o = r(W(t(p), e.timezone))), o;
102
- }), g = i(() => t(l) ? e.picker ?? U[e.format] : e.picker), O = i(() => {
103
- const o = t(l) ? K[e.format] : {};
102
+ }), g = i(() => t(n) ? e.picker ?? U[e.format] : e.picker), C = i(() => {
103
+ const o = t(n) ? K[e.format] : {};
104
104
  return {
105
105
  ...$(e, [
106
106
  "value",
@@ -114,39 +114,47 @@ const le = /* @__PURE__ */ b({
114
114
  placeholder: t(P),
115
115
  ...o
116
116
  };
117
- }), c = L(e.timezone);
118
- function C(o) {
117
+ }), f = L(e.timezone);
118
+ function O(o) {
119
119
  if (y(o)) {
120
- m(null);
120
+ c(null);
121
121
  return;
122
122
  }
123
- const a = r(o);
124
- t(l) ? m(c(a, t(d))) : m(a.valueOf());
123
+ const l = r(o);
124
+ c(
125
+ f(l, t(n) ? t(d) : void 0)
126
+ );
125
127
  }
126
- function T(o, a) {
128
+ function T(o, l) {
127
129
  var s;
128
- const u = r(o), n = o ? t(l) ? c(u, t(d)) : u.valueOf() : null;
129
- (s = e.onChange) == null || s.call(e, n, a);
130
+ const u = r(o), a = o ? f(
131
+ u,
132
+ t(n) ? t(d) : void 0
133
+ ) : null;
134
+ (s = e.onChange) == null || s.call(e, a, l);
130
135
  }
131
136
  function S(o) {
132
- var n;
133
- const a = r(o), u = o ? t(l) ? c(a, t(d)) : a.valueOf() : null;
134
- (n = e.onOk) == null || n.call(e, u);
137
+ var a;
138
+ const l = r(o), u = o ? f(
139
+ l,
140
+ t(n) ? t(d) : void 0
141
+ ) : null;
142
+ (a = e.onOk) == null || a.call(e, u);
135
143
  }
136
- return (o, a) => o.mode === "read" ? (v(), _(w, { key: 0 }, [
137
- M(R(f.value ? t(r)(f.value).format(d.value) : o.emptyText), 1)
138
- ], 64)) : (v(), F(t(j), A({ key: 1 }, O.value, {
139
- value: f.value,
144
+ return (o, l) => o.mode === "read" ? (v(), _(w, { key: 0 }, [
145
+ M(R(m.value ? t(r)(m.value).format(d.value) : o.emptyText), 1)
146
+ ], 64)) : (v(), F(t(j), A({ key: 1 }, C.value, {
147
+ value: m.value,
140
148
  format: d.value,
141
149
  picker: g.value,
142
- "onUpdate:value": C,
150
+ "onUpdate:value": O,
143
151
  onChange: T,
144
152
  onOk: S
145
153
  }), D({ _: 2 }, [
146
- x(o.$slots, (u, n) => ({
147
- name: n,
154
+ x(o.$slots, (u, a) => ({
155
+ name: a,
148
156
  fn: E((s) => [
149
- V(o.$slots, n, z(N(s || {})))
157
+ V(o.$slots, a, z(N(s || {})))
150
158
  ])
151
159
  }))
152
160
  ]), 1040, ["value", "format", "picker"]));
@@ -1,10 +1,10 @@
1
- import { defineComponent as U, useSlots as H, computed as p, unref as n, isVNode as K, createVNode as M, Fragment as y, openBlock as h, createElementBlock as B, createTextVNode as O, toDisplayString as P, createBlock as D, resolveDynamicComponent as $, mergeProps as L, createSlots as W, renderList as Y, withCtx as Z, renderSlot as q, normalizeProps as G, guardReactiveProps as J } from "vue";
1
+ import { defineComponent as U, useSlots as H, computed as m, unref as n, isVNode as K, createVNode as T, Fragment as h, openBlock as g, createElementBlock as v, createTextVNode as B, toDisplayString as P, createBlock as O, resolveDynamicComponent as $, mergeProps as L, createSlots as W, renderList as Y, withCtx as Z, renderSlot as q, normalizeProps as G, guardReactiveProps as J } from "vue";
2
2
  import { ApFieldDatePresetFormats as Q, PRESET_FORMAT_MAP as X, PRESET_FORMAT_PICK_MAP as ee, PRESET_FORMAT_TIME_MAP as oe } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
- import { isNil as T, omit as b, isString as m, isFunction as ne } from "lodash-unified";
5
- import d from "dayjs";
4
+ import { isNil as b, omit as R, isString as c, isFunction as ne } from "lodash-unified";
5
+ import u from "dayjs";
6
6
  import { DatePicker as te } from "@aplus-frontend/antdv";
7
- import { formatDayWithTimezone as ae, formatValue as R } from "../date/helper.mjs";
7
+ import { formatDayWithTimezone as ae } from "../date/helper.mjs";
8
8
  import { SwapRightOutlined as re } from "@ant-design/icons-vue";
9
9
  import { omitUndefined as le } from "../../utils/index.mjs";
10
10
  import { getTimeFormatToZone as w } from "@aplus-frontend/utils";
@@ -153,76 +153,77 @@ const Be = /* @__PURE__ */ U({
153
153
  setup(_, {
154
154
  emit: A
155
155
  }) {
156
- const o = _, F = A, S = H(), u = p(() => Q.indexOf(o.format) > -1), l = p(() => u.value ? X[o.format] : o.format), {
157
- value: c,
158
- updateValue: k
159
- } = de(o, F), N = ue("DateRange", o), s = ae(o.timezone), v = p(() => {
160
- var r, i;
161
- const e = n(c);
162
- if (T(e) || !(e != null && e.length))
156
+ const o = _, F = A, k = H(), d = m(() => Q.indexOf(o.format) > -1), i = m(() => d.value ? X[o.format] : o.format), {
157
+ value: y,
158
+ updateValue: C
159
+ } = de(o, F), N = ue("DateRange", o), f = ae(o.timezone), S = m(() => {
160
+ var a, l;
161
+ const e = n(y);
162
+ if (b(e) || !(e != null && e.length))
163
163
  return e;
164
- const a = o.timezone ? w(n(c)[0], o.timezone) : (r = n(c)) == null ? void 0 : r[0], t = o.timezone ? w(n(c)[1], o.timezone) : (i = n(c)) == null ? void 0 : i[1];
165
- return [d(a), d(t)];
166
- }), x = p(() => n(u) ? o.picker ?? ee[o.format] : o.picker), z = p(() => {
167
- const e = n(u) ? oe[o.format] : {};
164
+ const r = o.timezone ? w(n(y)[0], o.timezone) : (a = n(y)) == null ? void 0 : a[0], t = o.timezone ? w(n(y)[1], o.timezone) : (l = n(y)) == null ? void 0 : l[1];
165
+ return [u(r), u(t)];
166
+ }), x = m(() => n(d) ? o.picker ?? ee[o.format] : o.picker), z = m(() => {
167
+ const e = n(d) ? oe[o.format] : {};
168
168
  return {
169
- ...le(b(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode"])),
169
+ ...le(R(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode"])),
170
170
  placeholder: n(N),
171
171
  ...e
172
172
  };
173
173
  });
174
174
  function E(e) {
175
175
  if (!e) {
176
- k(e);
176
+ C(e);
177
177
  return;
178
178
  }
179
- let a = m(e[0]) ? d(e[0]) : e[0], t = m(e[1]) ? d(e[1]) : e[1];
180
- n(u) ? k([s(a, n(l)), s(t, n(l), !1)]) : k([R(a), R(t)]);
179
+ let r = c(e[0]) ? u(e[0]) : e[0], t = c(e[1]) ? u(e[1]) : e[1];
180
+ const a = n(d) ? n(i) : void 0;
181
+ C([f(r, a), f(t, a, !1)]);
181
182
  }
182
183
  function V(e) {
183
- var f;
184
- const a = m(e[0]) ? d(e[0]) : e[0], t = m(e[1]) ? d(e[1]) : e[1], r = e[0] ? n(u) ? s(a, n(l)) : a.valueOf() : null, i = e[1] ? n(u) ? s(t, n(l), !1) : t.valueOf() : null;
185
- (f = o.onOk) == null || f.call(o, [r, i]);
184
+ var p;
185
+ const r = c(e[0]) ? u(e[0]) : e[0], t = c(e[1]) ? u(e[1]) : e[1], a = n(d) ? n(i) : void 0, l = e[0] ? f(r, a) : null, s = e[1] ? f(t, a, !1) : null;
186
+ (p = o.onOk) == null || p.call(o, [l, s]);
186
187
  }
187
- function I(e, a) {
188
- var g, C;
189
- if (T(e)) {
190
- (g = o.onChange) == null || g.call(o, e, a);
188
+ function I(e, r) {
189
+ var M, D;
190
+ if (b(e)) {
191
+ (M = o.onChange) == null || M.call(o, e, r);
191
192
  return;
192
193
  }
193
- const t = m(e[0]) ? d(e[0]) : e[0], r = m(e[1]) ? d(e[1]) : e[1], i = e[0] ? n(u) ? s(t, n(l)) : t.valueOf() : null, f = e[1] ? n(u) ? s(r, n(l), !1) : r.valueOf() : null;
194
- (C = o.onChange) == null || C.call(o, [i, f], a);
194
+ const t = c(e[0]) ? u(e[0]) : e[0], a = c(e[1]) ? u(e[1]) : e[1], l = n(d) ? n(i) : void 0, s = e[0] ? f(t, l) : null, p = e[1] ? f(a, l, !1) : null;
195
+ (D = o.onChange) == null || D.call(o, [s, p], r);
195
196
  }
196
- const j = p(() => {
197
+ const j = m(() => {
197
198
  var t;
198
199
  const e = o.readModeSeparator;
199
200
  if (e)
200
- return K(e) || ne(e) ? o.readModeSeparator : M(y, null, [o.readModeSeparator]);
201
- const a = (t = S.readModeSeparator) == null ? void 0 : t.call(S);
202
- return a ? M(y, null, [a]) : re;
201
+ return K(e) || ne(e) ? o.readModeSeparator : T(h, null, [o.readModeSeparator]);
202
+ const r = (t = k.readModeSeparator) == null ? void 0 : t.call(k);
203
+ return r ? T(h, null, [r]) : re;
203
204
  });
204
- return (e, a) => {
205
- var t, r;
206
- return e.mode === "read" ? (h(), B(y, {
205
+ return (e, r) => {
206
+ var t, a;
207
+ return e.mode === "read" ? (g(), v(h, {
207
208
  key: 0
208
- }, [v.value ? (h(), B(y, {
209
+ }, [S.value ? (g(), v(h, {
209
210
  key: 0
210
- }, [O(P((t = v.value[0]) == null ? void 0 : t.format(l.value)) + " ", 1), (h(), D($(j.value))), O(" " + P((r = v.value[1]) == null ? void 0 : r.format(l.value)), 1)], 64)) : (h(), B(y, {
211
+ }, [B(P((t = S.value[0]) == null ? void 0 : t.format(i.value)) + " ", 1), (g(), O($(j.value))), B(" " + P((a = S.value[1]) == null ? void 0 : a.format(i.value)), 1)], 64)) : (g(), v(h, {
211
212
  key: 1
212
- }, [O(P(e.emptyText), 1)], 64))], 64)) : (h(), D(n(te).RangePicker, L({
213
+ }, [B(P(e.emptyText), 1)], 64))], 64)) : (g(), O(n(te).RangePicker, L({
213
214
  key: 1
214
215
  }, z.value, {
215
- value: v.value,
216
+ value: S.value,
216
217
  picker: x.value,
217
- format: l.value,
218
+ format: i.value,
218
219
  "onUpdate:value": E,
219
220
  onChange: I,
220
221
  onOk: V
221
222
  }), W({
222
223
  _: 2
223
- }, [Y(n(b)(e.$slots, "readModeSeparator"), (i, f) => ({
224
- name: f,
225
- fn: Z((g) => [q(e.$slots, f, G(J(g || {})))])
224
+ }, [Y(n(R)(e.$slots, "readModeSeparator"), (l, s) => ({
225
+ name: s,
226
+ fn: Z((p) => [q(e.$slots, s, G(J(p || {})))])
226
227
  }))]), 1040, ["value", "picker", "format"]));
227
228
  };
228
229
  }
@@ -6,7 +6,6 @@ import { RangePickerProps } from '@aplus-frontend/antdv/es/date-picker/dayjs';
6
6
  import { LiteralUnion } from '../type';
7
7
  import { InputPasswordProps } from './text/input-password-props';
8
8
  import { ZoneAlias } from '@aplus-frontend/utils';
9
- import { SelectValue } from '@aplus-frontend/antdv/es/select';
10
9
  export type FieldMode = 'read' | 'edit';
11
10
  export type BasicApFieldProps<FieldPropsType = any> = {
12
11
  mode?: FieldMode;
@@ -119,11 +118,6 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
119
118
  * 是否延迟请求选项列表
120
119
  */
121
120
  lazy?: boolean;
122
- /**
123
- * 选中之前调用,如果返回false,则不更新值,支持异步
124
- * @returns
125
- */
126
- onBeforeSelect?: (newVal: SelectValue) => boolean | Promise<boolean>;
127
121
  };
128
122
  export type ApFieldSelectExpose = {
129
123
  focus: () => void;
@@ -360,7 +360,328 @@ declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
360
360
  controls: boolean;
361
361
  emptyText: string;
362
362
  thousands: boolean;
363
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
363
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
364
+ inputRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
365
+ size: {
366
+ type: PropType<ButtonSize>;
367
+ default: ButtonSize;
368
+ };
369
+ bordered: {
370
+ type: BooleanConstructor;
371
+ default: boolean;
372
+ };
373
+ placeholder: StringConstructor;
374
+ name: StringConstructor;
375
+ id: StringConstructor;
376
+ type: StringConstructor;
377
+ addonBefore: VueTypeValidableDef<any>;
378
+ addonAfter: VueTypeValidableDef<any>;
379
+ prefix: VueTypeValidableDef<any>;
380
+ suffix: VueTypeValidableDef<any>;
381
+ 'onUpdate:value': {
382
+ type: PropType<(value: ValueType) => void>;
383
+ default: (value: ValueType) => void;
384
+ };
385
+ valueModifiers: ObjectConstructor;
386
+ status: {
387
+ type: PropType<"" | "error" | "warning">;
388
+ default: "" | "error" | "warning";
389
+ };
390
+ stringMode: {
391
+ type: BooleanConstructor;
392
+ default: boolean;
393
+ };
394
+ defaultValue: {
395
+ type: PropType<ValueType>;
396
+ default: ValueType;
397
+ };
398
+ value: {
399
+ type: PropType<ValueType>;
400
+ default: ValueType;
401
+ };
402
+ prefixCls: {
403
+ type: PropType<string>;
404
+ default: string;
405
+ };
406
+ min: {
407
+ type: PropType<ValueType>;
408
+ default: ValueType;
409
+ };
410
+ max: {
411
+ type: PropType<ValueType>;
412
+ default: ValueType;
413
+ };
414
+ step: {
415
+ type: PropType<ValueType>;
416
+ default: ValueType;
417
+ };
418
+ tabindex: NumberConstructor;
419
+ controls: {
420
+ type: BooleanConstructor;
421
+ default: boolean;
422
+ };
423
+ readonly: {
424
+ type: BooleanConstructor;
425
+ default: boolean;
426
+ };
427
+ disabled: {
428
+ type: BooleanConstructor;
429
+ default: boolean;
430
+ };
431
+ autofocus: {
432
+ type: BooleanConstructor;
433
+ default: boolean;
434
+ };
435
+ keyboard: {
436
+ type: BooleanConstructor;
437
+ default: boolean;
438
+ };
439
+ parser: {
440
+ type: PropType<(displayValue: string) => ValueType>;
441
+ default: (displayValue: string) => ValueType;
442
+ };
443
+ formatter: {
444
+ type: PropType<(value: ValueType, info: {
445
+ userTyping: boolean;
446
+ input: string;
447
+ }) => string>;
448
+ default: (value: ValueType, info: {
449
+ userTyping: boolean;
450
+ input: string;
451
+ }) => string;
452
+ };
453
+ precision: NumberConstructor;
454
+ decimalSeparator: StringConstructor;
455
+ onInput: {
456
+ type: PropType<(text: string) => void>;
457
+ default: (text: string) => void;
458
+ };
459
+ onChange: {
460
+ type: PropType<(value: ValueType) => void>;
461
+ default: (value: ValueType) => void;
462
+ };
463
+ onPressEnter: {
464
+ type: PropType<KeyboardEventHandler>;
465
+ default: KeyboardEventHandler;
466
+ };
467
+ onStep: {
468
+ type: PropType<(value: ValueType, info: {
469
+ offset: ValueType;
470
+ type: "up" | "down";
471
+ }) => void>;
472
+ default: (value: ValueType, info: {
473
+ offset: ValueType;
474
+ type: "up" | "down";
475
+ }) => void;
476
+ };
477
+ onBlur: {
478
+ type: PropType<(e: FocusEvent) => void>;
479
+ default: (e: FocusEvent) => void;
480
+ };
481
+ onFocus: {
482
+ type: PropType<(e: FocusEvent) => void>;
483
+ default: (e: FocusEvent) => void;
484
+ };
485
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
486
+ size: ButtonSize;
487
+ value: ValueType;
488
+ onFocus: (e: FocusEvent) => void;
489
+ onBlur: (e: FocusEvent) => void;
490
+ onChange: (value: ValueType) => void;
491
+ onInput: (text: string) => void;
492
+ disabled: boolean;
493
+ max: ValueType;
494
+ min: ValueType;
495
+ prefixCls: string;
496
+ autofocus: boolean;
497
+ readonly: boolean;
498
+ status: "" | "error" | "warning";
499
+ defaultValue: ValueType;
500
+ 'onUpdate:value': (value: ValueType) => void;
501
+ step: ValueType;
502
+ bordered: boolean;
503
+ onPressEnter: KeyboardEventHandler;
504
+ formatter: (value: ValueType, info: {
505
+ userTyping: boolean;
506
+ input: string;
507
+ }) => string;
508
+ keyboard: boolean;
509
+ onStep: (value: ValueType, info: {
510
+ offset: ValueType;
511
+ type: "up" | "down";
512
+ }) => void;
513
+ stringMode: boolean;
514
+ controls: boolean;
515
+ parser: (displayValue: string) => ValueType;
516
+ }, true, {}, CustomSlotsType<{
517
+ addonBefore?: any;
518
+ addonAfter?: any;
519
+ prefix?: any;
520
+ suffix?: any;
521
+ default?: any;
522
+ upIcon?: any;
523
+ downIcon?: any;
524
+ }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
525
+ P: {};
526
+ B: {};
527
+ D: {};
528
+ C: {};
529
+ M: {};
530
+ Defaults: {};
531
+ }, Readonly< ExtractPropTypes<{
532
+ size: {
533
+ type: PropType<ButtonSize>;
534
+ default: ButtonSize;
535
+ };
536
+ bordered: {
537
+ type: BooleanConstructor;
538
+ default: boolean;
539
+ };
540
+ placeholder: StringConstructor;
541
+ name: StringConstructor;
542
+ id: StringConstructor;
543
+ type: StringConstructor;
544
+ addonBefore: VueTypeValidableDef<any>;
545
+ addonAfter: VueTypeValidableDef<any>;
546
+ prefix: VueTypeValidableDef<any>;
547
+ suffix: VueTypeValidableDef<any>;
548
+ 'onUpdate:value': {
549
+ type: PropType<(value: ValueType) => void>;
550
+ default: (value: ValueType) => void;
551
+ };
552
+ valueModifiers: ObjectConstructor;
553
+ status: {
554
+ type: PropType<"" | "error" | "warning">;
555
+ default: "" | "error" | "warning";
556
+ };
557
+ stringMode: {
558
+ type: BooleanConstructor;
559
+ default: boolean;
560
+ };
561
+ defaultValue: {
562
+ type: PropType<ValueType>;
563
+ default: ValueType;
564
+ };
565
+ value: {
566
+ type: PropType<ValueType>;
567
+ default: ValueType;
568
+ };
569
+ prefixCls: {
570
+ type: PropType<string>;
571
+ default: string;
572
+ };
573
+ min: {
574
+ type: PropType<ValueType>;
575
+ default: ValueType;
576
+ };
577
+ max: {
578
+ type: PropType<ValueType>;
579
+ default: ValueType;
580
+ };
581
+ step: {
582
+ type: PropType<ValueType>;
583
+ default: ValueType;
584
+ };
585
+ tabindex: NumberConstructor;
586
+ controls: {
587
+ type: BooleanConstructor;
588
+ default: boolean;
589
+ };
590
+ readonly: {
591
+ type: BooleanConstructor;
592
+ default: boolean;
593
+ };
594
+ disabled: {
595
+ type: BooleanConstructor;
596
+ default: boolean;
597
+ };
598
+ autofocus: {
599
+ type: BooleanConstructor;
600
+ default: boolean;
601
+ };
602
+ keyboard: {
603
+ type: BooleanConstructor;
604
+ default: boolean;
605
+ };
606
+ parser: {
607
+ type: PropType<(displayValue: string) => ValueType>;
608
+ default: (displayValue: string) => ValueType;
609
+ };
610
+ formatter: {
611
+ type: PropType<(value: ValueType, info: {
612
+ userTyping: boolean;
613
+ input: string;
614
+ }) => string>;
615
+ default: (value: ValueType, info: {
616
+ userTyping: boolean;
617
+ input: string;
618
+ }) => string;
619
+ };
620
+ precision: NumberConstructor;
621
+ decimalSeparator: StringConstructor;
622
+ onInput: {
623
+ type: PropType<(text: string) => void>;
624
+ default: (text: string) => void;
625
+ };
626
+ onChange: {
627
+ type: PropType<(value: ValueType) => void>;
628
+ default: (value: ValueType) => void;
629
+ };
630
+ onPressEnter: {
631
+ type: PropType<KeyboardEventHandler>;
632
+ default: KeyboardEventHandler;
633
+ };
634
+ onStep: {
635
+ type: PropType<(value: ValueType, info: {
636
+ offset: ValueType;
637
+ type: "up" | "down";
638
+ }) => void>;
639
+ default: (value: ValueType, info: {
640
+ offset: ValueType;
641
+ type: "up" | "down";
642
+ }) => void;
643
+ };
644
+ onBlur: {
645
+ type: PropType<(e: FocusEvent) => void>;
646
+ default: (e: FocusEvent) => void;
647
+ };
648
+ onFocus: {
649
+ type: PropType<(e: FocusEvent) => void>;
650
+ default: (e: FocusEvent) => void;
651
+ };
652
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
653
+ size: ButtonSize;
654
+ value: ValueType;
655
+ onFocus: (e: FocusEvent) => void;
656
+ onBlur: (e: FocusEvent) => void;
657
+ onChange: (value: ValueType) => void;
658
+ onInput: (text: string) => void;
659
+ disabled: boolean;
660
+ max: ValueType;
661
+ min: ValueType;
662
+ prefixCls: string;
663
+ autofocus: boolean;
664
+ readonly: boolean;
665
+ status: "" | "error" | "warning";
666
+ defaultValue: ValueType;
667
+ 'onUpdate:value': (value: ValueType) => void;
668
+ step: ValueType;
669
+ bordered: boolean;
670
+ onPressEnter: KeyboardEventHandler;
671
+ formatter: (value: ValueType, info: {
672
+ userTyping: boolean;
673
+ input: string;
674
+ }) => string;
675
+ keyboard: boolean;
676
+ onStep: (value: ValueType, info: {
677
+ offset: ValueType;
678
+ type: "up" | "down";
679
+ }) => void;
680
+ stringMode: boolean;
681
+ controls: boolean;
682
+ parser: (displayValue: string) => ValueType;
683
+ }> | null;
684
+ }, any>;
364
685
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
365
686
  export default _default;
366
687
  type __VLS_WithTemplateSlots<T, S> = T & {