@vue-start/pro 0.4.0 → 0.4.3
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 +10 -6
- package/dist/index.es.js +264 -216
- package/dist/index.js +265 -215
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -382,7 +382,7 @@ declare const proTableProps: () => {
|
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
384
|
declare type ProTableProps = Partial<ExtractPropTypes<ReturnType<typeof proTableProps>>>;
|
|
385
|
-
declare const createTable: (Table: any, Props?: any) => any;
|
|
385
|
+
declare const createTable: (Table: any, Props?: any, tableMethods?: string[] | undefined) => any;
|
|
386
386
|
|
|
387
387
|
declare type TPageState = {
|
|
388
388
|
page: number;
|
|
@@ -464,6 +464,7 @@ declare const proCurdProps: () => {
|
|
|
464
464
|
};
|
|
465
465
|
};
|
|
466
466
|
declare type CurdProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdProps>>>;
|
|
467
|
+
declare const CurdMethods: string[];
|
|
467
468
|
declare type ProCurdProps = CurdProps & Omit<ProModuleProps, "state" | "requests"> & {
|
|
468
469
|
curdState?: UnwrapNestedRefs<ICurdState>;
|
|
469
470
|
};
|
|
@@ -558,6 +559,9 @@ declare const ProPageCurd: vue.DefineComponent<ProPageCurdProps, {}, {}, {}, {},
|
|
|
558
559
|
declare const createCurdDesc: (Descriptions: any, DescriptionsItem: any) => any;
|
|
559
560
|
|
|
560
561
|
declare const proCurdAddOrEditProps: () => {
|
|
562
|
+
signName: {
|
|
563
|
+
type: StringConstructor;
|
|
564
|
+
};
|
|
561
565
|
operateBar: {
|
|
562
566
|
type: BooleanConstructor;
|
|
563
567
|
default: boolean;
|
|
@@ -582,7 +586,7 @@ declare const proCurdAddOrEditProps: () => {
|
|
|
582
586
|
};
|
|
583
587
|
};
|
|
584
588
|
declare type ProCurdAddOrEditProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdAddOrEditProps>>>;
|
|
585
|
-
declare const createCurdForm: (Form: any, Button: any, convertFormProps?: ((curdState: ICurdState) => Record<string, any>) | undefined) => any;
|
|
589
|
+
declare const createCurdForm: (Form: any, Button: any, convertFormProps?: ((curdState: ICurdState) => Record<string, any>) | undefined, formMethods?: string[] | undefined) => any;
|
|
586
590
|
|
|
587
591
|
declare const proCurdListProps: () => {
|
|
588
592
|
/**
|
|
@@ -730,7 +734,7 @@ declare const proFormProps: () => {
|
|
|
730
734
|
};
|
|
731
735
|
};
|
|
732
736
|
declare type ProFormProps = Partial<ExtractPropTypes<ReturnType<typeof proFormProps>>>;
|
|
733
|
-
declare const createForm: (Form: any, Grid: any) => any;
|
|
737
|
+
declare const createForm: (Form: any, Grid: any, formMethods: string[]) => any;
|
|
734
738
|
|
|
735
739
|
declare enum SearchMode {
|
|
736
740
|
AUTO = "AUTO",
|
|
@@ -743,7 +747,6 @@ declare const proSearchFormProps: () => {
|
|
|
743
747
|
*/
|
|
744
748
|
model: {
|
|
745
749
|
type: PropType<Record<string, any>>;
|
|
746
|
-
required: boolean;
|
|
747
750
|
};
|
|
748
751
|
/**
|
|
749
752
|
* 初始化触发 onFinish
|
|
@@ -786,7 +789,7 @@ declare type ProSearchFormProps = Partial<ExtractPropTypes<ReturnType<typeof pro
|
|
|
786
789
|
* 该组件只是个模式,最终返回null,不做任何渲染,应配合着ProForm的包装类一起使用
|
|
787
790
|
* 针对传入的model(监听对象)做相应的finish(回调)处理
|
|
788
791
|
*/
|
|
789
|
-
declare const createSearchForm: (Form: any, Props: any) => any;
|
|
792
|
+
declare const createSearchForm: (Form: any, Props: any, formMethods: string[]) => any;
|
|
790
793
|
|
|
791
794
|
interface FormItemProps {
|
|
792
795
|
name?: string | number | (string | number)[];
|
|
@@ -889,6 +892,7 @@ interface IProFormListProvide {
|
|
|
889
892
|
pathList: (string | number)[];
|
|
890
893
|
}
|
|
891
894
|
declare const useProFormList: () => IProFormListProvide;
|
|
895
|
+
declare const provideProFormList: (ctx: IProFormListProvide) => void;
|
|
892
896
|
declare const proFormListProps: () => {
|
|
893
897
|
rowKey: {
|
|
894
898
|
type: StringConstructor;
|
|
@@ -958,4 +962,4 @@ declare const generateId: () => string;
|
|
|
958
962
|
*/
|
|
959
963
|
declare const createExpose: (methods: string[], targetRef: Ref$1) => {};
|
|
960
964
|
|
|
961
|
-
export { BooleanObjType, BooleanRulesObjType, CurdAction, CurdAddAction, CurdCurrentMode, CurdSubAction, FieldNames, FormItemProps, GridProps, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOperateItem, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, InternalNamePath, NamePath, ProCurd, ProCurdAddOrEditProps, ProCurdListProps, ProCurdProps, ProFormItemProps, ProFormListProps, ProFormProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProPageCurd, ProPageCurdProps, ProSearchFormProps, ProTableProps, RequestAction, SearchMode, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TData, TDefaultValueType, TElementMap, TOption, TOptions, TPageState, TTableColumn, TTableColumns, TValueType, Wrapper, convertPathToList, createCurdDesc, createCurdForm, createCurdList, createExpose, createForm, createFormItemCompFn, createFormList, createGrid, createSearchForm, createTable, defaultPage, findTargetInTree, findTargetListInTree, generateId, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getValidValues, mergeStateToList, provideProCurd, provideProModule, renderElement, renderElements, useComposeRequestActor, useDoneRequestActor, useFailedRequestActor, useModuleEvent, useProCurd, useProForm, useProFormList, useProModule, useProTable };
|
|
965
|
+
export { BooleanObjType, BooleanRulesObjType, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, FieldNames, FormItemProps, GridProps, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOperateItem, IProCurdProvide, IProFormProvideExtra, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, InternalNamePath, NamePath, ProCurd, ProCurdAddOrEditProps, ProCurdListProps, ProCurdProps, ProFormItemProps, ProFormListProps, ProFormProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProPageCurd, ProPageCurdProps, ProSearchFormProps, ProTableProps, RequestAction, SearchMode, TActionEvent, TActionState, TColumn, TColumns, TCurdActionEvent, TData, TDefaultValueType, TElementMap, TOption, TOptions, TPageState, TTableColumn, TTableColumns, TValueType, Wrapper, convertPathToList, createCurdDesc, createCurdForm, createCurdList, createExpose, createForm, createFormItemCompFn, createFormList, createGrid, createSearchForm, createTable, defaultPage, findTargetInTree, findTargetListInTree, generateId, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getValidValues, mergeStateToList, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useComposeRequestActor, useDoneRequestActor, useFailedRequestActor, useModuleEvent, useProCurd, useProForm, useProFormList, useProModule, useProTable };
|