@vue-start/pro 0.5.30 → 0.5.32

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
@@ -7,6 +7,7 @@ import { Subject } from 'rxjs';
7
7
  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
+ import * as vue_router from 'vue-router';
10
11
  import { Router, RouteLocationNormalizedLoaded } from 'vue-router';
11
12
  import * as lodash from 'lodash';
12
13
  import { TConvert } from '@vue-start/hooks';
@@ -180,6 +181,15 @@ declare const getColumnValueType: (column: TColumn) => TValueType;
180
181
  * @param column
181
182
  */
182
183
  declare const getColumnFormItemName: (column: TColumn) => string | number | undefined;
184
+ /**
185
+ * 获取column 中对应的render方法
186
+ * case1:render为方法的时候,直接返回render;
187
+ * case2:render为字符串的时候,返回column中该字符串对应的属性;
188
+ * 如:render为"customRender"时候,返回customRender方法;
189
+ * @param column
190
+ * @param render
191
+ */
192
+ declare const getRealRender: (column: TColumn, render: string | ((...args: any[]) => any) | undefined) => any;
183
193
  /**
184
194
  * 根据Column生成FormItem VNode
185
195
  * formFieldProps中的slots参数会以v-slots的形式传递到FormItem的录入组件(子组件)中
@@ -491,10 +501,28 @@ declare type TMeta = {
491
501
  declare const useDispatchMeta: () => (actorName: string) => void;
492
502
  declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"]) => void;
493
503
 
494
- declare type TOpen = (url?: string | URL, target?: string, features?: string) => WindowProxy | null;
495
504
  declare type TOpenMenu = (menu: any) => void;
496
- declare type TRouter = Router & {
497
- open: TOpen;
505
+ declare const RouterMethods: {
506
+ open: (url?: string | URL, target?: string, features?: string) => WindowProxy | null;
507
+ parseStr: (str: string) => {
508
+ protocol: string;
509
+ path: string;
510
+ origin: string;
511
+ query: vue_router.LocationQuery;
512
+ url: string;
513
+ } | {
514
+ protocol: string;
515
+ query: vue_router.LocationQuery;
516
+ url: string;
517
+ path?: undefined;
518
+ origin?: undefined;
519
+ } | null;
520
+ stringifyUrl: ({ url, query }: {
521
+ url: string;
522
+ query: Record<string, any>;
523
+ }) => string;
524
+ };
525
+ declare type TRouter = Router & Partial<typeof RouterMethods> & {
498
526
  openMenu: TOpenMenu;
499
527
  };
500
528
  declare const useProRouter: () => {
@@ -532,9 +560,16 @@ declare const proBasePropsFn: () => {
532
560
  columnState: {
533
561
  type: PropType<Record<string, any>>;
534
562
  };
563
+ /**
564
+ * columnState2
565
+ */
566
+ columnState2: {
567
+ type: PropType<Record<string, any>>;
568
+ };
535
569
  };
536
570
  declare type ProBaseProps = Partial<ExtractPropTypes<ReturnType<typeof proBasePropsFn>>>;
537
571
  declare const proBaseProps: ProBaseProps;
572
+ declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>) => TColumns;
538
573
  declare type ProDispatchRequestType = (actorName: string, params?: IRequestActor["req"], extra?: IRequestActor["extra"]) => IRequestActor | undefined;
539
574
  declare type TFormExtraMap = {
540
575
  rulePrefixMap?: Record<string, string>;
@@ -2293,6 +2328,10 @@ declare const curdListProps: () => {
2293
2328
  inSearch: boolean;
2294
2329
  };
2295
2330
  };
2331
+ activatedRefresh: {
2332
+ type: BooleanConstructor;
2333
+ default: boolean;
2334
+ };
2296
2335
  };
2297
2336
  declare type ProCurdListProps = Partial<ExtractPropTypes<ReturnType<typeof curdListProps>>> & ProListProps;
2298
2337
  /**
@@ -2400,4 +2439,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
2400
2439
  */
2401
2440
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
2402
2441
 
2403
- 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, TRender, 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, useHasPer2, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore };
2442
+ 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, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColumn, TColumns, TConfigData, TCurdActionEvent, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TTableColumn, TTableColumns, TValueType, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getFormItemEl, getItemEl, getRealRender, getSignValue, getValidValues, isValidConfig, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderElement, renderElements, useAccess, useAccessMgr, useComposeRequestActor, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore };