@vue-start/pro 0.5.34 → 0.5.36

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 CHANGED
@@ -3,6 +3,12 @@
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.36
7
+
8
+ - ProTable 新增 toolbar 高度计算,值为 css 变量:--pro-table-toolbar-hei;
9
+ - ProLayout Scroll 组件支持(element-plus);
10
+ - ProPage Scroll 组件支持(element-plus);pro-page-sub 模式(支持 PageCurd 场景)
11
+
6
12
  # 0.5.33
7
13
 
8
14
  - ProTable 新增 mergeOpts 属性,支持行、列合并
package/dist/index.css CHANGED
@@ -1,26 +1,32 @@
1
1
  :root {
2
2
  /***************layout****************/
3
+ /*header高度*/
3
4
  --pro-header-hei: 60px;
5
+ /*header与内容间隔*/
4
6
  --pro-divide-ver-hei: 2px;
7
+ /*面包屑高度*/
8
+ --pro-bread-hei: 0px;
9
+ /*菜单宽度变量:合并/展开会重新赋值;媒体查询重新赋值*/
5
10
  --pro-left-menu-wid: 220px;
6
- --pro-left-menu-mini-wid: 64px;
7
11
  /*左侧菜单start,end插槽高度*/
8
12
  --pro-menu-start-hei: 0px;
9
13
  --pro-menu-end-hei: 0px;
10
- /*左侧菜单高度*/
11
- --pro-left-menu-hei: calc(100vh - var(--pro-menu-start-hei) - var(--pro-menu-end-hei));
12
14
  /*page*/
13
15
  --pro-page-header-hei: 40px;
14
16
  --pro-page-footer-hei: 46px;
15
17
 
16
18
  /*color*/
17
19
  --pro-color-primary: #1890ff;
20
+ --pro-color-bg: #f8f8f8;
18
21
  }
19
22
 
20
23
  /********************************** pro-layout ***********************************/
21
24
 
22
25
  .pro-layout {
26
+ /*section高度*/
23
27
  --pro-secion-hei: calc(100vh - var(--pro-header-hei) - var(--pro-divide-ver-hei));
28
+ /*左侧菜单高度*/
29
+ --pro-left-menu-hei: calc(var(--pro-secion-hei) - var(--pro-menu-start-hei) - var(--pro-menu-end-hei));
24
30
  }
25
31
 
26
32
  .pro-layout .pro-layout-header {
@@ -46,42 +52,55 @@
46
52
  border-bottom: unset;
47
53
  }
48
54
 
