@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 { OnCleanup } from '@vue/reactivity';
|
|
13
13
|
type __VLS_Props = {
|
|
@@ -314,8 +314,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
314
314
|
default: string | string[];
|
|
315
315
|
};
|
|
316
316
|
size: {
|
|
317
|
-
type: PropType<
|
|
318
|
-
default:
|
|
317
|
+
type: PropType<SizeType>;
|
|
318
|
+
default: SizeType;
|
|
319
319
|
};
|
|
320
320
|
disabled: {
|
|
321
321
|
type: BooleanConstructor;
|
|
@@ -346,15 +346,15 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
346
346
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
347
347
|
};
|
|
348
348
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
349
|
-
size:
|
|
349
|
+
size: SizeType;
|
|
350
350
|
onSubmit: (e: Event) => void;
|
|
351
351
|
disabled: boolean;
|
|
352
352
|
validateTrigger: string | string[];
|
|
353
|
-
|
|
353
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
354
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
354
355
|
onFinish: (values: any) => void;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
colon: boolean;
|
|
356
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
357
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
358
358
|
labelCol: Partial< ExtractPropTypes<{
|
|
359
359
|
span: (StringConstructor | NumberConstructor)[];
|
|
360
360
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -388,8 +388,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
388
388
|
prefixCls: StringConstructor;
|
|
389
389
|
flex: (StringConstructor | NumberConstructor)[];
|
|
390
390
|
}>> & HTMLAttributes;
|
|
391
|
-
labelAlign: FormLabelAlign;
|
|
392
|
-
labelWrap: boolean;
|
|
393
391
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
394
392
|
span: (StringConstructor | NumberConstructor)[];
|
|
395
393
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -423,19 +421,21 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
423
421
|
prefixCls: StringConstructor;
|
|
424
422
|
flex: (StringConstructor | NumberConstructor)[];
|
|
425
423
|
}>> & HTMLAttributes;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
431
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
432
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
424
|
+
colon: boolean;
|
|
425
|
+
labelAlign: FormLabelAlign;
|
|
426
|
+
labelWrap: boolean;
|
|
427
|
+
requiredMark: "" | RequiredMark;
|
|
433
428
|
hideRequiredMark: boolean;
|
|
434
429
|
model: {
|
|
435
430
|
[key: string]: any;
|
|
436
431
|
};
|
|
432
|
+
rules: {
|
|
433
|
+
[k: string]: RuleObject | RuleObject[];
|
|
434
|
+
};
|
|
435
|
+
validateMessages: ValidateMessages;
|
|
437
436
|
validateOnRuleChange: boolean;
|
|
438
437
|
scrollToFirstError: boolean | Options<any>;
|
|
438
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
439
439
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
440
440
|
P: {};
|
|
441
441
|
B: {};
|
|
@@ -639,8 +639,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
639
639
|
default: string | string[];
|
|
640
640
|
};
|
|
641
641
|
size: {
|
|
642
|
-
type: PropType<
|
|
643
|
-
default:
|
|
642
|
+
type: PropType<SizeType>;
|
|
643
|
+
default: SizeType;
|
|
644
644
|
};
|
|
645
645
|
disabled: {
|
|
646
646
|
type: BooleanConstructor;
|
|
@@ -671,15 +671,15 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
671
671
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
672
672
|
};
|
|
673
673
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
674
|
-
size:
|
|
674
|
+
size: SizeType;
|
|
675
675
|
onSubmit: (e: Event) => void;
|
|
676
676
|
disabled: boolean;
|
|
677
677
|
validateTrigger: string | string[];
|
|
678
|
-
|
|
678
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
679
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
679
680
|
onFinish: (values: any) => void;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
colon: boolean;
|
|
681
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
682
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
683
683
|
labelCol: Partial< ExtractPropTypes<{
|
|
684
684
|
span: (StringConstructor | NumberConstructor)[];
|
|
685
685
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -713,8 +713,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
713
713
|
prefixCls: StringConstructor;
|
|
714
714
|
flex: (StringConstructor | NumberConstructor)[];
|
|
715
715
|
}>> & HTMLAttributes;
|
|
716
|
-
labelAlign: FormLabelAlign;
|
|
717
|
-
labelWrap: boolean;
|
|
718
716
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
719
717
|
span: (StringConstructor | NumberConstructor)[];
|
|
720
718
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -748,19 +746,21 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
748
746
|
prefixCls: StringConstructor;
|
|
749
747
|
flex: (StringConstructor | NumberConstructor)[];
|
|
750
748
|
}>> & HTMLAttributes;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
756
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
757
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
749
|
+
colon: boolean;
|
|
750
|
+
labelAlign: FormLabelAlign;
|
|
751
|
+
labelWrap: boolean;
|
|
752
|
+
requiredMark: "" | RequiredMark;
|
|
758
753
|
hideRequiredMark: boolean;
|
|
759
754
|
model: {
|
|
760
755
|
[key: string]: any;
|
|
761
756
|
};
|
|
757
|
+
rules: {
|
|
758
|
+
[k: string]: RuleObject | RuleObject[];
|
|
759
|
+
};
|
|
760
|
+
validateMessages: ValidateMessages;
|
|
762
761
|
validateOnRuleChange: boolean;
|
|
763
762
|
scrollToFirstError: boolean | Options<any>;
|
|
763
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
764
764
|
}> | null;
|
|
765
765
|
};
|
|
766
766
|
$slots: Readonly<{
|
|
@@ -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 } from '../../../ap-form';
|
|
13
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -315,8 +315,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
315
315
|
default: string | string[];
|
|
316
316
|
};
|
|
317
317
|
size: {
|
|
318
|
-
type: PropType<
|
|
319
|
-
default:
|
|
318
|
+
type: PropType<SizeType>;
|
|
319
|
+
default: SizeType;
|
|
320
320
|
};
|
|
321
321
|
disabled: {
|
|
322
322
|
type: BooleanConstructor;
|
|
@@ -347,15 +347,15 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
347
347
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
348
348
|
};
|
|
349
349
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
350
|
-
size:
|
|
350
|
+
size: SizeType;
|
|
351
351
|
onSubmit: (e: Event) => void;
|
|
352
352
|
disabled: boolean;
|
|
353
353
|
validateTrigger: string | string[];
|
|
354
|
-
|
|
354
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
355
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
355
356
|
onFinish: (values: any) => void;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
colon: boolean;
|
|
357
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
358
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
359
359
|
labelCol: Partial< ExtractPropTypes<{
|
|
360
360
|
span: (StringConstructor | NumberConstructor)[];
|
|
361
361
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -389,8 +389,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
389
389
|
prefixCls: StringConstructor;
|
|
390
390
|
flex: (StringConstructor | NumberConstructor)[];
|
|
391
391
|
}>> & HTMLAttributes;
|
|
392
|
-
labelAlign: FormLabelAlign;
|
|
393
|
-
labelWrap: boolean;
|
|
394
392
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
395
393
|
span: (StringConstructor | NumberConstructor)[];
|
|
396
394
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -424,19 +422,21 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
424
422
|
prefixCls: StringConstructor;
|
|
425
423
|
flex: (StringConstructor | NumberConstructor)[];
|
|
426
424
|
}>> & HTMLAttributes;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
432
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
433
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
425
|
+
colon: boolean;
|
|
426
|
+
labelAlign: FormLabelAlign;
|
|
427
|
+
labelWrap: boolean;
|
|
428
|
+
requiredMark: "" | RequiredMark;
|
|
434
429
|
hideRequiredMark: boolean;
|
|
435
430
|
model: {
|
|
436
431
|
[key: string]: any;
|
|
437
432
|
};
|
|
433
|
+
rules: {
|
|
434
|
+
[k: string]: RuleObject | RuleObject[];
|
|
435
|
+
};
|
|
436
|
+
validateMessages: ValidateMessages;
|
|
438
437
|
validateOnRuleChange: boolean;
|
|
439
438
|
scrollToFirstError: boolean | Options<any>;
|
|
439
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
440
440
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
441
441
|
P: {};
|
|
442
442
|
B: {};
|
|
@@ -640,8 +640,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
640
640
|
default: string | string[];
|
|
641
641
|
};
|
|
642
642
|
size: {
|
|
643
|
-
type: PropType<
|
|
644
|
-
default:
|
|
643
|
+
type: PropType<SizeType>;
|
|
644
|
+
default: SizeType;
|
|
645
645
|
};
|
|
646
646
|
disabled: {
|
|
647
647
|
type: BooleanConstructor;
|
|
@@ -672,15 +672,15 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
672
672
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
673
673
|
};
|
|
674
674
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
675
|
-
size:
|
|
675
|
+
size: SizeType;
|
|
676
676
|
onSubmit: (e: Event) => void;
|
|
677
677
|
disabled: boolean;
|
|
678
678
|
validateTrigger: string | string[];
|
|
679
|
-
|
|
679
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
680
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
680
681
|
onFinish: (values: any) => void;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
colon: boolean;
|
|
682
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
683
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
684
684
|
labelCol: Partial< ExtractPropTypes<{
|
|
685
685
|
span: (StringConstructor | NumberConstructor)[];
|
|
686
686
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -714,8 +714,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
714
714
|
prefixCls: StringConstructor;
|
|
715
715
|
flex: (StringConstructor | NumberConstructor)[];
|
|
716
716
|
}>> & HTMLAttributes;
|
|
717
|
-
labelAlign: FormLabelAlign;
|
|
718
|
-
labelWrap: boolean;
|
|
719
717
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
720
718
|
span: (StringConstructor | NumberConstructor)[];
|
|
721
719
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -749,19 +747,21 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
749
747
|
prefixCls: StringConstructor;
|
|
750
748
|
flex: (StringConstructor | NumberConstructor)[];
|
|
751
749
|
}>> & HTMLAttributes;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
757
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
758
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
750
|
+
colon: boolean;
|
|
751
|
+
labelAlign: FormLabelAlign;
|
|
752
|
+
labelWrap: boolean;
|
|
753
|
+
requiredMark: "" | RequiredMark;
|
|
759
754
|
hideRequiredMark: boolean;
|
|
760
755
|
model: {
|
|
761
756
|
[key: string]: any;
|
|
762
757
|
};
|
|
758
|
+
rules: {
|
|
759
|
+
[k: string]: RuleObject | RuleObject[];
|
|
760
|
+
};
|
|
761
|
+
validateMessages: ValidateMessages;
|
|
763
762
|
validateOnRuleChange: boolean;
|
|
764
763
|
scrollToFirstError: boolean | Options<any>;
|
|
764
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
765
765
|
}> | null;
|
|
766
766
|
};
|
|
767
767
|
$slots: Readonly<{
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverSorterItem } from '../../ap-form';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
3
|
export interface SaveDataSource {
|
|
4
|
+
/** 获取表单数据 */
|
|
4
5
|
getSearchFormValues?: (transform?: boolean) => (Partial<Recordable> & Recordable<any>) | undefined;
|
|
6
|
+
/** 设置表单数据 */
|
|
5
7
|
setSearchFormValues?: (values: Partial<Recordable>) => void;
|
|
8
|
+
/** 提交 */
|
|
6
9
|
submit?: () => void;
|
|
10
|
+
/** 表格submitWith,非表格则和submit传递一致函数即可 */
|
|
7
11
|
submitWith?: () => void;
|
|
12
|
+
/** 重置 */
|
|
8
13
|
reset?: () => void;
|
|
14
|
+
/** 获取表单排序 */
|
|
9
15
|
getSearchFormSorterItems?: () => ApFormSearchFormPopoverSorterItem[];
|
|
16
|
+
/** 设置表单排序 */
|
|
10
17
|
setSearchFormSorterItems?: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
18
|
+
/** 重置表单排序 */
|
|
11
19
|
resetSearchFormSorterItems?: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* 是否转换搜索表单,默认为 false
|
|
14
|
-
*/
|
|
20
|
+
/** 是否转换搜索表单,默认为 false */
|
|
15
21
|
searchFormTransform?: boolean;
|
|
16
22
|
}
|
|
17
23
|
export interface ViewCacheOption {
|
|
24
|
+
/** 获取视图列表 */
|
|
18
25
|
getViewList?: (option: {
|
|
19
26
|
tableKey: string;
|
|
20
27
|
}) => Promise<ViewListModel[]>;
|
|
28
|
+
/** 添加视图 */
|
|
21
29
|
addView?: (option: {
|
|
22
30
|
tableKey: string;
|
|
23
31
|
viewName: string;
|
|
@@ -25,6 +33,7 @@ export interface ViewCacheOption {
|
|
|
25
33
|
viewConfig?: Recordable;
|
|
26
34
|
isDefault?: boolean;
|
|
27
35
|
}) => Promise<void>;
|
|
36
|
+
/** 设置视图 */
|
|
28
37
|
changeView?: (option: {
|
|
29
38
|
tableKey: string;
|
|
30
39
|
viewName: string;
|
|
@@ -32,6 +41,7 @@ export interface ViewCacheOption {
|
|
|
32
41
|
viewConfig?: Recordable;
|
|
33
42
|
isDefault?: boolean;
|
|
34
43
|
}) => Promise<void>;
|
|
44
|
+
/** 删除视图 */
|
|
35
45
|
removeView?: (option: {
|
|
36
46
|
tableKey: string;
|
|
37
47
|
viewKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchInputGroupProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { FieldMode, ApFieldTextProps } from '../../ap-field';
|
|
4
|
-
import {
|
|
4
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
5
5
|
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
6
|
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
7
7
|
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
@@ -14,9 +14,9 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
14
14
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
15
15
|
mode: FieldMode;
|
|
16
16
|
bordered: boolean;
|
|
17
|
+
emptyText: string;
|
|
17
18
|
lazy: boolean;
|
|
18
19
|
allowClear: boolean;
|
|
19
|
-
emptyText: string;
|
|
20
20
|
hasAll: boolean;
|
|
21
21
|
popoverPlacement: "left" | "right" | number;
|
|
22
22
|
maxNum: number;
|
|
@@ -30,8 +30,9 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
30
30
|
readonly class?: unknown;
|
|
31
31
|
readonly style?: unknown;
|
|
32
32
|
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
|
|
33
|
+
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
33
34
|
readonly lazy?: boolean | undefined;
|
|
34
|
-
readonly size?:
|
|
35
|
+
readonly size?: ButtonSize;
|
|
35
36
|
readonly hidden?: boolean | undefined;
|
|
36
37
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
37
38
|
readonly onChange?: ChangeEventHandler | undefined;
|
|
@@ -52,11 +53,10 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
52
53
|
readonly bordered?: boolean | undefined;
|
|
53
54
|
readonly suffix?: any;
|
|
54
55
|
readonly focused?: boolean | undefined;
|
|
55
|
-
readonly handleReset?: MouseEventHandler | undefined;
|
|
56
|
-
readonly defaultValue?: string | number | undefined;
|
|
57
56
|
readonly id?: string | undefined;
|
|
58
|
-
readonly
|
|
57
|
+
readonly readonly?: boolean | undefined;
|
|
59
58
|
readonly autocomplete?: string | undefined;
|
|
59
|
+
readonly placeholder?: string | number | undefined;
|
|
60
60
|
readonly maxlength?: number | undefined;
|
|
61
61
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
62
62
|
readonly htmlSize?: number | undefined;
|
|
@@ -65,9 +65,10 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
65
65
|
readonly onRawInput?: ChangeEventHandler | undefined;
|
|
66
66
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
67
67
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
68
|
+
readonly defaultValue?: string | number | undefined;
|
|
68
69
|
readonly inputElement?: any;
|
|
69
70
|
readonly triggerFocus?: (() => void) | undefined;
|
|
70
|
-
readonly
|
|
71
|
+
readonly handleReset?: MouseEventHandler | undefined;
|
|
71
72
|
readonly addonBefore?: any;
|
|
72
73
|
readonly addonAfter?: any;
|
|
73
74
|
readonly prefix?: any;
|
|
@@ -105,9 +106,9 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
105
106
|
mode: FieldMode;
|
|
106
107
|
disabled: boolean;
|
|
107
108
|
bordered: boolean;
|
|
109
|
+
emptyText: string;
|
|
108
110
|
lazy: boolean;
|
|
109
111
|
allowClear: boolean;
|
|
110
|
-
emptyText: string;
|
|
111
112
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
112
113
|
beforeCreate?: (() => void) | (() => void)[];
|
|
113
114
|
created?: (() => void) | (() => void)[];
|
|
@@ -133,12 +134,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
133
134
|
mode: FieldMode;
|
|
134
135
|
disabled: boolean;
|
|
135
136
|
bordered: boolean;
|
|
137
|
+
emptyText: string;
|
|
136
138
|
lazy: boolean;
|
|
137
139
|
allowClear: boolean;
|
|
138
|
-
emptyText: string;
|
|
139
140
|
}> & Omit<Readonly< ApFieldTextProps> & Readonly<{
|
|
140
141
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
141
|
-
}>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "
|
|
142
|
+
}>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear") | "setSelectionRange"> & ShallowUnwrapRef<{
|
|
142
143
|
focus: (options?: InputFocusOptions) => void;
|
|
143
144
|
blur: () => void;
|
|
144
145
|
input: any;
|
|
@@ -28,13 +28,28 @@ const m = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ _({
|
|
|
28
28
|
maxNum: { default: 200 },
|
|
29
29
|
mode: { default: "edit" },
|
|
30
30
|
class: {},
|
|
31
|
-
|
|
32
|
-
placeholder: {},
|
|
33
|
-
autocomplete: {},
|
|
34
|
-
type: { default: "text" },
|
|
35
|
-
name: {},
|
|
31
|
+
variant: {},
|
|
36
32
|
size: {},
|
|
33
|
+
name: {},
|
|
34
|
+
type: { default: "text" },
|
|
35
|
+
onCompositionend: {},
|
|
36
|
+
onCompositionstart: {},
|
|
37
|
+
onFocus: {},
|
|
38
|
+
onBlur: {},
|
|
39
|
+
onChange: {},
|
|
40
|
+
onInput: {},
|
|
41
|
+
onKeydown: {},
|
|
42
|
+
onKeyup: {},
|
|
43
|
+
onMousedown: {},
|
|
44
|
+
focused: { type: Boolean },
|
|
45
|
+
hidden: { type: Boolean },
|
|
46
|
+
disabled: { type: Boolean },
|
|
47
|
+
prefixCls: {},
|
|
48
|
+
id: {},
|
|
49
|
+
readonly: { type: Boolean },
|
|
37
50
|
autofocus: { type: Boolean },
|
|
51
|
+
autocomplete: {},
|
|
52
|
+
placeholder: {},
|
|
38
53
|
lazy: { type: Boolean, default: !0 },
|
|
39
54
|
maxlength: {},
|
|
40
55
|
loading: { type: Boolean },
|
|
@@ -42,27 +57,13 @@ const m = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ _({
|
|
|
42
57
|
showCount: { type: [Boolean, Object] },
|
|
43
58
|
htmlSize: {},
|
|
44
59
|
onPressEnter: {},
|
|
45
|
-
onKeydown: {},
|
|
46
|
-
onKeyup: {},
|
|
47
|
-
onMousedown: {},
|
|
48
60
|
onMouseUp: {},
|
|
49
|
-
onFocus: {},
|
|
50
|
-
onBlur: {},
|
|
51
|
-
onChange: {},
|
|
52
|
-
onInput: {},
|
|
53
61
|
onRawInput: {},
|
|
54
|
-
onCompositionstart: {},
|
|
55
|
-
onCompositionend: {},
|
|
56
62
|
valueModifiers: {},
|
|
57
|
-
hidden: { type: Boolean },
|
|
58
63
|
status: {},
|
|
59
64
|
defaultValue: {},
|
|
60
65
|
inputElement: {},
|
|
61
|
-
prefixCls: {},
|
|
62
|
-
disabled: { type: Boolean },
|
|
63
|
-
focused: { type: Boolean },
|
|
64
66
|
triggerFocus: {},
|
|
65
|
-
readonly: { type: Boolean },
|
|
66
67
|
handleReset: {},
|
|
67
68
|
addonBefore: {},
|
|
68
69
|
addonAfter: {},
|