@qin-ui/antd-vue-pro 1.0.0 → 1.0.2
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/README.md +332 -0
- package/es/component-provider/index.js +23 -0
- package/es/form/index.js +11837 -0
- package/es/index.d.ts +42 -27
- package/es/index.js +11 -11826
- package/es/style.css +2 -2
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ import type { DatePickerProps } from 'ant-design-vue';
|
|
|
16
16
|
import { DebuggerEvent } from 'vue';
|
|
17
17
|
import type { DeepReadonly } from 'vue';
|
|
18
18
|
import { DefineComponent } from 'vue';
|
|
19
|
-
import type { defineComponent } from 'vue';
|
|
20
19
|
import { ExtractPropTypes } from 'vue';
|
|
21
20
|
import { FieldData } from 'ant-design-vue/es/form/interface';
|
|
22
21
|
import type { FormItemProps } from 'ant-design-vue';
|
|
@@ -69,6 +68,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
69
68
|
};
|
|
70
69
|
};
|
|
71
70
|
|
|
71
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
|
|
72
77
|
export declare type AppendField = (path: string, field: Field) => void;
|
|
73
78
|
|
|
74
79
|
/**
|
|
@@ -83,7 +88,7 @@ export declare type AutoCommand = Record<CommandTrigger, Commands>;
|
|
|
83
88
|
|
|
84
89
|
export declare type BaseComponentStringName = Exclude<Field['component'], RenderComponentType | undefined>;
|
|
85
90
|
|
|
86
|
-
export declare const BaseField:
|
|
91
|
+
export declare const BaseField: __VLS_WithTemplateSlots_2<DefineComponent<{
|
|
87
92
|
path: {
|
|
88
93
|
type: PropType<string>;
|
|
89
94
|
default: string;
|
|
@@ -230,9 +235,11 @@ export declare type Condition = {
|
|
|
230
235
|
|
|
231
236
|
export declare type ContainerComponent = FunctionalComponent<{
|
|
232
237
|
path?: string;
|
|
233
|
-
}> |
|
|
238
|
+
}> | DefineComponent<{
|
|
239
|
+
path?: string;
|
|
240
|
+
}, object, any>;
|
|
234
241
|
|
|
235
|
-
export declare const ContainerFragment:
|
|
242
|
+
export declare const ContainerFragment: __VLS_WithTemplateSlots_3<DefineComponent<{
|
|
236
243
|
component: {
|
|
237
244
|
type: PropType<any>;
|
|
238
245
|
};
|
|
@@ -257,11 +264,11 @@ declare const _default: {
|
|
|
257
264
|
};
|
|
258
265
|
export default _default;
|
|
259
266
|
|
|
260
|
-
declare const _default_2: DefineComponent<{
|
|
261
|
-
|
|
267
|
+
declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
|
|
268
|
+
prefixCls: {
|
|
262
269
|
type: PropType<string>;
|
|
263
270
|
};
|
|
264
|
-
|
|
271
|
+
name: {
|
|
265
272
|
type: PropType<string>;
|
|
266
273
|
};
|
|
267
274
|
size: {
|
|
@@ -435,10 +442,10 @@ declare const _default_2: DefineComponent<{
|
|
|
435
442
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
436
443
|
"update:formData": (val: FormData_2) => void;
|
|
437
444
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
438
|
-
|
|
445
|
+
prefixCls: {
|
|
439
446
|
type: PropType<string>;
|
|
440
447
|
};
|
|
441
|
-
|
|
448
|
+
name: {
|
|
442
449
|
type: PropType<string>;
|
|
443
450
|
};
|
|
444
451
|
size: {
|
|
@@ -603,7 +610,9 @@ declare const _default_2: DefineComponent<{
|
|
|
603
610
|
formData: FormData_2;
|
|
604
611
|
form: Form;
|
|
605
612
|
autoCommandDisabled: boolean;
|
|
606
|
-
}, {}
|
|
613
|
+
}, {}>, {
|
|
614
|
+
default?(_: {}): any;
|
|
615
|
+
}>;
|
|
607
616
|
|
|
608
617
|
export declare type DeleteField = (path: string) => void;
|
|
609
618
|
|
|
@@ -735,7 +744,7 @@ export declare type Grid = boolean | RowProps;
|
|
|
735
744
|
|
|
736
745
|
export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
|
|
737
746
|
maxlength: number;
|
|
738
|
-
|
|
747
|
+
allowClear: boolean;
|
|
739
748
|
autosize?: undefined;
|
|
740
749
|
showCount?: undefined;
|
|
741
750
|
max?: undefined;
|
|
@@ -750,7 +759,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
|
|
|
750
759
|
maxRows: number;
|
|
751
760
|
};
|
|
752
761
|
showCount: boolean;
|
|
753
|
-
|
|
762
|
+
allowClear: boolean;
|
|
754
763
|
max?: undefined;
|
|
755
764
|
min?: undefined;
|
|
756
765
|
controls?: undefined;
|
|
@@ -760,14 +769,14 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
|
|
|
760
769
|
max: number;
|
|
761
770
|
min: number;
|
|
762
771
|
controls: boolean;
|
|
763
|
-
|
|
772
|
+
allowClear: boolean;
|
|
764
773
|
maxlength?: undefined;
|
|
765
774
|
autosize?: undefined;
|
|
766
775
|
showCount?: undefined;
|
|
767
776
|
format?: undefined;
|
|
768
777
|
valueFormat?: undefined;
|
|
769
778
|
} | {
|
|
770
|
-
|
|
779
|
+
allowClear: boolean;
|
|
771
780
|
maxlength?: undefined;
|
|
772
781
|
autosize?: undefined;
|
|
773
782
|
showCount?: undefined;
|
|
@@ -779,7 +788,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
|
|
|
779
788
|
} | {
|
|
780
789
|
format: string;
|
|
781
790
|
valueFormat: string;
|
|
782
|
-
|
|
791
|
+
allowClear: boolean;
|
|
783
792
|
maxlength?: undefined;
|
|
784
793
|
autosize?: undefined;
|
|
785
794
|
showCount?: undefined;
|
|
@@ -788,7 +797,7 @@ export declare const INIT_COMPONENT_PROPS_MAP: Map<symbol, {
|
|
|
788
797
|
controls?: undefined;
|
|
789
798
|
} | {
|
|
790
799
|
maxlength?: undefined;
|
|
791
|
-
|
|
800
|
+
allowClear?: undefined;
|
|
792
801
|
autosize?: undefined;
|
|
793
802
|
showCount?: undefined;
|
|
794
803
|
max?: undefined;
|
|
@@ -860,7 +869,7 @@ export declare type Options = Array<Option_2>;
|
|
|
860
869
|
|
|
861
870
|
export declare type PrependField = (path: string, field: Field) => void;
|
|
862
871
|
|
|
863
|
-
export declare const ProComponentProvider: {
|
|
872
|
+
export declare const ProComponentProvider: SFCWithInstall<{
|
|
864
873
|
new (...args: any[]): {
|
|
865
874
|
$: ComponentInternalInstance;
|
|
866
875
|
$data: {};
|
|
@@ -967,9 +976,9 @@ export declare const ProComponentProvider: {
|
|
|
967
976
|
$slots: {
|
|
968
977
|
default?(_: {}): any;
|
|
969
978
|
};
|
|
970
|
-
})
|
|
979
|
+
})>;
|
|
971
980
|
|
|
972
|
-
export declare const ProForm: {
|
|
981
|
+
export declare const ProForm: SFCWithInstall<{
|
|
973
982
|
new (...args: any[]): {
|
|
974
983
|
$: ComponentInternalInstance;
|
|
975
984
|
$data: {};
|
|
@@ -979,8 +988,8 @@ export declare const ProForm: {
|
|
|
979
988
|
formData?: FormData_2 | undefined;
|
|
980
989
|
form?: Form | undefined;
|
|
981
990
|
autoCommandDisabled?: boolean | undefined;
|
|
982
|
-
readonly name?: string | undefined;
|
|
983
991
|
readonly prefixCls?: string | undefined;
|
|
992
|
+
readonly name?: string | undefined;
|
|
984
993
|
readonly size?: "small" | "middle" | "large" | undefined;
|
|
985
994
|
readonly disabled?: boolean | undefined;
|
|
986
995
|
readonly labelCol?: (Partial<ExtractPropTypes<{
|
|
@@ -1131,10 +1140,10 @@ export declare const ProForm: {
|
|
|
1131
1140
|
$emit: (event: "update:formData", val: FormData_2) => void;
|
|
1132
1141
|
$el: any;
|
|
1133
1142
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
1134
|
-
|
|
1143
|
+
prefixCls: {
|
|
1135
1144
|
type: PropType<string>;
|
|
1136
1145
|
};
|
|
1137
|
-
|
|
1146
|
+
name: {
|
|
1138
1147
|
type: PropType<string>;
|
|
1139
1148
|
};
|
|
1140
1149
|
size: {
|
|
@@ -1336,10 +1345,10 @@ export declare const ProForm: {
|
|
|
1336
1345
|
$nextTick: typeof nextTick;
|
|
1337
1346
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
1338
1347
|
} & Readonly<ExtractPropTypes<{
|
|
1339
|
-
|
|
1348
|
+
prefixCls: {
|
|
1340
1349
|
type: PropType<string>;
|
|
1341
1350
|
};
|
|
1342
|
-
|
|
1351
|
+
name: {
|
|
1343
1352
|
type: PropType<string>;
|
|
1344
1353
|
};
|
|
1345
1354
|
size: {
|
|
@@ -1517,10 +1526,10 @@ export declare const ProForm: {
|
|
|
1517
1526
|
__isTeleport?: undefined;
|
|
1518
1527
|
__isSuspense?: undefined;
|
|
1519
1528
|
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
1520
|
-
|
|
1529
|
+
prefixCls: {
|
|
1521
1530
|
type: PropType<string>;
|
|
1522
1531
|
};
|
|
1523
|
-
|
|
1532
|
+
name: {
|
|
1524
1533
|
type: PropType<string>;
|
|
1525
1534
|
};
|
|
1526
1535
|
size: {
|
|
@@ -1701,7 +1710,11 @@ export declare const ProForm: {
|
|
|
1701
1710
|
formData: FormData_2;
|
|
1702
1711
|
form: Form;
|
|
1703
1712
|
autoCommandDisabled: boolean;
|
|
1704
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps &
|
|
1713
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1714
|
+
$slots: {
|
|
1715
|
+
default?(_: {}): any;
|
|
1716
|
+
};
|
|
1717
|
+
})>;
|
|
1705
1718
|
|
|
1706
1719
|
export declare type ProFormInstance = InstanceType<typeof _default_2>;
|
|
1707
1720
|
|
|
@@ -1759,6 +1772,8 @@ export declare type SetField = (path: string, field: Field | ((preField: ReturnT
|
|
|
1759
1772
|
|
|
1760
1773
|
export declare type SetFormData = (path: string, value: any | ((preValue: DeepReadonly<any>) => any)) => void;
|
|
1761
1774
|
|
|
1775
|
+
declare type SFCWithInstall<T> = T & Plugin_2;
|
|
1776
|
+
|
|
1762
1777
|
declare type SliderSlots = FieldSlot<'mark'>;
|
|
1763
1778
|
|
|
1764
1779
|
export declare type Slot = {
|