49
- .pro-layout .pro-layout-section {
50
- margin-top: var(--pro-divide-ver-hei);
51
- height: var(--pro-secion-hei);
55
+ /*左侧菜单*/
56
+
57
+ .pro-layout .pro-layout-menus-scroll {
58
+ height: var(--pro-left-menu-hei);
59
+ overflow-y: auto;
52
60
  }
53
61
 
54
- /*左侧菜单*/
55
62
  .pro-layout .pro-layout-menus-wrapper .pro-layout-menus {
56
63
  width: var(--pro-left-menu-wid);
57
64
  min-width: var(--pro-left-menu-wid);
58
65
  max-width: var(--pro-left-menu-wid);
59
- overflow-y: auto;
60
- overflow-x: hidden;
61
66
  }
62
67
 
63
68
  .pro-layout .pro-layout-menus-wrapper .mini {
64
- width: var(--pro-left-menu-mini-wid);
65
- min-width: var(--pro-left-menu-mini-wid);
66
- max-width: var(--pro-left-menu-mini-wid);
69
+ --pro-left-menu-wid: 64px;
70
+ }
71
+
72
+ /*section*/
73
+ .pro-layout .pro-layout-section {
74
+ height: var(--pro-secion-hei);
75
+ overflow: auto;
76
+ position: relative;
77
+ box-sizing: border-box;
67
78
  }
68
79
 
69
80
  /*vertical*/
70
81
  .pro-layout-vertical {
71
82
  }
72
83
 
84
+ .pro-layout-vertical .pro-layout-section {
85
+ margin-top: var(--pro-divide-ver-hei);
86
+ }
87
+
73
88
  /*horizontal*/
74
89
 
75
90
  .pro-layout-horizontal {
76
91
  display: flex;
77
92
  }
78
93
 
79
- .pro-layout-horizontal .pro-layout-menus {
80
- height: var(--pro-left-menu-hei);
94
+ .pro-layout-horizontal .pro-layout-menus-scroll {
95
+ --pro-left-menu-hei: calc(100vh - var(--pro-menu-start-hei) - var(--pro-menu-end-hei));
81
96
  }
82
97
 
83
98
  .pro-layout-horizontal .pro-layout-structure {
84
- flex-grow: 1;
99
+ flex: 1;
100
+ }
101
+
102
+ .pro-layout-horizontal .pro-layout-section {
103
+ margin-top: var(--pro-divide-ver-hei);
85
104
  }
86
105
 
87
106
  /*horizontal-v*/
@@ -89,12 +108,9 @@
89
108
  display: unset !important;
90
109
  }
91
110
 
92
- .pro-layout-horizontal-v .pro-layout-menus {
93
- height: calc(var(--pro-left-menu-hei) - var(--pro-header-hei) - var(--pro-divide-ver-hei));
94
- }
95
-
96
111
  .pro-layout-horizontal-v .pro-layout-structure {
97
112
  display: flex;
113
+ margin-top: var(--pro-divide-ver-hei);
98
114
  }
99
115
 
100
116
  .pro-layout-horizontal-v .pro-layout-structure .pro-layout-section {
@@ -108,11 +124,7 @@
108
124
 
109
125
  .pro-layout-compose .pro-layout-structure {
110
126
  display: flex;
111
- }
112
-
113
- .pro-layout-compose .pro-layout-structure .pro-layout-menus {
114
127
  margin-top: var(--pro-divide-ver-hei);
115
- height: calc(var(--pro-left-menu-hei) - var(--pro-header-hei) - var(--pro-divide-ver-hei));
116
128
  }
117
129
 
118
130
  .pro-layout-compose .pro-layout-structure .pro-layout-section {
@@ -210,6 +222,15 @@
210
222
  box-sizing: border-box;
211
223
  }
212
224
 
225
+ .pro-page-sub {
226
+ position: absolute !important;
227
+ top: 0;
228
+ right: 0;
229
+ bottom: 0;
230
+ left: 0;
231
+ /*overflow-y: auto;*/
232
+ }
233
+
213
234
  .pro-page-header {
214
235
  height: var(--pro-page-header-hei);
215
236
  display: flex;
package/dist/index.d.ts CHANGED
@@ -176,6 +176,10 @@ declare type TObjItem = {
176
176
  declare type TFunItem = (string | TParamItem | TObjItem)[];
177
177
  declare type TExpression = TFunItem | TDataType | TObjItem;
178
178
 
179
+ /**
180
+ * 渲染后的插槽是否是有效的vnode
181
+ */
182
+ declare const isValidNode: (vns?: VNode[]) => boolean;
179
183
  /**
180
184
  * 获取Column的valueType,默认"text"
181
185
  * @param column
@@ -1526,6 +1530,9 @@ declare const proPageProps: () => {
1526
1530
  type: BooleanConstructor;
1527
1531
  default: boolean;
1528
1532
  };
1533
+ as: {
1534
+ type: StringConstructor;
1535
+ };
1529
1536
  };
1530
1537
  declare type ProPageProps = Partial<ExtractPropTypes<ReturnType<typeof proPageProps>>> & PageHeaderProps;
1531
1538
  declare const ProPage: vue.DefineComponent<ProPageProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProPageProps>, {}>;
@@ -2178,6 +2185,7 @@ declare const ElementKeys: {
2178
2185
  CheckboxKey: string;
2179
2186
  MenusKey: string;
2180
2187
  ModalKey: string;
2188
+ ScrollKey: string;
2181
2189
  FormKey: string;
2182
2190
  FormItemKey: string;
2183
2191
  TableKey: string;
@@ -2330,6 +2338,18 @@ declare const modalCurdProps: () => {
2330
2338
  };
2331
2339
  };
2332
2340
  declare type ModalCurdProps = Partial<ExtractPropTypes<ReturnType<typeof modalCurdProps>>>;
2341
+ /**
2342
+ * 事件处理
2343
+ */
2344
+ declare const ModalCurdOpe: vue.DefineComponent<Partial<ExtractPropTypes<{
2345
+ defaultAddRecord: {
2346
+ type: PropType<Record<string, any>>;
2347
+ };
2348
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ExtractPropTypes<Partial<ExtractPropTypes<{
2349
+ defaultAddRecord: {
2350
+ type: PropType<Record<string, any>>;
2351
+ };
2352
+ }>>>>, {}>;
2333
2353
  declare type ProModalCurdProps = ModalCurdProps & ProCurdProps;
2334
2354
  declare const ProModalCurd: vue.DefineComponent<ProModalCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProModalCurdProps>, {}>;
2335
2355
 
@@ -2467,4 +2487,4 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
2467
2487
  */
2468
2488
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
2469
2489
 
2470
- 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, getRealRender, getSignValue, getValidValues, isValidConfig, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, 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 };
2490
+ 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, ModalCurdOpe, 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, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, 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 };