@vue-start/pro 0.4.10 → 0.4.11

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/dist/index.d.ts CHANGED
@@ -296,11 +296,10 @@ declare const useModuleEvent: (cb: (action: TActionEvent) => void) => void;
296
296
  declare const useDoneRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
297
297
  declare const useFailedRequestActor: (actors: (IRequestActor | string)[], callback: (actor: IRequestActor) => void) => void;
298
298
  declare const useComposeRequestActor: (actors: (IRequestActor | string)[], options: {
299
- onStart?: ((actor: IRequestActor) => void) | undefined;
300
299
  onSuccess?: ((actor: IRequestActor) => void) | undefined;
301
300
  onFailed?: ((actor: IRequestActor) => void) | undefined;
302
301
  onFinish?: ((actor: IRequestActor) => void) | undefined;
303
- }, cancelWhileUnmount?: boolean | undefined) => void;
302
+ }, cancelWhileUnmount?: boolean) => void;
304
303
 
305
304
  interface IProTableProvideExtra extends Record<string, any> {
306
305
  }
@@ -390,7 +389,7 @@ declare const proTableProps: () => {
390
389
  };
391
390
  };
392
391
  declare type ProTableProps = Partial<ExtractPropTypes<ReturnType<typeof proTableProps>>>;
393
- declare const createTable: (Table: any, Props?: any, tableMethods?: string[] | undefined) => any;
392
+ declare const createTable: (Table: any, Props?: any, tableMethods?: string[]) => any;
394
393
 
395
394
  declare type TPageState = {
396
395
  page: number;
@@ -600,7 +599,7 @@ declare const proCurdAddOrEditProps: () => {
600
599
  };
601
600
  };
602
601
  declare type ProCurdAddOrEditProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdAddOrEditProps>>>;
603
- declare const createCurdForm: (Form: any, Button: any, convertFormProps?: ((curdState: ICurdState) => Record<string, any>) | undefined, formMethods?: string[] | undefined) => any;
602
+ declare const createCurdForm: (Form: any, Button: any, convertFormProps?: ((curdState: ICurdState) => Record<string, any>) | undefined, formMethods?: string[]) => any;
604
603
 
605
604
  declare const proCurdListProps: () => {
606
605
  /**
@@ -877,9 +876,7 @@ declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, con
877
876
  slots: {
878
877
  type: ObjectConstructor;
879
878
  };
880
- }>> & Record<string, any> extends vue.ComponentPropsOptions<{
881
- [x: string]: unknown;
882
- }> ? ExtractPropTypes<T & Partial<ExtractPropTypes<{
879
+ }>> & Record<string, any> extends infer T_1 ? T_1 extends T & Partial<ExtractPropTypes<{
883
880
  readonly: {
884
881
  type: BooleanConstructor;
885
882
  default: undefined;
@@ -893,21 +890,9 @@ declare const createFormItemCompFn: <T extends FormItemProps>(FormItem: any, con
893
890
  slots: {
894
891
  type: ObjectConstructor;
895
892
  };
896
- }>> & Record<string, any>> : T & Partial<ExtractPropTypes<{
897
- readonly: {
898
- type: BooleanConstructor;
899
- default: undefined;
900
- };
901
- fieldProps: {
902
- type: ObjectConstructor;
903
- };
904
- showProps: {
905
- type: ObjectConstructor;
906
- };
907
- slots: {
908
- type: ObjectConstructor;
909
- };
910
- }>> & Record<string, any>>, vue.ExtractDefaultPropTypes<T & Partial<ExtractPropTypes<{
893
+ }>> & Record<string, any> ? T_1 extends vue.ComponentPropsOptions<{
894
+ [x: string]: unknown;
895
+ }> ? ExtractPropTypes<T_1> : T_1 : never : never>, vue.ExtractDefaultPropTypes<T & Partial<ExtractPropTypes<{
911
896
  readonly: {
912
897
  type: BooleanConstructor;
913
898
  default: undefined;
@@ -947,7 +932,7 @@ declare const createFormList: (FormItem: any) => any;
947
932
  * @param showState
948
933
  * @param showStateRules
949
934
  */
950
- declare const getValidValues: (values: Record<string, any>, showState?: BooleanObjType | undefined, showStateRules?: BooleanRulesObjType | undefined) => Record<string, any>;
935
+ declare const getValidValues: (values: Record<string, any>, showState?: BooleanObjType, showStateRules?: BooleanRulesObjType) => Record<string, any>;
951
936
  /**
952
937
  * string类型的path转为arr
953
938
  * @param path