@aplus-frontend/ui 6.35.2 → 6.37.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.
- package/es/src/ag-grid/index.vue.d.ts +2 -30
- package/es/src/ag-grid/index.vue.mjs +1 -1
- package/es/src/ag-grid/interface.d.ts +15 -0
- package/es/src/ap-action/group/index.vue.mjs +41 -34
- package/es/src/ap-action/interface.d.ts +17 -0
- package/es/src/ap-action/item/index.vue2.mjs +34 -25
- package/es/src/ap-action/item-dropdown/index.vue.mjs +22 -20
- package/es/src/ap-action/item-modal/index.vue.mjs +14 -12
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +13 -11
- package/es/src/ap-field/date/index.vue.mjs +6 -5
- package/es/src/ap-field/date/read.vue2.mjs +8 -7
- package/es/src/ap-field/date-range/index.vue.mjs +20 -17
- package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
- package/es/src/ap-field/index.d.ts +3 -3
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
- package/es/src/ap-form/interface.d.ts +12 -1
- package/es/src/ap-form/item/index.vue.d.ts +34 -34
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
- package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
- package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
- package/es/src/ap-form/search-form/index.vue.mjs +94 -88
- package/es/src/ap-modal/utils/createModal.mjs +38 -35
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +77 -77
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
- package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
- package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
- package/es/src/business/ap-attachment/constans.d.ts +4 -0
- package/es/src/business/ap-attachment/constans.mjs +4 -0
- package/es/src/business/ap-attachment/index.d.ts +15 -0
- package/es/src/business/ap-attachment/interface.d.ts +1 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
- package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +16 -1
- package/es/src/utils/config-provider-preset.d.ts +3 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
- package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
- package/lib/src/ag-grid/index.vue.d.ts +2 -30
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +15 -0
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +17 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -3
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
- package/lib/src/ap-form/interface.d.ts +12 -1
- package/lib/src/ap-form/item/index.vue.d.ts +34 -34
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +77 -77
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/constans.d.ts +4 -0
- package/lib/src/business/ap-attachment/constans.js +1 -1
- package/lib/src/business/ap-attachment/index.d.ts +15 -0
- package/lib/src/business/ap-attachment/interface.d.ts +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +16 -1
- package/lib/src/utils/config-provider-preset.d.ts +3 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
- package/theme/ag-grid/index.css +6 -0
- package/theme/ap-action/item.css +6 -0
- package/theme/ap-action/item.less +9 -0
- package/theme/ap-attachment/ap-attachment.css +8 -4
- package/theme/ap-attachment/ap-attachment.less +8 -4
- package/theme/ap-grid/index.css +6 -0
- package/theme/ap-table/ap-table.css +6 -0
- package/theme/ap-table-modal/index.css +6 -0
- package/theme/ap-upload/index.css +6 -0
- package/theme/ap-upload/multiple-file.css +6 -0
- package/theme/ap-upload/multiple-file.less +7 -0
- package/theme/editable-table/index.css +6 -0
- package/theme/index.css +20 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as
|
|
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
|
|
15
|
-
const ze = /* @__PURE__ */
|
|
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 ?
|
|
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
|
-
} =
|
|
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
|
|
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,
|
|
211
|
-
o.onChange?.([D,
|
|
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
|
|
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
|
-
}, [
|
|
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
|
-
}, [
|
|
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(),
|
|
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,
|
|
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(() => [
|
|
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
|
-
}, [
|
|
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
|
|
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(
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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
|
*/
|
|
@@ -29,9 +29,6 @@ declare function __VLS_template(): {
|
|
|
29
29
|
readonly label?: any;
|
|
30
30
|
readonly help?: any;
|
|
31
31
|
readonly tooltip?: string | undefined;
|
|
32
|
-
readonly prefixCls?: string | undefined;
|
|
33
|
-
readonly htmlFor?: string | undefined;
|
|
34
|
-
readonly extra?: any;
|
|
35
32
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
36
33
|
span: (StringConstructor | NumberConstructor)[];
|
|
37
34
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,15 +97,18 @@ declare function __VLS_template(): {
|
|
|
100
97
|
}>> & HTMLAttributes) | undefined;
|
|
101
98
|
readonly colon?: boolean | undefined;
|
|
102
99
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
103
|
-
readonly
|
|
104
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
100
|
+
readonly prefixCls?: string | undefined;
|
|
105
101
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
102
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
103
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
106
104
|
readonly required?: boolean | undefined;
|
|
105
|
+
readonly htmlFor?: string | undefined;
|
|
106
|
+
readonly extra?: any;
|
|
107
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
107
108
|
readonly validateFirst?: boolean | undefined;
|
|
108
109
|
readonly validateStatus?: string | undefined;
|
|
109
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
110
110
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
111
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
111
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
112
112
|
$attrs: {
|
|
113
113
|
[x: string]: unknown;
|
|
114
114
|
};
|
|
@@ -397,7 +397,7 @@ declare function __VLS_template(): {
|
|
|
397
397
|
hidden: BooleanConstructor;
|
|
398
398
|
noStyle: BooleanConstructor;
|
|
399
399
|
tooltip: StringConstructor;
|
|
400
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
400
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any> & {} & ComponentCustomProperties & {} & {
|
|
401
401
|
$: ComponentInternalInstance;
|
|
402
402
|
$data: {};
|
|
403
403
|
$props: Partial<{
|
|
@@ -416,9 +416,6 @@ declare function __VLS_template(): {
|
|
|
416
416
|
readonly label?: any;
|
|
417
417
|
readonly help?: any;
|
|
418
418
|
readonly tooltip?: string | undefined;
|
|
419
|
-
readonly prefixCls?: string | undefined;
|
|
420
|
-
readonly htmlFor?: string | undefined;
|
|
421
|
-
readonly extra?: any;
|
|
422
419
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
423
420
|
span: (StringConstructor | NumberConstructor)[];
|
|
424
421
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -487,15 +484,18 @@ declare function __VLS_template(): {
|
|
|
487
484
|
}>> & HTMLAttributes) | undefined;
|
|
488
485
|
readonly colon?: boolean | undefined;
|
|
489
486
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
490
|
-
readonly
|
|
491
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
487
|
+
readonly prefixCls?: string | undefined;
|
|
492
488
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
489
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
490
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
493
491
|
readonly required?: boolean | undefined;
|
|
492
|
+
readonly htmlFor?: string | undefined;
|
|
493
|
+
readonly extra?: any;
|
|
494
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
494
495
|
readonly validateFirst?: boolean | undefined;
|
|
495
496
|
readonly validateStatus?: string | undefined;
|
|
496
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
497
497
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
498
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
498
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
499
499
|
$attrs: {
|
|
500
500
|
[x: string]: unknown;
|
|
501
501
|
};
|
|
@@ -784,7 +784,7 @@ declare function __VLS_template(): {
|
|
|
784
784
|
hidden: BooleanConstructor;
|
|
785
785
|
noStyle: BooleanConstructor;
|
|
786
786
|
tooltip: StringConstructor;
|
|
787
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
787
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
788
788
|
};
|
|
789
789
|
rootEl: any;
|
|
790
790
|
};
|
|
@@ -796,10 +796,10 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
796
796
|
resetField: () => void;
|
|
797
797
|
getFieldValue: (shouldFormat?: boolean) => any;
|
|
798
798
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
|
|
799
|
-
hasFeedback: boolean;
|
|
800
799
|
colon: boolean;
|
|
801
|
-
autoLink: boolean;
|
|
802
800
|
required: boolean;
|
|
801
|
+
hasFeedback: boolean;
|
|
802
|
+
autoLink: boolean;
|
|
803
803
|
validateFirst: boolean;
|
|
804
804
|
bordered: boolean;
|
|
805
805
|
valuePropName: string;
|
|
@@ -823,9 +823,6 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
823
823
|
readonly label?: any;
|
|
824
824
|
readonly help?: any;
|
|
825
825
|
readonly tooltip?: string | undefined;
|
|
826
|
-
readonly prefixCls?: string | undefined;
|
|
827
|
-
readonly htmlFor?: string | undefined;
|
|
828
|
-
readonly extra?: any;
|
|
829
826
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
830
827
|
span: (StringConstructor | NumberConstructor)[];
|
|
831
828
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -894,15 +891,18 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
894
891
|
}>> & HTMLAttributes) | undefined;
|
|
895
892
|
readonly colon?: boolean | undefined;
|
|
896
893
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
897
|
-
readonly
|
|
898
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
894
|
+
readonly prefixCls?: string | undefined;
|
|
899
895
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
896
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
897
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
900
898
|
readonly required?: boolean | undefined;
|
|
899
|
+
readonly htmlFor?: string | undefined;
|
|
900
|
+
readonly extra?: any;
|
|
901
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
901
902
|
readonly validateFirst?: boolean | undefined;
|
|
902
903
|
readonly validateStatus?: string | undefined;
|
|
903
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
904
904
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
905
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
905
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
906
906
|
$attrs: {
|
|
907
907
|
[x: string]: unknown;
|
|
908
908
|
};
|
|
@@ -1191,7 +1191,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1191
1191
|
hidden: BooleanConstructor;
|
|
1192
1192
|
noStyle: BooleanConstructor;
|
|
1193
1193
|
tooltip: StringConstructor;
|
|
1194
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
1194
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any> & {} & ComponentCustomProperties & {} & {
|
|
1195
1195
|
$: ComponentInternalInstance;
|
|
1196
1196
|
$data: {};
|
|
1197
1197
|
$props: Partial<{
|
|
@@ -1210,9 +1210,6 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1210
1210
|
readonly label?: any;
|
|
1211
1211
|
readonly help?: any;
|
|
1212
1212
|
readonly tooltip?: string | undefined;
|
|
1213
|
-
readonly prefixCls?: string | undefined;
|
|
1214
|
-
readonly htmlFor?: string | undefined;
|
|
1215
|
-
readonly extra?: any;
|
|
1216
1213
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
1217
1214
|
span: (StringConstructor | NumberConstructor)[];
|
|
1218
1215
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1281,15 +1278,18 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1281
1278
|
}>> & HTMLAttributes) | undefined;
|
|
1282
1279
|
readonly colon?: boolean | undefined;
|
|
1283
1280
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1284
|
-
readonly
|
|
1285
|
-
readonly name?: string | number | (string | number)[] | undefined;
|
|
1281
|
+
readonly prefixCls?: string | undefined;
|
|
1286
1282
|
readonly rules?: RuleObject | RuleObject[] | undefined;
|
|
1283
|
+
readonly name?: string | number | (string | number)[] | undefined;
|
|
1284
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
1287
1285
|
readonly required?: boolean | undefined;
|
|
1286
|
+
readonly htmlFor?: string | undefined;
|
|
1287
|
+
readonly extra?: any;
|
|
1288
|
+
readonly prop?: string | number | (string | number)[] | undefined;
|
|
1288
1289
|
readonly validateFirst?: boolean | undefined;
|
|
1289
1290
|
readonly validateStatus?: string | undefined;
|
|
1290
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
1291
1291
|
readonly messageVariables?: Record<string, string> | undefined;
|
|
1292
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "
|
|
1292
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle">;
|
|
1293
1293
|
$attrs: {
|
|
1294
1294
|
[x: string]: unknown;
|
|
1295
1295
|
};
|
|
@@ -1578,7 +1578,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1578
1578
|
hidden: BooleanConstructor;
|
|
1579
1579
|
noStyle: BooleanConstructor;
|
|
1580
1580
|
tooltip: StringConstructor;
|
|
1581
|
-
}>> & Readonly<{}>, "hidden" | "
|
|
1581
|
+
}>> & Readonly<{}>, "hidden" | "colon" | "required" | "hasFeedback" | "autoLink" | "validateFirst" | "noStyle"> & ShallowUnwrapRef<() => any>) | null;
|
|
1582
1582
|
}, any>;
|
|
1583
1583
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1584
1584
|
export default _default;
|
|
@@ -12,10 +12,10 @@ declare function __VLS_template(): {
|
|
|
12
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
13
|
declare const __VLS_component: DefineComponent<ApFormItemCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemCheckboxProps> & Readonly<{}>, {
|
|
14
14
|
disabled: boolean;
|
|
15
|
-
hasFeedback: boolean;
|
|
16
15
|
colon: boolean;
|
|
17
|
-
autoLink: boolean;
|
|
18
16
|
required: boolean;
|
|
17
|
+
hasFeedback: boolean;
|
|
18
|
+
autoLink: boolean;
|
|
19
19
|
validateFirst: boolean;
|
|
20
20
|
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
21
21
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -35,10 +35,10 @@ declare function __VLS_template(): {
|
|
|
35
35
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
36
36
|
declare const __VLS_component: DefineComponent<ApFormItemDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateProps> & Readonly<{}>, {
|
|
37
37
|
disabled: boolean;
|
|
38
|
-
hasFeedback: boolean;
|
|
39
38
|
colon: boolean;
|
|
40
|
-
autoLink: boolean;
|
|
41
39
|
required: boolean;
|
|
40
|
+
hasFeedback: boolean;
|
|
41
|
+
autoLink: boolean;
|
|
42
42
|
validateFirst: boolean;
|
|
43
43
|
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
|
|
44
44
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|