@vue-start/pro 0.5.25 → 0.5.27

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
@@ -8,8 +8,8 @@ import { IRequestActor } from '@vue-start/request';
8
8
  import * as _vue_start_store from '@vue-start/store';
9
9
  import { TUpdater } from '@vue-start/store';
10
10
  import { Router, RouteLocationNormalizedLoaded } from 'vue-router';
11
- import { TConvert } from '@vue-start/hooks';
12
11
  import * as lodash from 'lodash';
12
+ import { TConvert } from '@vue-start/hooks';
13
13
 
14
14
  declare type TDefaultValueType = "text" | "textarea" | "password" | "digit" | "date" | "dateRange" | "time" | "timeRange" | "select" | "treeSelect" | "checkbox" | "radio" | "slider" | "switch" | "rate" | "cascader";
15
15
  declare type TValueType = TDefaultValueType | string;
@@ -566,6 +566,9 @@ interface IProConfigProvide {
566
566
  expressionMethods: {
567
567
  [key: string]: (...params: any[]) => any;
568
568
  };
569
+ showMsg: (opts: Record<string, any>) => any;
570
+ showModal: (opts: Record<string, any>) => any;
571
+ showNotify: (opts: Record<string, any>) => any;
569
572
  }
570
573
  declare const proConfigProps: () => {
571
574
  elementMap: {
@@ -596,8 +599,20 @@ declare const proConfigProps: () => {
596
599
  [key: string]: (...params: any[]) => any;
597
600
  }>;
598
601
  };
602
+ showMsg: {
603
+ type: ObjectConstructor;
604
+ };
605
+ showModal: {
606
+ type: ObjectConstructor;
607
+ };
608
+ showNotify: {
609
+ type: ObjectConstructor;
610
+ };
599
611
  };
600
612
  declare const useProConfig: () => IProConfigProvide;
613
+ declare const useProMsg: () => (opts: Record<string, any>) => any;
614
+ declare const useProModal: () => (opts: Record<string, any>) => any;
615
+ declare const useProNotify: () => (opts: Record<string, any>) => any;
601
616
  declare type ProConfigProps = Partial<ExtractPropTypes<ReturnType<typeof proConfigProps>>>;
602
617
  /**
603
618
  * 组件方式注册
@@ -631,6 +646,15 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
631
646
  [key: string]: (...params: any[]) => any;
632
647
  }>;
633
648
  };
649
+ showMsg: {
650
+ type: ObjectConstructor;
651
+ };
652
+ showModal: {
653
+ type: ObjectConstructor;
654
+ };
655
+ showNotify: {
656
+ type: ObjectConstructor;
657
+ };
634
658
  }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
635
659
  elementMap: {
636
660
  type: PropType<TElementMap>;
@@ -660,6 +684,15 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
660
684
  [key: string]: (...params: any[]) => any;
661
685
  }>;
662
686
  };
687
+ showMsg: {
688
+ type: ObjectConstructor;
689
+ };
690
+ showModal: {
691
+ type: ObjectConstructor;
692
+ };
693
+ showNotify: {
694
+ type: ObjectConstructor;
695
+ };
663
696
  }>>>, {}>;
664
697
  /**
665
698
  * app.use 方式注册
@@ -796,15 +829,22 @@ interface IProFormProvide extends IProFormProvideExtra {
796
829
  columns: Ref<TColumns>;
797
830
  }
798
831
  declare const useProForm: () => IProFormProvide;
832
+ declare const useFormSubmit: (cb: (...e: any[]) => void, wait?: number, options?: Record<string, any>) => lodash.DebouncedFunc<(...e: any[]) => void>;
799
833
  declare enum FormAction {
800
834
  RESET = "RESET",
801
835
  SUBMIT = "SUBMIT",
802
836
  CONTINUE = "CONTINUE"
803
837
  }
804
838
  declare type TProFormOperate = ProOperateProps & {
805
- onReset?: () => void;
806
- onSubmit?: () => void;
807
- onContinue?: () => void;
839
+ onReset?: ({ form }: {
840
+ form: any;
841
+ }) => void;
842
+ onSubmit?: ({ form }: {
843
+ form: any;
844
+ }) => void;
845
+ onContinue?: ({ form }: {
846
+ form: any;
847
+ }) => void;
808
848
  };
809
849
  declare const proFormProps: () => {
810
850
  /**
@@ -876,6 +916,16 @@ declare const proFormProps: () => {
876
916
  formMethods: {
877
917
  type: PropType<string[]>;
878
918
  };
919
+ /**
920
+ * 防抖提交
921
+ */
922
+ debounceSubmit: {
923
+ type: PropType<number | {
924
+ wait: number;
925
+ options?: Record<string, any> | undefined;
926
+ }>;
927
+ default: undefined;
928
+ };
879
929
  };
880
930
  declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>> & ProBaseProps & Omit<ProGridProps, "items"> & {
881
931
  onFinish?: (showValues?: Record<string, any>, values?: Record<string, any>) => void;
@@ -2299,4 +2349,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
2299
2349
  */
2300
2350
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
2301
2351
 
2302
- export { AddButton, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, IUser, InternalNamePath, LogonUser, LogonUserKey, MustLogon, NamePath, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TConfigData, TCurdActionEvent, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOpen, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRouter, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getSignValue, getValidValues, isValidConfig, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useGetCompByKey, useHasPer, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModule, useProRouter, useProTable, useReadStore };
2352
+ export { AddButton, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, IUser, InternalNamePath, LogonUser, LogonUserKey, MustLogon, NamePath, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, RequestAction, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TConfigData, TCurdActionEvent, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOpen, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRouter, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getSignValue, getValidValues, isValidConfig, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore };