@vue-start/pro 0.5.29 → 0.5.31

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';
@@ -491,10 +492,28 @@ declare type TMeta = {
491
492
  declare const useDispatchMeta: () => (actorName: string) => void;
492
493
  declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"]) => void;
493
494
 
494
- declare type TOpen = (url?: string | URL, target?: string, features?: string) => WindowProxy | null;
495
495
  declare type TOpenMenu = (menu: any) => void;
496
- declare type TRouter = Router & {
497
- open: TOpen;
496
+ declare const RouterMethods: {
497
+ open: (url?: string | URL, target?: string, features?: string) => WindowProxy | null;
498
+ parseStr: (str: string) => {
499
+ protocol: string;
500
+ path: string;
501
+ origin: string;
502
+ query: vue_router.LocationQuery;
503
+ url: string;
504
+ } | {
505
+ protocol: string;
506
+ query: vue_router.LocationQuery;
507
+ url: string;
508
+ path?: undefined;
509
+ origin?: undefined;
510
+ } | null;
511
+ stringifyUrl: ({ url, query }: {
512
+ url: string;
513
+ query: Record<string, any>;
514
+ }) => string;
515
+ };
516
+ declare type TRouter = Router & Partial<typeof RouterMethods> & {
498
517
  openMenu: TOpenMenu;
499
518
  };
500
519
  declare const useProRouter: () => {
@@ -532,9 +551,16 @@ declare const proBasePropsFn: () => {
532
551
  columnState: {
533
552
  type: PropType<Record<string, any>>;
534
553
  };
554
+ /**
555
+ * columnState2
556
+ */
557
+ columnState2: {
558
+ type: PropType<Record<string, any>>;
559
+ };
535
560
  };
536
561
  declare type ProBaseProps = Partial<ExtractPropTypes<ReturnType<typeof proBasePropsFn>>>;
537
562
  declare const proBaseProps: ProBaseProps;
563
+ declare const mergeState: (columns: TColumns, columnState?: Record<string, any>, columnState2?: Record<string, any>) => TColumns;
538
564
  declare type ProDispatchRequestType = (actorName: string, params?: IRequestActor["req"], extra?: IRequestActor["extra"]) => IRequestActor | undefined;
539
565
  declare type TFormExtraMap = {
540
566
  rulePrefixMap?: Record<string, string>;
@@ -751,6 +777,7 @@ declare const useHasPer: () => (perStr: string | string[], options?: {
751
777
  suffix?: boolean;
752
778
  splitStr?: string;
753
779
  }) => boolean;
780
+ declare const useHasPer2: () => (per?: string, suffix?: string, splitStr?: string) => boolean;
754
781
  declare const permissionProps: () => {
755
782
  suffix: {
756
783
  type: (StringConstructor | PropType<string[]>)[];
@@ -1125,6 +1152,9 @@ declare const proFormListProps: () => {
1125
1152
  declare type ProFormListProps = Partial<ExtractPropTypes<ReturnType<typeof proFormListProps>>> & Omit<ProGridProps, "items">;
1126
1153
  declare const ProFormList: vue.DefineComponent<ProFormListProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProFormListProps>, {}>;
1127
1154
 
1155
+ /**
1156
+ * !!!! 这块修改后,得同步CudList tableOperateItems
1157
+ */
1128
1158
  interface IOpeItem {
1129
1159
  value: string | number;
1130
1160
  label?: string | VNode | (() => string | VNode);
@@ -1239,8 +1269,10 @@ interface IOperateItem {
1239
1269
  loading?: boolean | ((record: Record<string, any>) => boolean);
1240
1270
  extraProps?: object | ((record: Record<string, any>) => Record<string, any>);
1241
1271
  onClick?: (record: Record<string, any>) => void;
1242
- sort?: number;
1243
1272
  element?: (record: Record<string, any>, item: IOperateItem) => VNode;
1273
+ sort?: number;
1274
+ per?: string;
1275
+ perSuffix?: string;
1244
1276
  }
1245
1277
  /**
1246
1278
  * 整个操作栏描述
@@ -2287,6 +2319,10 @@ declare const curdListProps: () => {
2287
2319
  inSearch: boolean;
2288
2320
  };
2289
2321
  };
2322
+ activatedRefresh: {
2323
+ type: BooleanConstructor;
2324
+ default: boolean;
2325
+ };
2290
2326
  };
2291
2327
  declare type ProCurdListProps = Partial<ExtractPropTypes<ReturnType<typeof curdListProps>>> & ProListProps;
2292
2328
  /**
@@ -2344,7 +2380,9 @@ declare const AddButton: vue.DefineComponent<{
2344
2380
  buttonProps: ObjectConstructor;
2345
2381
  }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
2346
2382
  [key: string]: any;
2347
- }>[] | JSX.Element | null, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
2383
+ }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
2384
+ [key: string]: any;
2385
+ }>[] | null, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
2348
2386
  buttonProps: ObjectConstructor;
2349
2387
  }>>, {}>;
2350
2388
 
@@ -2392,4 +2430,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
2392
2430
  */
2393
2431
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
2394
2432
 
2395
- 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, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore };
2433
+ 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, 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 };