@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
|
@@ -33,10 +33,10 @@ declare function __VLS_template(): {
|
|
|
33
33
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
34
|
declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemDateRangeProps> & Readonly<{}>, {
|
|
35
35
|
disabled: boolean;
|
|
36
|
-
hasFeedback: boolean;
|
|
37
36
|
colon: boolean;
|
|
38
|
-
autoLink: boolean;
|
|
39
37
|
required: boolean;
|
|
38
|
+
hasFeedback: boolean;
|
|
39
|
+
autoLink: boolean;
|
|
40
40
|
validateFirst: boolean;
|
|
41
41
|
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
|
|
42
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -514,10 +514,10 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
514
514
|
blur: () => void;
|
|
515
515
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemNumberProps> & Readonly<{}>, {
|
|
516
516
|
disabled: boolean;
|
|
517
|
-
hasFeedback: boolean;
|
|
518
517
|
colon: boolean;
|
|
519
|
-
autoLink: boolean;
|
|
520
518
|
required: boolean;
|
|
519
|
+
hasFeedback: boolean;
|
|
520
|
+
autoLink: boolean;
|
|
521
521
|
validateFirst: boolean;
|
|
522
522
|
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
|
|
523
523
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -146,10 +146,10 @@ declare const __VLS_component: DefineComponent<ApFormItemRadioProps, {
|
|
|
146
146
|
blur: () => void;
|
|
147
147
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemRadioProps> & Readonly<{}>, {
|
|
148
148
|
disabled: boolean;
|
|
149
|
-
hasFeedback: boolean;
|
|
150
149
|
colon: boolean;
|
|
151
|
-
autoLink: boolean;
|
|
152
150
|
required: boolean;
|
|
151
|
+
hasFeedback: boolean;
|
|
152
|
+
autoLink: boolean;
|
|
153
153
|
validateFirst: boolean;
|
|
154
154
|
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
155
155
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -684,10 +684,10 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
684
684
|
request: () => void;
|
|
685
685
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSelectProps> & Readonly<{}>, {
|
|
686
686
|
disabled: boolean;
|
|
687
|
-
hasFeedback: boolean;
|
|
688
687
|
colon: boolean;
|
|
689
|
-
autoLink: boolean;
|
|
690
688
|
required: boolean;
|
|
689
|
+
hasFeedback: boolean;
|
|
690
|
+
autoLink: boolean;
|
|
691
691
|
validateFirst: boolean;
|
|
692
692
|
field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
|
|
693
693
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -19,10 +19,10 @@ declare function __VLS_template(): {
|
|
|
19
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
20
|
declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemSwitchProps> & Readonly<{}>, {
|
|
21
21
|
disabled: boolean;
|
|
22
|
-
hasFeedback: boolean;
|
|
23
22
|
colon: boolean;
|
|
24
|
-
autoLink: boolean;
|
|
25
23
|
required: boolean;
|
|
24
|
+
hasFeedback: boolean;
|
|
25
|
+
autoLink: boolean;
|
|
26
26
|
validateFirst: boolean;
|
|
27
27
|
valuePropName: string;
|
|
28
28
|
field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
|
|
@@ -30,7 +30,7 @@ declare function __VLS_template(): {
|
|
|
30
30
|
readonly mode?: FieldMode | undefined;
|
|
31
31
|
readonly class?: unknown;
|
|
32
32
|
readonly style?: unknown;
|
|
33
|
-
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
33
|
+
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
|
|
34
34
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
35
35
|
readonly lazy?: boolean | undefined;
|
|
36
36
|
readonly size?: ButtonSize;
|
|
@@ -103,7 +103,7 @@ declare function __VLS_template(): {
|
|
|
103
103
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
104
104
|
"update:value": (...args: any[]) => void;
|
|
105
105
|
}, string, {
|
|
106
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
106
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
107
107
|
mode: FieldMode;
|
|
108
108
|
disabled: boolean;
|
|
109
109
|
bordered: boolean;
|
|
@@ -131,7 +131,7 @@ declare function __VLS_template(): {
|
|
|
131
131
|
$nextTick: nextTick;
|
|
132
132
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
133
133
|
} & Readonly<{
|
|
134
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
134
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
135
135
|
mode: FieldMode;
|
|
136
136
|
disabled: boolean;
|
|
137
137
|
bordered: boolean;
|
|
@@ -173,10 +173,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
173
173
|
select: () => void;
|
|
174
174
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextProps> & Readonly<{}>, {
|
|
175
175
|
disabled: boolean;
|
|
176
|
-
hasFeedback: boolean;
|
|
177
176
|
colon: boolean;
|
|
178
|
-
autoLink: boolean;
|
|
179
177
|
required: boolean;
|
|
178
|
+
hasFeedback: boolean;
|
|
179
|
+
autoLink: boolean;
|
|
180
180
|
validateFirst: boolean;
|
|
181
181
|
field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
|
|
182
182
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -187,7 +187,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
187
187
|
readonly mode?: FieldMode | undefined;
|
|
188
188
|
readonly class?: unknown;
|
|
189
189
|
readonly style?: unknown;
|
|
190
|
-
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
190
|
+
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
|
|
191
191
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
192
192
|
readonly lazy?: boolean | undefined;
|
|
193
193
|
readonly size?: ButtonSize;
|
|
@@ -260,7 +260,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
260
260
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
261
261
|
"update:value": (...args: any[]) => void;
|
|
262
262
|
}, string, {
|
|
263
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
263
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
264
264
|
mode: FieldMode;
|
|
265
265
|
disabled: boolean;
|
|
266
266
|
bordered: boolean;
|
|
@@ -288,7 +288,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
288
288
|
$nextTick: nextTick;
|
|
289
289
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
290
290
|
} & Readonly<{
|
|
291
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
291
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
292
292
|
mode: FieldMode;
|
|
293
293
|
disabled: boolean;
|
|
294
294
|
bordered: boolean;
|
|
@@ -31,7 +31,7 @@ declare function __VLS_template(): {
|
|
|
31
31
|
readonly mode?: FieldMode | undefined;
|
|
32
32
|
readonly class?: unknown;
|
|
33
33
|
readonly style?: unknown;
|
|
34
|
-
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
34
|
+
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
|
|
35
35
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
36
36
|
readonly lazy?: boolean | undefined;
|
|
37
37
|
readonly size?: ButtonSize;
|
|
@@ -107,7 +107,7 @@ declare function __VLS_template(): {
|
|
|
107
107
|
"update:value": (...args: any[]) => void;
|
|
108
108
|
"update:visible": (...args: any[]) => void;
|
|
109
109
|
}, string, {
|
|
110
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
110
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
111
111
|
mode: FieldMode;
|
|
112
112
|
visible: boolean;
|
|
113
113
|
disabled: boolean;
|
|
@@ -138,7 +138,7 @@ declare function __VLS_template(): {
|
|
|
138
138
|
$nextTick: nextTick;
|
|
139
139
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
140
140
|
} & Readonly<{
|
|
141
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
141
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
142
142
|
mode: FieldMode;
|
|
143
143
|
visible: boolean;
|
|
144
144
|
disabled: boolean;
|
|
@@ -180,10 +180,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
180
180
|
blur: () => void;
|
|
181
181
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextPasswordProps> & Readonly<{}>, {
|
|
182
182
|
disabled: boolean;
|
|
183
|
-
hasFeedback: boolean;
|
|
184
183
|
colon: boolean;
|
|
185
|
-
autoLink: boolean;
|
|
186
184
|
required: boolean;
|
|
185
|
+
hasFeedback: boolean;
|
|
186
|
+
autoLink: boolean;
|
|
187
187
|
validateFirst: boolean;
|
|
188
188
|
field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
|
|
189
189
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -194,7 +194,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
194
194
|
readonly mode?: FieldMode | undefined;
|
|
195
195
|
readonly class?: unknown;
|
|
196
196
|
readonly style?: unknown;
|
|
197
|
-
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
197
|
+
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
|
|
198
198
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
199
199
|
readonly lazy?: boolean | undefined;
|
|
200
200
|
readonly size?: ButtonSize;
|
|
@@ -270,7 +270,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
270
270
|
"update:value": (...args: any[]) => void;
|
|
271
271
|
"update:visible": (...args: any[]) => void;
|
|
272
272
|
}, string, {
|
|
273
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
273
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
274
274
|
mode: FieldMode;
|
|
275
275
|
visible: boolean;
|
|
276
276
|
disabled: boolean;
|
|
@@ -301,7 +301,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
301
301
|
$nextTick: nextTick;
|
|
302
302
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
303
303
|
} & Readonly<{
|
|
304
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
304
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
305
305
|
mode: FieldMode;
|
|
306
306
|
visible: boolean;
|
|
307
307
|
disabled: boolean;
|
|
@@ -23,7 +23,7 @@ declare function __VLS_template(): {
|
|
|
23
23
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
24
|
"update:value": (...args: any[]) => void;
|
|
25
25
|
}, PublicProps, {
|
|
26
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
26
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
27
27
|
mode: FieldMode;
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
bordered: boolean;
|
|
@@ -313,7 +313,7 @@ declare function __VLS_template(): {
|
|
|
313
313
|
blur: () => void;
|
|
314
314
|
resizableTextArea: any;
|
|
315
315
|
}, {}, {}, {}, {
|
|
316
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
316
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
317
317
|
mode: FieldMode;
|
|
318
318
|
disabled: boolean;
|
|
319
319
|
bordered: boolean;
|
|
@@ -331,10 +331,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
331
331
|
resizableTextArea: any;
|
|
332
332
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextAreaProps> & Readonly<{}>, {
|
|
333
333
|
disabled: boolean;
|
|
334
|
-
hasFeedback: boolean;
|
|
335
334
|
colon: boolean;
|
|
336
|
-
autoLink: boolean;
|
|
337
335
|
required: boolean;
|
|
336
|
+
hasFeedback: boolean;
|
|
337
|
+
autoLink: boolean;
|
|
338
338
|
validateFirst: boolean;
|
|
339
339
|
field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
|
|
340
340
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -347,7 +347,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
347
347
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
348
348
|
"update:value": (...args: any[]) => void;
|
|
349
349
|
}, PublicProps, {
|
|
350
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
350
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
351
351
|
mode: FieldMode;
|
|
352
352
|
disabled: boolean;
|
|
353
353
|
bordered: boolean;
|
|
@@ -637,7 +637,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextAreaProps, {
|
|
|
637
637
|
blur: () => void;
|
|
638
638
|
resizableTextArea: any;
|
|
639
639
|
}, {}, {}, {}, {
|
|
640
|
-
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "
|
|
640
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
|
|
641
641
|
mode: FieldMode;
|
|
642
642
|
disabled: boolean;
|
|
643
643
|
bordered: boolean;
|
|
@@ -828,10 +828,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
828
828
|
request: (currentNode?: LegacyDataNode, clear?: boolean) => void;
|
|
829
829
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTreeSelectProps> & Readonly<{}>, {
|
|
830
830
|
disabled: boolean;
|
|
831
|
-
hasFeedback: boolean;
|
|
832
831
|
colon: boolean;
|
|
833
|
-
autoLink: boolean;
|
|
834
832
|
required: boolean;
|
|
833
|
+
hasFeedback: boolean;
|
|
834
|
+
autoLink: boolean;
|
|
835
835
|
validateFirst: boolean;
|
|
836
836
|
field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
|
|
837
837
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -3,14 +3,15 @@ import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttri
|
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
6
|
-
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
6
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
7
|
+
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
10
|
import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
11
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
13
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
14
|
+
import { Breakpoint } from '@aplus-frontend/antdv/es/_util/responsiveObserve';
|
|
14
15
|
import { LegacyButtonType, ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
15
16
|
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
16
17
|
type ApModalFormSlots = {
|
|
@@ -31,7 +32,6 @@ declare function __VLS_template(): {
|
|
|
31
32
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
32
33
|
readonly layout?: string | undefined;
|
|
33
34
|
readonly disabled?: boolean | undefined;
|
|
34
|
-
readonly prefixCls?: string | undefined;
|
|
35
35
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
36
36
|
span: (StringConstructor | NumberConstructor)[];
|
|
37
37
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,17 +100,18 @@ declare function __VLS_template(): {
|
|
|
100
100
|
}>> & HTMLAttributes) | undefined;
|
|
101
101
|
readonly colon?: boolean | undefined;
|
|
102
102
|
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
103
|
readonly labelWrap?: boolean | undefined;
|
|
104
|
+
readonly prefixCls?: string | undefined;
|
|
109
105
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
110
106
|
readonly hideRequiredMark?: boolean | undefined;
|
|
107
|
+
readonly rules?: {
|
|
108
|
+
[k: string]: RuleObject | RuleObject[];
|
|
109
|
+
} | undefined;
|
|
111
110
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
112
111
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
113
112
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
113
|
+
readonly name?: string | undefined;
|
|
114
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
114
115
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
115
116
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
116
117
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -797,9 +798,9 @@ declare function __VLS_template(): {
|
|
|
797
798
|
layout: string;
|
|
798
799
|
colon: boolean;
|
|
799
800
|
labelAlign: FormLabelAlign;
|
|
800
|
-
validateTrigger: string | string[];
|
|
801
801
|
hideRequiredMark: boolean;
|
|
802
802
|
validateOnRuleChange: boolean;
|
|
803
|
+
validateTrigger: string | string[];
|
|
803
804
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
804
805
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
805
806
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -825,11 +826,11 @@ declare function __VLS_template(): {
|
|
|
825
826
|
layout: string;
|
|
826
827
|
colon: boolean;
|
|
827
828
|
labelAlign: FormLabelAlign;
|
|
828
|
-
validateTrigger: string | string[];
|
|
829
829
|
hideRequiredMark: boolean;
|
|
830
830
|
validateOnRuleChange: boolean;
|
|
831
|
+
validateTrigger: string | string[];
|
|
831
832
|
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" | "
|
|
833
|
+
}> & 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
834
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
834
835
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
835
836
|
resetFields: () => Promise<void>;
|
|
@@ -873,9 +874,9 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
873
874
|
open: boolean;
|
|
874
875
|
colon: boolean;
|
|
875
876
|
labelAlign: FormLabelAlign;
|
|
876
|
-
validateTrigger: string | string[];
|
|
877
877
|
hideRequiredMark: boolean;
|
|
878
878
|
validateOnRuleChange: boolean;
|
|
879
|
+
validateTrigger: string | string[];
|
|
879
880
|
modalProps: Omit<Partial< ExtractPropTypes<{
|
|
880
881
|
prefixCls: StringConstructor;
|
|
881
882
|
visible: {
|
|
@@ -902,11 +903,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
902
903
|
'onUpdate:open': PropType<(open: boolean) => void>;
|
|
903
904
|
onChange: PropType<(open: boolean) => void>;
|
|
904
905
|
afterClose: PropType<() => void>;
|
|
906
|
+
afterOpenChange: PropType<(open: boolean) => void>;
|
|
905
907
|
centered: {
|
|
906
908
|
type: BooleanConstructor;
|
|
907
909
|
default: any;
|
|
908
910
|
};
|
|
909
|
-
width:
|
|
911
|
+
width: {
|
|
912
|
+
type: PropType<string | number | Partial<Record< Breakpoint, string | number>>>;
|
|
913
|
+
default: string | number | Partial<Record< Breakpoint, string | number>>;
|
|
914
|
+
};
|
|
910
915
|
footer: VueTypeValidableDef<any>;
|
|
911
916
|
okText: VueTypeValidableDef<any>;
|
|
912
917
|
okType: PropType<LegacyButtonType>;
|
|
@@ -1190,6 +1195,10 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1190
1195
|
y: number;
|
|
1191
1196
|
};
|
|
1192
1197
|
};
|
|
1198
|
+
loading: {
|
|
1199
|
+
type: BooleanConstructor;
|
|
1200
|
+
default: boolean;
|
|
1201
|
+
};
|
|
1193
1202
|
}>>, "visible" | "open" | "onUpdate:open">;
|
|
1194
1203
|
submitter: false | ApFormSubmitterConfig;
|
|
1195
1204
|
showCancel: boolean;
|
|
@@ -1202,7 +1211,6 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1202
1211
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
1203
1212
|
readonly layout?: string | undefined;
|
|
1204
1213
|
readonly disabled?: boolean | undefined;
|
|
1205
|
-
readonly prefixCls?: string | undefined;
|
|
1206
1214
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
1207
1215
|
span: (StringConstructor | NumberConstructor)[];
|
|
1208
1216
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1271,17 +1279,18 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1271
1279
|
}>> & HTMLAttributes) | undefined;
|
|
1272
1280
|
readonly colon?: boolean | undefined;
|
|
1273
1281
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1274
|
-
readonly name?: string | undefined;
|
|
1275
|
-
readonly rules?: {
|
|
1276
|
-
[k: string]: RuleObject | RuleObject[];
|
|
1277
|
-
} | undefined;
|
|
1278
|
-
readonly validateTrigger?: string | string[] | undefined;
|
|
1279
1282
|
readonly labelWrap?: boolean | undefined;
|
|
1283
|
+
readonly prefixCls?: string | undefined;
|
|
1280
1284
|
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
1281
1285
|
readonly hideRequiredMark?: boolean | undefined;
|
|
1286
|
+
readonly rules?: {
|
|
1287
|
+
[k: string]: RuleObject | RuleObject[];
|
|
1288
|
+
} | undefined;
|
|
1282
1289
|
readonly validateMessages?: ValidateMessages | undefined;
|
|
1283
1290
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
1284
1291
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
1292
|
+
readonly name?: string | undefined;
|
|
1293
|
+
readonly validateTrigger?: string | string[] | undefined;
|
|
1285
1294
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
1286
1295
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
1287
1296
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -1968,9 +1977,9 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1968
1977
|
layout: string;
|
|
1969
1978
|
colon: boolean;
|
|
1970
1979
|
labelAlign: FormLabelAlign;
|
|
1971
|
-
validateTrigger: string | string[];
|
|
1972
1980
|
hideRequiredMark: boolean;
|
|
1973
1981
|
validateOnRuleChange: boolean;
|
|
1982
|
+
validateTrigger: string | string[];
|
|
1974
1983
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1975
1984
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1976
1985
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -1996,11 +2005,11 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1996
2005
|
layout: string;
|
|
1997
2006
|
colon: boolean;
|
|
1998
2007
|
labelAlign: FormLabelAlign;
|
|
1999
|
-
validateTrigger: string | string[];
|
|
2000
2008
|
hideRequiredMark: boolean;
|
|
2001
2009
|
validateOnRuleChange: boolean;
|
|
2010
|
+
validateTrigger: string | string[];
|
|
2002
2011
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
2003
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "
|
|
2012
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "registerWatch" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
2004
2013
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
2005
2014
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
2006
2015
|
resetFields: () => Promise<void>;
|
|
@@ -14,10 +14,10 @@ declare function __VLS_template(): {
|
|
|
14
14
|
};
|
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
16
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFormItemProps> & Readonly<{}>, {
|
|
17
|
-
hasFeedback: boolean;
|
|
18
17
|
colon: boolean;
|
|
19
|
-
autoLink: boolean;
|
|
20
18
|
required: boolean;
|
|
19
|
+
hasFeedback: boolean;
|
|
20
|
+
autoLink: boolean;
|
|
21
21
|
validateFirst: boolean;
|
|
22
22
|
bordered: boolean;
|
|
23
23
|
valuePropName: string;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { ApFormSearchFormProps } from '../../../ap-form/interface';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
|
|
2
|
+
import { Ref, ComputedRef } from 'vue';
|
|
3
|
+
declare const defaultBreakPoint: {
|
|
4
|
+
readonly xs: 0;
|
|
5
|
+
readonly sm: 768;
|
|
6
|
+
readonly md: 1280;
|
|
7
|
+
readonly lg: 1728;
|
|
8
|
+
};
|
|
9
|
+
type BreakPointNameType = keyof typeof defaultBreakPoint;
|
|
10
|
+
export type BreakPointType = {
|
|
11
|
+
[T in BreakPointNameType]: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const useCountPerRow: (props: ApFormSearchFormProps, wrapperRef: Ref) => ComputedRef<number>;
|
|
14
|
+
export {};
|
|
@@ -1,39 +1,49 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useResizeObserver as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
w(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { ref as w, computed as o, watch as P, unref as v } from "vue";
|
|
2
|
+
import { useResizeObserver as R } from "@vueuse/core";
|
|
3
|
+
const h = { xs: 0, sm: 768, md: 1280, lg: 1728 };
|
|
4
|
+
function z(r) {
|
|
5
|
+
return Object.entries(r).sort((s, n) => n[1] - s[1]);
|
|
6
|
+
}
|
|
7
|
+
const p = (r, s) => {
|
|
8
|
+
const n = w(0), c = o(() => {
|
|
9
|
+
const { resize: e, resizeTarget: t } = r;
|
|
10
|
+
return e?.target ? e.target === "document" ? document.documentElement : e.target === "form" ? s.value?.$el : e.target : t ?? document.documentElement;
|
|
11
|
+
}), i = o(() => {
|
|
12
|
+
const e = r.resize?.breakPoint ?? h;
|
|
13
|
+
return z(e);
|
|
14
|
+
});
|
|
15
|
+
P(
|
|
16
|
+
() => c.value,
|
|
17
|
+
(e, t, m) => {
|
|
18
|
+
const u = typeof e == "string" ? document.querySelector(e) : e;
|
|
19
|
+
if (!u)
|
|
20
|
+
return;
|
|
21
|
+
const { stop: d } = R(u, (f) => {
|
|
22
|
+
const l = f[0], { width: g } = l.contentRect;
|
|
23
|
+
n.value = g;
|
|
14
24
|
});
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
m(() => {
|
|
26
|
+
d();
|
|
17
27
|
});
|
|
18
28
|
},
|
|
19
29
|
{ flush: "post", immediate: !0 }
|
|
20
30
|
);
|
|
21
|
-
const
|
|
22
|
-
for (const [e,
|
|
23
|
-
if (
|
|
31
|
+
const a = o(() => {
|
|
32
|
+
for (const [e, t] of i.value)
|
|
33
|
+
if (v(n) > t)
|
|
24
34
|
return e;
|
|
25
35
|
return "md";
|
|
26
36
|
});
|
|
27
|
-
return
|
|
28
|
-
const e =
|
|
37
|
+
return o(() => {
|
|
38
|
+
const e = r.countPerRow, t = {
|
|
29
39
|
xs: e - 2,
|
|
30
40
|
sm: e - 1,
|
|
31
41
|
md: e,
|
|
32
42
|
lg: e + 1
|
|
33
43
|
};
|
|
34
|
-
return Math.max(1,
|
|
44
|
+
return Math.max(1, t[a.value]);
|
|
35
45
|
});
|
|
36
46
|
};
|
|
37
47
|
export {
|
|
38
|
-
|
|
48
|
+
p as useCountPerRow
|
|
39
49
|
};
|