@aplus-frontend/ui 6.29.3 → 6.30.1
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.mjs +228 -222
- package/es/src/ag-grid/renderer/select.mjs +8 -11
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/read.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.mjs +11 -10
- package/es/src/ap-field/date/read.vue.d.ts +1 -1
- package/es/src/ap-field/date/read.vue2.mjs +8 -7
- package/es/src/ap-field/date-range/index.vue.d.ts +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +1 -0
- package/es/src/ap-field/date-range/read.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/read.vue2.mjs +1 -0
- package/es/src/ap-field/index.d.ts +7 -7
- package/es/src/ap-field/number/index.vue.d.ts +90 -50
- package/es/src/ap-field/number/index.vue.mjs +14 -12
- package/es/src/ap-field/number/read.vue2.mjs +8 -6
- package/es/src/ap-field/rate/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.d.ts +241 -241
- package/es/src/ap-field/select/index.vue.mjs +27 -27
- package/es/src/ap-field/select/read.vue2.mjs +27 -27
- package/es/src/ap-field/slider/index.vue.d.ts +9 -9
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/read.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +39 -38
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +34 -33
- package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read-password.vue2.mjs +31 -30
- package/es/src/ap-field/text/read.vue.d.ts +1 -1
- package/es/src/ap-field/text/read.vue2.mjs +21 -20
- package/es/src/ap-field/text-area/index.vue.d.ts +67 -57
- package/es/src/ap-field/text-area/index.vue.mjs +15 -14
- package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/read.vue2.mjs +11 -10
- package/es/src/ap-field/tree-select/index.vue.d.ts +326 -326
- package/es/src/ap-field/tree-select/index.vue.mjs +46 -46
- package/es/src/ap-field/tree-select/read.vue2.mjs +45 -45
- package/es/src/ap-form/ap-form.vue.d.ts +71 -67
- package/es/src/ap-form/drawer-form/index.vue.d.ts +65 -65
- package/es/src/ap-form/item/index.vue.d.ts +36 -36
- package/es/src/ap-form/item/index.vue.mjs +10 -10
- package/es/src/ap-form/items/number/index.vue.d.ts +103 -59
- package/es/src/ap-form/items/select/index.vue.d.ts +306 -306
- package/es/src/ap-form/items/text/index.vue.d.ts +19 -17
- package/es/src/ap-form/items/text/password.vue.d.ts +19 -17
- package/es/src/ap-form/items/text-area/index.vue.d.ts +138 -118
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
- package/es/src/ap-form/modal-form/index.vue.d.ts +69 -70
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
- package/es/src/ap-form/search-form/index.vue.d.ts +67 -67
- package/es/src/ap-form/search-form/index.vue.mjs +40 -40
- package/es/src/ap-grid/constants.d.ts +3 -0
- package/es/src/ap-grid/constants.mjs +6 -3
- package/es/src/ap-grid/index.vue.mjs +221 -214
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +59 -62
- package/es/src/ap-table/constants.d.ts +499 -465
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/index.d.ts +7 -8
- package/es/src/business/ap-label/ApLabel.d.ts +4 -4
- package/es/src/business/ap-label/constans.d.ts +1 -1
- package/es/src/business/ap-label/index.d.ts +9 -9
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/es/src/business/ap-radio-group/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +80 -80
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
- package/es/src/business/ap-view/interface.d.ts +13 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +11 -10
- package/es/src/business/batch-input-group/index.vue.mjs +20 -19
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +64 -52
- package/es/src/config-provider/config-provider-props.mjs +10 -2
- package/es/src/config-provider/config-provider.d.ts +130 -113
- package/es/src/config-provider/config-provider.mjs +26 -24
- package/es/src/config-provider/hooks/use-global-config.d.ts +60 -49
- package/es/src/config-provider/index.d.ts +214 -197
- package/es/src/mask/utils.d.ts +1 -1
- package/es/src/mask/utils.mjs +29 -13
- package/es/src/text/index.vue.mjs +3 -3
- package/es/src/utils/config-provider-preset.d.ts +36 -49
- 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 +33 -33
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +4 -4
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +4 -4
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/index.d.ts +7 -7
- package/lib/src/ap-field/number/index.vue.d.ts +90 -50
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +6 -6
- package/lib/src/ap-field/select/index.vue.d.ts +241 -241
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +9 -9
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +67 -57
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +326 -326
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +71 -67
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +65 -65
- package/lib/src/ap-form/item/index.vue.d.ts +36 -36
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +103 -59
- package/lib/src/ap-form/items/select/index.vue.d.ts +306 -306
- package/lib/src/ap-form/items/text/index.vue.d.ts +19 -17
- package/lib/src/ap-form/items/text/password.vue.d.ts +19 -17
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +138 -118
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
- package/lib/src/ap-form/modal-form/index.vue.d.ts +69 -70
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
- package/lib/src/ap-form/search-form/index.vue.d.ts +67 -67
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +3 -0
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-table/constants.d.ts +499 -465
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/index.d.ts +7 -8
- package/lib/src/business/ap-label/ApLabel.d.ts +4 -4
- package/lib/src/business/ap-label/constans.d.ts +1 -1
- package/lib/src/business/ap-label/index.d.ts +9 -9
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
- package/lib/src/business/ap-view/interface.d.ts +13 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +11 -10
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +64 -52
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +130 -113
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +60 -49
- package/lib/src/config-provider/index.d.ts +214 -197
- package/lib/src/mask/utils.d.ts +1 -1
- package/lib/src/mask/utils.js +3 -3
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +36 -49
- 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 +33 -33
- package/package.json +3 -3
- package/theme/ag-grid/index.css +0 -6
- package/theme/antdv-override.css +0 -6
- package/theme/antdv-override.less +0 -8
- package/theme/ap-expand-alert/ap-expand-alert.css +0 -4
- package/theme/ap-expand-alert/ap-expand-alert.less +6 -5
- package/theme/ap-form/ap-form-item.css +0 -6
- package/theme/ap-form/ap-form-item.less +0 -6
- package/theme/ap-form/index.css +0 -6
- package/theme/ap-form/search-form.css +0 -6
- package/theme/ap-grid/index.css +0 -6
- package/theme/ap-table/ap-table.css +0 -6
- package/theme/ap-table-modal/index.css +0 -6
- package/theme/ap-view/ap-view.css +4 -0
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/editable-table/index.css +0 -6
- package/theme/index.css +4 -16
|
@@ -7,7 +7,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/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';
|
|
10
|
-
import {
|
|
10
|
+
import { SizeType } 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';
|
|
@@ -323,8 +323,8 @@ declare function __VLS_template(): {
|
|
|
323
323
|
default: string | string[];
|
|
324
324
|
};
|
|
325
325
|
size: {
|
|
326
|
-
type: PropType<
|
|
327
|
-
default:
|
|
326
|
+
type: PropType<SizeType>;
|
|
327
|
+
default: SizeType;
|
|
328
328
|
};
|
|
329
329
|
disabled: {
|
|
330
330
|
type: BooleanConstructor;
|
|
@@ -355,15 +355,15 @@ declare function __VLS_template(): {
|
|
|
355
355
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
356
356
|
};
|
|
357
357
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
358
|
-
size:
|
|
358
|
+
size: SizeType;
|
|
359
359
|
onSubmit: (e: Event) => void;
|
|
360
360
|
disabled: boolean;
|
|
361
361
|
validateTrigger: string | string[];
|
|
362
|
-
|
|
362
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
363
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
363
364
|
onFinish: (values: any) => void;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
colon: boolean;
|
|
365
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
366
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
367
367
|
labelCol: Partial< ExtractPropTypes<{
|
|
368
368
|
span: (StringConstructor | NumberConstructor)[];
|
|
369
369
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -397,8 +397,6 @@ declare function __VLS_template(): {
|
|
|
397
397
|
prefixCls: StringConstructor;
|
|
398
398
|
flex: (StringConstructor | NumberConstructor)[];
|
|
399
399
|
}>> & HTMLAttributes;
|
|
400
|
-
labelAlign: FormLabelAlign;
|
|
401
|
-
labelWrap: boolean;
|
|
402
400
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
403
401
|
span: (StringConstructor | NumberConstructor)[];
|
|
404
402
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -432,19 +430,21 @@ declare function __VLS_template(): {
|
|
|
432
430
|
prefixCls: StringConstructor;
|
|
433
431
|
flex: (StringConstructor | NumberConstructor)[];
|
|
434
432
|
}>> & HTMLAttributes;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
440
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
441
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
433
|
+
colon: boolean;
|
|
434
|
+
labelAlign: FormLabelAlign;
|
|
435
|
+
labelWrap: boolean;
|
|
436
|
+
requiredMark: "" | RequiredMark;
|
|
442
437
|
hideRequiredMark: boolean;
|
|
443
438
|
model: {
|
|
444
439
|
[key: string]: any;
|
|
445
440
|
};
|
|
441
|
+
rules: {
|
|
442
|
+
[k: string]: RuleObject | RuleObject[];
|
|
443
|
+
};
|
|
444
|
+
validateMessages: ValidateMessages;
|
|
446
445
|
validateOnRuleChange: boolean;
|
|
447
446
|
scrollToFirstError: boolean | Options<any>;
|
|
447
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
448
448
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
449
449
|
P: {};
|
|
450
450
|
B: {};
|
|
@@ -648,8 +648,8 @@ declare function __VLS_template(): {
|
|
|
648
648
|
default: string | string[];
|
|
649
649
|
};
|
|
650
650
|
size: {
|
|
651
|
-
type: PropType<
|
|
652
|
-
default:
|
|
651
|
+
type: PropType<SizeType>;
|
|
652
|
+
default: SizeType;
|
|
653
653
|
};
|
|
654
654
|
disabled: {
|
|
655
655
|
type: BooleanConstructor;
|
|
@@ -680,15 +680,15 @@ declare function __VLS_template(): {
|
|
|
680
680
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
681
681
|
};
|
|
682
682
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
683
|
-
size:
|
|
683
|
+
size: SizeType;
|
|
684
684
|
onSubmit: (e: Event) => void;
|
|
685
685
|
disabled: boolean;
|
|
686
686
|
validateTrigger: string | string[];
|
|
687
|
-
|
|
687
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
688
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
688
689
|
onFinish: (values: any) => void;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
colon: boolean;
|
|
690
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
691
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
692
692
|
labelCol: Partial< ExtractPropTypes<{
|
|
693
693
|
span: (StringConstructor | NumberConstructor)[];
|
|
694
694
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -722,8 +722,6 @@ declare function __VLS_template(): {
|
|
|
722
722
|
prefixCls: StringConstructor;
|
|
723
723
|
flex: (StringConstructor | NumberConstructor)[];
|
|
724
724
|
}>> & HTMLAttributes;
|
|
725
|
-
labelAlign: FormLabelAlign;
|
|
726
|
-
labelWrap: boolean;
|
|
727
725
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
728
726
|
span: (StringConstructor | NumberConstructor)[];
|
|
729
727
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -757,19 +755,21 @@ declare function __VLS_template(): {
|
|
|
757
755
|
prefixCls: StringConstructor;
|
|
758
756
|
flex: (StringConstructor | NumberConstructor)[];
|
|
759
757
|
}>> & HTMLAttributes;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
765
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
766
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
758
|
+
colon: boolean;
|
|
759
|
+
labelAlign: FormLabelAlign;
|
|
760
|
+
labelWrap: boolean;
|
|
761
|
+
requiredMark: "" | RequiredMark;
|
|
767
762
|
hideRequiredMark: boolean;
|
|
768
763
|
model: {
|
|
769
764
|
[key: string]: any;
|
|
770
765
|
};
|
|
766
|
+
rules: {
|
|
767
|
+
[k: string]: RuleObject | RuleObject[];
|
|
768
|
+
};
|
|
769
|
+
validateMessages: ValidateMessages;
|
|
771
770
|
validateOnRuleChange: boolean;
|
|
772
771
|
scrollToFirstError: boolean | Options<any>;
|
|
772
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
773
773
|
}> | null;
|
|
774
774
|
};
|
|
775
775
|
$slots: Readonly<{
|
|
@@ -1282,8 +1282,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1282
1282
|
default: string | string[];
|
|
1283
1283
|
};
|
|
1284
1284
|
size: {
|
|
1285
|
-
type: PropType<
|
|
1286
|
-
default:
|
|
1285
|
+
type: PropType<SizeType>;
|
|
1286
|
+
default: SizeType;
|
|
1287
1287
|
};
|
|
1288
1288
|
disabled: {
|
|
1289
1289
|
type: BooleanConstructor;
|
|
@@ -1314,15 +1314,15 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1314
1314
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
1315
1315
|
};
|
|
1316
1316
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
1317
|
-
size:
|
|
1317
|
+
size: SizeType;
|
|
1318
1318
|
onSubmit: (e: Event) => void;
|
|
1319
1319
|
disabled: boolean;
|
|
1320
1320
|
validateTrigger: string | string[];
|
|
1321
|
-
|
|
1321
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
1322
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
1322
1323
|
onFinish: (values: any) => void;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
colon: boolean;
|
|
1324
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
1325
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1326
1326
|
labelCol: Partial< ExtractPropTypes<{
|
|
1327
1327
|
span: (StringConstructor | NumberConstructor)[];
|
|
1328
1328
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1356,8 +1356,6 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1356
1356
|
prefixCls: StringConstructor;
|
|
1357
1357
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1358
1358
|
}>> & HTMLAttributes;
|
|
1359
|
-
labelAlign: FormLabelAlign;
|
|
1360
|
-
labelWrap: boolean;
|
|
1361
1359
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
1362
1360
|
span: (StringConstructor | NumberConstructor)[];
|
|
1363
1361
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1391,19 +1389,21 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1391
1389
|
prefixCls: StringConstructor;
|
|
1392
1390
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1393
1391
|
}>> & HTMLAttributes;
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
1399
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
1400
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
1392
|
+
colon: boolean;
|
|
1393
|
+
labelAlign: FormLabelAlign;
|
|
1394
|
+
labelWrap: boolean;
|
|
1395
|
+
requiredMark: "" | RequiredMark;
|
|
1401
1396
|
hideRequiredMark: boolean;
|
|
1402
1397
|
model: {
|
|
1403
1398
|
[key: string]: any;
|
|
1404
1399
|
};
|
|
1400
|
+
rules: {
|
|
1401
|
+
[k: string]: RuleObject | RuleObject[];
|
|
1402
|
+
};
|
|
1403
|
+
validateMessages: ValidateMessages;
|
|
1405
1404
|
validateOnRuleChange: boolean;
|
|
1406
1405
|
scrollToFirstError: boolean | Options<any>;
|
|
1406
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
1407
1407
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1408
1408
|
P: {};
|
|
1409
1409
|
B: {};
|
|
@@ -1607,8 +1607,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1607
1607
|
default: string | string[];
|
|
1608
1608
|
};
|
|
1609
1609
|
size: {
|
|
1610
|
-
type: PropType<
|
|
1611
|
-
default:
|
|
1610
|
+
type: PropType<SizeType>;
|
|
1611
|
+
default: SizeType;
|
|
1612
1612
|
};
|
|
1613
1613
|
disabled: {
|
|
1614
1614
|
type: BooleanConstructor;
|
|
@@ -1639,15 +1639,15 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1639
1639
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
1640
1640
|
};
|
|
1641
1641
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1642
|
-
size:
|
|
1642
|
+
size: SizeType;
|
|
1643
1643
|
onSubmit: (e: Event) => void;
|
|
1644
1644
|
disabled: boolean;
|
|
1645
1645
|
validateTrigger: string | string[];
|
|
1646
|
-
|
|
1646
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
1647
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
1647
1648
|
onFinish: (values: any) => void;
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
colon: boolean;
|
|
1649
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
1650
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1651
1651
|
labelCol: Partial< ExtractPropTypes<{
|
|
1652
1652
|
span: (StringConstructor | NumberConstructor)[];
|
|
1653
1653
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1681,8 +1681,6 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1681
1681
|
prefixCls: StringConstructor;
|
|
1682
1682
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1683
1683
|
}>> & HTMLAttributes;
|
|
1684
|
-
labelAlign: FormLabelAlign;
|
|
1685
|
-
labelWrap: boolean;
|
|
1686
1684
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
1687
1685
|
span: (StringConstructor | NumberConstructor)[];
|
|
1688
1686
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1716,19 +1714,21 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1716
1714
|
prefixCls: StringConstructor;
|
|
1717
1715
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1718
1716
|
}>> & HTMLAttributes;
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
1724
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
1725
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
1717
|
+
colon: boolean;
|
|
1718
|
+
labelAlign: FormLabelAlign;
|
|
1719
|
+
labelWrap: boolean;
|
|
1720
|
+
requiredMark: "" | RequiredMark;
|
|
1726
1721
|
hideRequiredMark: boolean;
|
|
1727
1722
|
model: {
|
|
1728
1723
|
[key: string]: any;
|
|
1729
1724
|
};
|
|
1725
|
+
rules: {
|
|
1726
|
+
[k: string]: RuleObject | RuleObject[];
|
|
1727
|
+
};
|
|
1728
|
+
validateMessages: ValidateMessages;
|
|
1730
1729
|
validateOnRuleChange: boolean;
|
|
1731
1730
|
scrollToFirstError: boolean | Options<any>;
|
|
1731
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
1732
1732
|
}> | null;
|
|
1733
1733
|
};
|
|
1734
1734
|
$slots: Readonly<{
|
|
@@ -16,11 +16,11 @@ declare function __VLS_template(): {
|
|
|
16
16
|
$props: Partial<{
|
|
17
17
|
required: boolean;
|
|
18
18
|
hidden: boolean;
|
|
19
|
-
hasFeedback: boolean;
|
|
20
|
-
noStyle: boolean;
|
|
21
19
|
colon: boolean;
|
|
22
|
-
autoLink: boolean;
|
|
23
20
|
validateFirst: boolean;
|
|
21
|
+
autoLink: boolean;
|
|
22
|
+
hasFeedback: boolean;
|
|
23
|
+
noStyle: boolean;
|
|
24
24
|
}> & Omit<{
|
|
25
25
|
readonly hidden: boolean;
|
|
26
26
|
readonly hasFeedback: boolean;
|
|
@@ -244,11 +244,11 @@ declare function __VLS_template(): {
|
|
|
244
244
|
}>> & Readonly<{}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
245
245
|
required: boolean;
|
|
246
246
|
hidden: boolean;
|
|
247
|
-
hasFeedback: boolean;
|
|
248
|
-
noStyle: boolean;
|
|
249
247
|
colon: boolean;
|
|
250
|
-
autoLink: boolean;
|
|
251
248
|
validateFirst: boolean;
|
|
249
|
+
autoLink: boolean;
|
|
250
|
+
hasFeedback: boolean;
|
|
251
|
+
noStyle: boolean;
|
|
252
252
|
}, {}, string, CustomSlotsType<{
|
|
253
253
|
help: any;
|
|
254
254
|
label: any;
|
|
@@ -278,11 +278,11 @@ declare function __VLS_template(): {
|
|
|
278
278
|
} & Readonly<{
|
|
279
279
|
required: boolean;
|
|
280
280
|
hidden: boolean;
|
|
281
|
-
hasFeedback: boolean;
|
|
282
|
-
noStyle: boolean;
|
|
283
281
|
colon: boolean;
|
|
284
|
-
autoLink: boolean;
|
|
285
282
|
validateFirst: boolean;
|
|
283
|
+
autoLink: boolean;
|
|
284
|
+
hasFeedback: boolean;
|
|
285
|
+
noStyle: boolean;
|
|
286
286
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
287
287
|
htmlFor: StringConstructor;
|
|
288
288
|
prefixCls: StringConstructor;
|
|
@@ -403,11 +403,11 @@ declare function __VLS_template(): {
|
|
|
403
403
|
$props: Partial<{
|
|
404
404
|
required: boolean;
|
|
405
405
|
hidden: boolean;
|
|
406
|
-
hasFeedback: boolean;
|
|
407
|
-
noStyle: boolean;
|
|
408
406
|
colon: boolean;
|
|
409
|
-
autoLink: boolean;
|
|
410
407
|
validateFirst: boolean;
|
|
408
|
+
autoLink: boolean;
|
|
409
|
+
hasFeedback: boolean;
|
|
410
|
+
noStyle: boolean;
|
|
411
411
|
}> & Omit<{
|
|
412
412
|
readonly hidden: boolean;
|
|
413
413
|
readonly hasFeedback: boolean;
|
|
@@ -631,11 +631,11 @@ declare function __VLS_template(): {
|
|
|
631
631
|
}>> & Readonly<{}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
632
632
|
required: boolean;
|
|
633
633
|
hidden: boolean;
|
|
634
|
-
hasFeedback: boolean;
|
|
635
|
-
noStyle: boolean;
|
|
636
634
|
colon: boolean;
|
|
637
|
-
autoLink: boolean;
|
|
638
635
|
validateFirst: boolean;
|
|
636
|
+
autoLink: boolean;
|
|
637
|
+
hasFeedback: boolean;
|
|
638
|
+
noStyle: boolean;
|
|
639
639
|
}, {}, string, CustomSlotsType<{
|
|
640
640
|
help: any;
|
|
641
641
|
label: any;
|
|
@@ -665,11 +665,11 @@ declare function __VLS_template(): {
|
|
|
665
665
|
} & Readonly<{
|
|
666
666
|
required: boolean;
|
|
667
667
|
hidden: boolean;
|
|
668
|
-
hasFeedback: boolean;
|
|
669
|
-
noStyle: boolean;
|
|
670
668
|
colon: boolean;
|
|
671
|
-
autoLink: boolean;
|
|
672
669
|
validateFirst: boolean;
|
|
670
|
+
autoLink: boolean;
|
|
671
|
+
hasFeedback: boolean;
|
|
672
|
+
noStyle: boolean;
|
|
673
673
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
674
674
|
htmlFor: StringConstructor;
|
|
675
675
|
prefixCls: StringConstructor;
|
|
@@ -810,11 +810,11 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
810
810
|
$props: Partial<{
|
|
811
811
|
required: boolean;
|
|
812
812
|
hidden: boolean;
|
|
813
|
-
hasFeedback: boolean;
|
|
814
|
-
noStyle: boolean;
|
|
815
813
|
colon: boolean;
|
|
816
|
-
autoLink: boolean;
|
|
817
814
|
validateFirst: boolean;
|
|
815
|
+
autoLink: boolean;
|
|
816
|
+
hasFeedback: boolean;
|
|
817
|
+
noStyle: boolean;
|
|
818
818
|
}> & Omit<{
|
|
819
819
|
readonly hidden: boolean;
|
|
820
820
|
readonly hasFeedback: boolean;
|
|
@@ -1038,11 +1038,11 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1038
1038
|
}>> & Readonly<{}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1039
1039
|
required: boolean;
|
|
1040
1040
|
hidden: boolean;
|
|
1041
|
-
hasFeedback: boolean;
|
|
1042
|
-
noStyle: boolean;
|
|
1043
1041
|
colon: boolean;
|
|
1044
|
-
autoLink: boolean;
|
|
1045
1042
|
validateFirst: boolean;
|
|
1043
|
+
autoLink: boolean;
|
|
1044
|
+
hasFeedback: boolean;
|
|
1045
|
+
noStyle: boolean;
|
|
1046
1046
|
}, {}, string, CustomSlotsType<{
|
|
1047
1047
|
help: any;
|
|
1048
1048
|
label: any;
|
|
@@ -1072,11 +1072,11 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1072
1072
|
} & Readonly<{
|
|
1073
1073
|
required: boolean;
|
|
1074
1074
|
hidden: boolean;
|
|
1075
|
-
hasFeedback: boolean;
|
|
1076
|
-
noStyle: boolean;
|
|
1077
1075
|
colon: boolean;
|
|
1078
|
-
autoLink: boolean;
|
|
1079
1076
|
validateFirst: boolean;
|
|
1077
|
+
autoLink: boolean;
|
|
1078
|
+
hasFeedback: boolean;
|
|
1079
|
+
noStyle: boolean;
|
|
1080
1080
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
1081
1081
|
htmlFor: StringConstructor;
|
|
1082
1082
|
prefixCls: StringConstructor;
|
|
@@ -1197,11 +1197,11 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1197
1197
|
$props: Partial<{
|
|
1198
1198
|
required: boolean;
|
|
1199
1199
|
hidden: boolean;
|
|
1200
|
-
hasFeedback: boolean;
|
|
1201
|
-
noStyle: boolean;
|
|
1202
1200
|
colon: boolean;
|
|
1203
|
-
autoLink: boolean;
|
|
1204
1201
|
validateFirst: boolean;
|
|
1202
|
+
autoLink: boolean;
|
|
1203
|
+
hasFeedback: boolean;
|
|
1204
|
+
noStyle: boolean;
|
|
1205
1205
|
}> & Omit<{
|
|
1206
1206
|
readonly hidden: boolean;
|
|
1207
1207
|
readonly hasFeedback: boolean;
|
|
@@ -1425,11 +1425,11 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1425
1425
|
}>> & Readonly<{}>, () => any, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1426
1426
|
required: boolean;
|
|
1427
1427
|
hidden: boolean;
|
|
1428
|
-
hasFeedback: boolean;
|
|
1429
|
-
noStyle: boolean;
|
|
1430
1428
|
colon: boolean;
|
|
1431
|
-
autoLink: boolean;
|
|
1432
1429
|
validateFirst: boolean;
|
|
1430
|
+
autoLink: boolean;
|
|
1431
|
+
hasFeedback: boolean;
|
|
1432
|
+
noStyle: boolean;
|
|
1433
1433
|
}, {}, string, CustomSlotsType<{
|
|
1434
1434
|
help: any;
|
|
1435
1435
|
label: any;
|
|
@@ -1459,11 +1459,11 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1459
1459
|
} & Readonly<{
|
|
1460
1460
|
required: boolean;
|
|
1461
1461
|
hidden: boolean;
|
|
1462
|
-
hasFeedback: boolean;
|
|
1463
|
-
noStyle: boolean;
|
|
1464
1462
|
colon: boolean;
|
|
1465
|
-
autoLink: boolean;
|
|
1466
1463
|
validateFirst: boolean;
|
|
1464
|
+
autoLink: boolean;
|
|
1465
|
+
hasFeedback: boolean;
|
|
1466
|
+
noStyle: boolean;
|
|
1467
1467
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
1468
1468
|
htmlFor: StringConstructor;
|
|
1469
1469
|
prefixCls: StringConstructor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as A, useSlots as D, ref as c, onMounted as L, computed as M, unref as t, cloneVNode as $, createBlock as v, openBlock as y, mergeProps as j, createSlots as q, withCtx as a, resolveDynamicComponent as E, renderList as K, createElementVNode as O, normalizeClass as Q, createVNode as s, normalizeStyle as U, renderSlot as Y, normalizeProps as G, guardReactiveProps as H } from "vue";
|
|
2
2
|
import { Form as J, Tooltip as W, TypographyText as X } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as Z } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
-
import { isFunction as
|
|
4
|
+
import { isFunction as F, cloneDeep as ee, isArray as oe, omit as b } from "lodash-unified";
|
|
5
5
|
import { apFormItemColPropKeys as te } from "../constant.mjs";
|
|
6
6
|
import { QuestionCircleOutlined as le } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
@@ -56,16 +56,16 @@ const Ve = /* @__PURE__ */ A({
|
|
|
56
56
|
customFilled: {}
|
|
57
57
|
},
|
|
58
58
|
setup(V, { expose: g }) {
|
|
59
|
-
const e = V, u = D(), { model:
|
|
59
|
+
const e = V, u = D(), { model: m, updateModel: B, internalInstance: h } = re(), { m: d, b: x } = ie("ap-form-item"), i = c(!1), r = c(), [, C] = Z();
|
|
60
60
|
L(async () => {
|
|
61
|
-
let o =
|
|
61
|
+
let o = F(e.initialValue) ? e.initialValue() : e.initialValue;
|
|
62
62
|
ae(o) && (o = await o), h?.registerField({
|
|
63
63
|
name: e.name,
|
|
64
64
|
initialValue: ee(o),
|
|
65
65
|
transform: e.transform
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
const f = M(() => e.name ? oe(e.name) ? e.name.reduce((o, l) => o?.[l], t(
|
|
68
|
+
const f = M(() => e.name ? oe(e.name) ? e.name.reduce((o, l) => o?.[l], t(m)) : m?.value[e.name] : null);
|
|
69
69
|
function k() {
|
|
70
70
|
const o = u.default?.() || [];
|
|
71
71
|
if (!e.name)
|
|
@@ -74,7 +74,7 @@ const Ve = /* @__PURE__ */ A({
|
|
|
74
74
|
return l ? $(l, {
|
|
75
75
|
[e.valuePropName]: t(f),
|
|
76
76
|
[`onUpdate:${e.valuePropName}`]: N,
|
|
77
|
-
|
|
77
|
+
variant: e.bordered ? "borderless" : l?.props?.variant,
|
|
78
78
|
onFocus: P,
|
|
79
79
|
onBlur: I
|
|
80
80
|
}) : null;
|
|
@@ -104,7 +104,7 @@ const Ve = /* @__PURE__ */ A({
|
|
|
104
104
|
const l = t(f);
|
|
105
105
|
if (!o || !e.transform)
|
|
106
106
|
return l;
|
|
107
|
-
const n =
|
|
107
|
+
const n = F(e.transform) ? e.transform : e.transform.transformer;
|
|
108
108
|
return e.transform ? n(l) : l;
|
|
109
109
|
}
|
|
110
110
|
return g({
|
|
@@ -118,11 +118,11 @@ const Ve = /* @__PURE__ */ A({
|
|
|
118
118
|
ref_key: "formItemRef",
|
|
119
119
|
ref: r
|
|
120
120
|
},
|
|
121
|
-
t(
|
|
121
|
+
t(b)(e, [...t(te), "tooltip", "label", "description"]),
|
|
122
122
|
{
|
|
123
123
|
class: {
|
|
124
|
-
[t(
|
|
125
|
-
[t(
|
|
124
|
+
[t(d)("bordered")]: o.bordered,
|
|
125
|
+
[t(d)("focused")]: o.bordered && i.value,
|
|
126
126
|
[t(x)()]: !0
|
|
127
127
|
},
|
|
128
128
|
colon: o.bordered ? !1 : e.colon
|
|
@@ -168,7 +168,7 @@ const Ve = /* @__PURE__ */ A({
|
|
|
168
168
|
]),
|
|
169
169
|
key: "1"
|
|
170
170
|
} : void 0,
|
|
171
|
-
K(t(
|
|
171
|
+
K(t(b)(u, "default"), (n, p) => ({
|
|
172
172
|
name: p,
|
|
173
173
|
fn: a((R) => [
|
|
174
174
|
Y(o.$slots, p, G(H(R || {})))
|