@vue-start/pro 0.5.44 → 0.5.45

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.45
7
+
8
+ - feat: ProWatermark 水印组件,ProLayout 中通过 watermark 属性配置;
9
+ - fix: ProShowTree 展示兼容多选的情况;
10
+ - fix: meta 模式 bug 修复,支持 useMeta 直接使用;
11
+
6
12
  # 0.5.44
7
13
 
8
14
  - 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-toolbar-column .pro-table-toolbar-column-header {
332
- display: flex;
333
- align-items: center;
334
- justify-content: space-between;
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
- * 发送meta请求
512
+ * 读取meta状态
513
+ * @param actorName
514
+ * @param params
513
515
  */
514
- declare const useDispatchMeta: () => (actorName: string) => void;
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[]>;
@@ -2418,6 +2445,15 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2418
2445
  }>>>;
2419
2446
  default: undefined;
2420
2447
  };
2448
+ watermark: {
2449
+ type: PropType<Partial<ExtractPropTypes<{
2450
+ str: {
2451
+ type: StringConstructor;
2452
+ default: string;
2453
+ };
2454
+ }>>>;
2455
+ default: undefined;
2456
+ };
2421
2457
  /**************************** menu相关 *******************************/
2422
2458
  menus: {
2423
2459
  type: PropType<TLayoutMenu[]>;
@@ -2512,6 +2548,15 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2512
2548
  }>>>;
2513
2549
  default: undefined;
2514
2550
  };
2551
+ watermark: {
2552
+ type: PropType<Partial<ExtractPropTypes<{
2553
+ str: {
2554
+ type: StringConstructor;
2555
+ default: string;
2556
+ };
2557
+ }>>>;
2558
+ default: undefined;
2559
+ };
2515
2560
  /**************************** menu相关 *******************************/
2516
2561
  menus: {
2517
2562
  type: PropType<TLayoutMenu[]>;
@@ -2604,6 +2649,25 @@ declare const ProTip: vue.DefineComponent<Partial<ExtractPropTypes<{
2604
2649
  };
2605
2650
  }>>>, {}>;
2606
2651
 
2652
+ declare const watermarkProps: () => {
2653
+ str: {
2654
+ type: StringConstructor;
2655
+ default: string;
2656
+ };
2657
+ };
2658
+ declare type ProWatermarkProps = Partial<ExtractPropTypes<ReturnType<typeof watermarkProps>>>;
2659
+ declare const ProWatermark: vue.DefineComponent<Partial<ExtractPropTypes<{
2660
+ str: {
2661
+ type: StringConstructor;
2662
+ default: string;
2663
+ };
2664
+ }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
2665
+ str: {
2666
+ type: StringConstructor;
2667
+ default: string;
2668
+ };
2669
+ }>>>, {}>;
2670
+
2607
2671
  /******************************** 组件key ********************************/
2608
2672
  declare const ElementKeys: {
2609
2673
  TypographyKey: string;
@@ -2619,6 +2683,7 @@ declare const ElementKeys: {
2619
2683
  CheckboxKey: string;
2620
2684
  MenusKey: string;
2621
2685
  ModalKey: string;
2686
+ DrawerKey: string;
2622
2687
  ScrollKey: string;
2623
2688
  PageKey: string;
2624
2689
  FormKey: string;
@@ -2634,6 +2699,7 @@ declare const ElementKeys: {
2634
2699
  ProCurdKey: string;
2635
2700
  ProListKey: string;
2636
2701
  ProPageKey: string;
2702
+ ProOperateKey: string;
2637
2703
  };
2638
2704
  /**
2639
2705
  * 根据elementKey获取组件
@@ -3043,4 +3109,4 @@ declare const ProTheme: vue.DefineComponent<{
3043
3109
  global: boolean;
3044
3110
  }>;
3045
3111
 
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, useDispatchMeta, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProLayout, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore, useTheme };
3112
+ 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 };