@vue-start/pro 0.5.44 → 0.5.46
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/CHANGELOG.md +11 -0
- package/dist/index.css +65 -5
- package/dist/index.d.ts +79 -4
- package/dist/index.es.js +1011 -967
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.5.46
|
|
7
|
+
|
|
8
|
+
- perf: ProLayout 左侧菜单添加 key;
|
|
9
|
+
- perf: ProTable class 新增 pro-table.has-header;
|
|
10
|
+
|
|
11
|
+
# 0.5.45
|
|
12
|
+
|
|
13
|
+
- feat: ProWatermark 水印组件,ProLayout 中通过 watermark 属性配置;
|
|
14
|
+
- fix: ProShowTree 展示兼容多选的情况;
|
|
15
|
+
- fix: meta 模式 bug 修复,支持 useMeta 直接使用;
|
|
16
|
+
|
|
6
17
|
# 0.5.44
|
|
7
18
|
|
|
8
19
|
- feat:Page 新增 sub 属性, 返回按钮展示状态添加 sub 判断
|
package/dist/index.css
CHANGED
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
.pro-layout-tabs-menus {
|
|
244
244
|
position: fixed;
|
|
245
245
|
background-color: pink;
|
|
246
|
-
transform: translate(-50%,0);
|
|
246
|
+
transform: translate(-50%, 0);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/********************************** pro-typography ***********************************/
|
|
@@ -323,15 +323,23 @@
|
|
|
323
323
|
flex-grow: 1;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
.pro-table-toolbar-column .pro-table-toolbar-column-header {
|
|
327
|
+
display: flex;
|
|
328
|
+
align-items: center;
|
|
329
|
+
justify-content: space-between;
|
|
330
|
+
}
|
|
331
|
+
|
|
326
332
|
/* element-plus */
|
|
327
333
|
.pro-table .pro-table-toolbar .pro-table-toolbar-start .el-form-item {
|
|
328
334
|
margin-bottom: 0px;
|
|
329
335
|
}
|
|
330
336
|
|
|
331
|
-
.pro-table-
|
|
332
|
-
display:
|
|
333
|
-
|
|
334
|
-
|
|
337
|
+
.pro-table .el-table__header .pro-single .el-checkbox {
|
|
338
|
+
display: none;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.pro-table .pro-single .el-checkbox__inner {
|
|
342
|
+
border-radius: 50%;
|
|
335
343
|
}
|
|
336
344
|
|
|
337
345
|
/********************************** pro-page ***********************************/
|
|
@@ -438,3 +446,55 @@
|
|
|
438
446
|
text-align: center;
|
|
439
447
|
cursor: default;
|
|
440
448
|
}
|
|
449
|
+
|
|
450
|
+
/********************************** pro-watermark ***********************************/
|
|
451
|
+
.pro-watermark {
|
|
452
|
+
pointer-events: none;
|
|
453
|
+
top: 0px;
|
|
454
|
+
left: 0px;
|
|
455
|
+
position: fixed;
|
|
456
|
+
z-index: 10000000;
|
|
457
|
+
width: 100vw;
|
|
458
|
+
height: 100vh;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/********************************** pro-modal ***********************************/
|
|
462
|
+
.pro-modal {
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.pro-modal .el-dialog__header {
|
|
466
|
+
padding: 16px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.pro-modal .el-dialog__body {
|
|
470
|
+
padding: 0px;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.pro-modal .pro-modal-scroll {
|
|
474
|
+
padding: 0 16px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.pro-modal .el-dialog__footer {
|
|
478
|
+
padding: 16px;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/********************************** pro-drawer ***********************************/
|
|
482
|
+
.pro-drawer {
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.pro-drawer .el-drawer__header {
|
|
486
|
+
margin-bottom: 0px;
|
|
487
|
+
padding: 16px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.pro-drawer .el-drawer__body {
|
|
491
|
+
padding: 0px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.pro-drawer .pro-drawer-scroll {
|
|
495
|
+
padding: 0 16px;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.pro-drawer .el-drawer__footer {
|
|
499
|
+
padding: 16px;
|
|
500
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -503,15 +503,17 @@ declare const useComposeRequestActor: (actors: (IRequestActor | string)[], optio
|
|
|
503
503
|
declare const convertResData: (actor: IRequestActor, convertData?: ((res: IRequestActor["res"], actor: IRequestActor) => any) | undefined, convertPath?: (string | number)[]) => any;
|
|
504
504
|
declare type TMeta = {
|
|
505
505
|
actorName: string;
|
|
506
|
-
storeName?: string;
|
|
506
|
+
storeName?: string | ((params?: Record<string, any>) => string);
|
|
507
507
|
initParams?: Record<string, any>;
|
|
508
508
|
convertPath?: (string | number)[];
|
|
509
509
|
convertData?: (data: any, actor: IRequestActor) => any;
|
|
510
510
|
};
|
|
511
511
|
/**
|
|
512
|
-
*
|
|
512
|
+
* 读取meta状态
|
|
513
|
+
* @param actorName
|
|
514
|
+
* @param params
|
|
513
515
|
*/
|
|
514
|
-
declare const
|
|
516
|
+
declare const useMeta: <T>(actorName: string, params?: Record<string, any>) => Ref<T | undefined>;
|
|
515
517
|
declare const useMetaRegister: (registerMetaMap: IProConfigProvide["registerMetaMap"], registerActorMap: IProConfigProvide["registerActorMap"]) => void;
|
|
516
518
|
|
|
517
519
|
declare type TOpenMenu = (menu: any) => void;
|
|
@@ -2061,11 +2063,18 @@ declare const ProShowTree: vue.DefineComponent<{
|
|
|
2061
2063
|
type: StringConstructor;
|
|
2062
2064
|
default: string;
|
|
2063
2065
|
};
|
|
2066
|
+
splitStr2: {
|
|
2067
|
+
type: StringConstructor;
|
|
2068
|
+
default: string;
|
|
2069
|
+
};
|
|
2064
2070
|
treeData: PropType<Record<string, any>>;
|
|
2065
2071
|
data: PropType<Record<string, any>>;
|
|
2066
2072
|
options: PropType<Record<string, any>>;
|
|
2067
2073
|
fieldNames: ObjectConstructor;
|
|
2068
2074
|
props: ObjectConstructor;
|
|
2075
|
+
multiple: {
|
|
2076
|
+
type: BooleanConstructor;
|
|
2077
|
+
};
|
|
2069
2078
|
showProps: {
|
|
2070
2079
|
type: PropType<Partial<vue.ExtractPropTypes<{
|
|
2071
2080
|
content: {
|
|
@@ -2098,11 +2107,18 @@ declare const ProShowTree: vue.DefineComponent<{
|
|
|
2098
2107
|
type: StringConstructor;
|
|
2099
2108
|
default: string;
|
|
2100
2109
|
};
|
|
2110
|
+
splitStr2: {
|
|
2111
|
+
type: StringConstructor;
|
|
2112
|
+
default: string;
|
|
2113
|
+
};
|
|
2101
2114
|
treeData: PropType<Record<string, any>>;
|
|
2102
2115
|
data: PropType<Record<string, any>>;
|
|
2103
2116
|
options: PropType<Record<string, any>>;
|
|
2104
2117
|
fieldNames: ObjectConstructor;
|
|
2105
2118
|
props: ObjectConstructor;
|
|
2119
|
+
multiple: {
|
|
2120
|
+
type: BooleanConstructor;
|
|
2121
|
+
};
|
|
2106
2122
|
showProps: {
|
|
2107
2123
|
type: PropType<Partial<vue.ExtractPropTypes<{
|
|
2108
2124
|
content: {
|
|
@@ -2130,6 +2146,8 @@ declare const ProShowTree: vue.DefineComponent<{
|
|
|
2130
2146
|
}>>, {
|
|
2131
2147
|
render: Function;
|
|
2132
2148
|
splitStr: string;
|
|
2149
|
+
splitStr2: string;
|
|
2150
|
+
multiple: boolean;
|
|
2133
2151
|
}>;
|
|
2134
2152
|
declare const ProShowDate: vue.DefineComponent<{
|
|
2135
2153
|
value: {
|
|
@@ -2322,6 +2340,15 @@ declare const layoutProps: () => {
|
|
|
2322
2340
|
}>>>;
|
|
2323
2341
|
default: undefined;
|
|
2324
2342
|
};
|
|
2343
|
+
watermark: {
|
|
2344
|
+
type: PropType<Partial<ExtractPropTypes<{
|
|
2345
|
+
str: {
|
|
2346
|
+
type: StringConstructor;
|
|
2347
|
+
default: string;
|
|
2348
|
+
};
|
|
2349
|
+
}>>>;
|
|
2350
|
+
default: undefined;
|
|
2351
|
+
};
|
|
2325
2352
|
/**************************** menu相关 *******************************/
|
|
2326
2353
|
menus: {
|
|
2327
2354
|
type: PropType<TLayoutMenu[]>;
|
|
@@ -2352,6 +2379,9 @@ declare const layoutProps: () => {
|
|
|
2352
2379
|
menuProps: {
|
|
2353
2380
|
type: ObjectConstructor;
|
|
2354
2381
|
};
|
|
2382
|
+
topMenuProps: {
|
|
2383
|
+
type: ObjectConstructor;
|
|
2384
|
+
};
|
|
2355
2385
|
};
|
|
2356
2386
|
declare type ProLayoutProps = Partial<ExtractPropTypes<ReturnType<typeof layoutProps>>>;
|
|
2357
2387
|
declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
@@ -2418,6 +2448,15 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
2418
2448
|
}>>>;
|
|
2419
2449
|
default: undefined;
|
|
2420
2450
|
};
|
|
2451
|
+
watermark: {
|
|
2452
|
+
type: PropType<Partial<ExtractPropTypes<{
|
|
2453
|
+
str: {
|
|
2454
|
+
type: StringConstructor;
|
|
2455
|
+
default: string;
|
|
2456
|
+
};
|
|
2457
|
+
}>>>;
|
|
2458
|
+
default: undefined;
|
|
2459
|
+
};
|
|
2421
2460
|
/**************************** menu相关 *******************************/
|
|
2422
2461
|
menus: {
|
|
2423
2462
|
type: PropType<TLayoutMenu[]>;
|
|
@@ -2448,6 +2487,9 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
2448
2487
|
menuProps: {
|
|
2449
2488
|
type: ObjectConstructor;
|
|
2450
2489
|
};
|
|
2490
|
+
topMenuProps: {
|
|
2491
|
+
type: ObjectConstructor;
|
|
2492
|
+
};
|
|
2451
2493
|
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
2452
2494
|
/**
|
|
2453
2495
|
* class名称
|
|
@@ -2512,6 +2554,15 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
2512
2554
|
}>>>;
|
|
2513
2555
|
default: undefined;
|
|
2514
2556
|
};
|
|
2557
|
+
watermark: {
|
|
2558
|
+
type: PropType<Partial<ExtractPropTypes<{
|
|
2559
|
+
str: {
|
|
2560
|
+
type: StringConstructor;
|
|
2561
|
+
default: string;
|
|
2562
|
+
};
|
|
2563
|
+
}>>>;
|
|
2564
|
+
default: undefined;
|
|
2565
|
+
};
|
|
2515
2566
|
/**************************** menu相关 *******************************/
|
|
2516
2567
|
menus: {
|
|
2517
2568
|
type: PropType<TLayoutMenu[]>;
|
|
@@ -2542,6 +2593,9 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
2542
2593
|
menuProps: {
|
|
2543
2594
|
type: ObjectConstructor;
|
|
2544
2595
|
};
|
|
2596
|
+
topMenuProps: {
|
|
2597
|
+
type: ObjectConstructor;
|
|
2598
|
+
};
|
|
2545
2599
|
}>>>, {}>;
|
|
2546
2600
|
|
|
2547
2601
|
declare type TFile = {
|
|
@@ -2604,6 +2658,25 @@ declare const ProTip: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
|
2604
2658
|
};
|
|
2605
2659
|
}>>>, {}>;
|
|
2606
2660
|
|
|
2661
|
+
declare const watermarkProps: () => {
|
|
2662
|
+
str: {
|
|
2663
|
+
type: StringConstructor;
|
|
2664
|
+
default: string;
|
|
2665
|
+
};
|
|
2666
|
+
};
|
|
2667
|
+
declare type ProWatermarkProps = Partial<ExtractPropTypes<ReturnType<typeof watermarkProps>>>;
|
|
2668
|
+
declare const ProWatermark: vue.DefineComponent<Partial<ExtractPropTypes<{
|
|
2669
|
+
str: {
|
|
2670
|
+
type: StringConstructor;
|
|
2671
|
+
default: string;
|
|
2672
|
+
};
|
|
2673
|
+
}>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
|
|
2674
|
+
str: {
|
|
2675
|
+
type: StringConstructor;
|
|
2676
|
+
default: string;
|
|
2677
|
+
};
|
|
2678
|
+
}>>>, {}>;
|
|
2679
|
+
|
|
2607
2680
|
/******************************** 组件key ********************************/
|
|
2608
2681
|
declare const ElementKeys: {
|
|
2609
2682
|
TypographyKey: string;
|
|
@@ -2619,6 +2692,7 @@ declare const ElementKeys: {
|
|
|
2619
2692
|
CheckboxKey: string;
|
|
2620
2693
|
MenusKey: string;
|
|
2621
2694
|
ModalKey: string;
|
|
2695
|
+
DrawerKey: string;
|
|
2622
2696
|
ScrollKey: string;
|
|
2623
2697
|
PageKey: string;
|
|
2624
2698
|
FormKey: string;
|
|
@@ -2634,6 +2708,7 @@ declare const ElementKeys: {
|
|
|
2634
2708
|
ProCurdKey: string;
|
|
2635
2709
|
ProListKey: string;
|
|
2636
2710
|
ProPageKey: string;
|
|
2711
|
+
ProOperateKey: string;
|
|
2637
2712
|
};
|
|
2638
2713
|
/**
|
|
2639
2714
|
* 根据elementKey获取组件
|
|
@@ -3043,4 +3118,4 @@ declare const ProTheme: vue.DefineComponent<{
|
|
|
3043
3118
|
global: boolean;
|
|
3044
3119
|
}>;
|
|
3045
3120
|
|
|
3046
|
-
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, IProLayoutProvide, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ITheme, IThemeToken, IUser, InternalNamePath, LogonUser, LogonUserKey, ModalCurdOpe, MustLogon, NamePath, PageHeader, 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, ProLayoutKey, ProLayoutProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProRouterView, ProRouterViewProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTheme, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColor, TColumn, TColumns, TConfigData, TCurdActionEvent, TDark, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLayoutMenu, TLayoutTabMenu, TLayoutType, TLight, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TSubType, TTableColumn, TTableColumns, TValueType, ThemeKey, ThemeToken, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, createTheme, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useComposeRequestActor,
|
|
3121
|
+
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, IProLayoutProvide, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ITheme, IThemeToken, IUser, InternalNamePath, LogonUser, LogonUserKey, ModalCurdOpe, MustLogon, NamePath, PageHeader, 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, ProLayoutKey, ProLayoutProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProRouterView, ProRouterViewProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTheme, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, ProWatermark, ProWatermarkProps, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColor, TColumn, TColumns, TConfigData, TCurdActionEvent, TDark, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLayoutMenu, TLayoutTabMenu, TLayoutType, TLight, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TSubType, TTableColumn, TTableColumns, TValueType, ThemeKey, ThemeToken, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, createTheme, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useComposeRequestActor, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMeta, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProLayout, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore, useTheme };
|