@zat-design/sisyphus-react 3.11.14-beta.3 → 3.11.14-beta.5

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.
Files changed (53) hide show
  1. package/.vscode/extensions.json +5 -0
  2. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
  3. package/es/ProLayout/components/ProCollapse/index.js +12 -4
  4. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +16 -0
  5. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +106 -3
  6. package/es/ProLayout/propTypes.d.ts +131 -15
  7. package/es/ProTable/components/FormatColumn/index.js +1 -1
  8. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
  9. package/lib/ProLayout/components/ProCollapse/index.js +12 -4
  10. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +16 -0
  11. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +106 -3
  12. package/lib/ProLayout/propTypes.d.ts +131 -15
  13. package/lib/ProTable/components/FormatColumn/index.js +1 -1
  14. package/package.json +1 -1
  15. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +0 -241
  16. package/coverage/lcov-report/src/.umi/core/history.ts.html +0 -148
  17. package/coverage/lcov-report/src/.umi/core/index.html +0 -206
  18. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +0 -109
  19. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +0 -160
  20. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +0 -97
  21. package/coverage/lcov-report/src/.umi/core/routes.ts.html +0 -26050
  22. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +0 -112
  23. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +0 -116
  24. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +0 -6340
  25. package/coverage/lcov-report/src/.umi/dumi/index.html +0 -116
  26. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +0 -109
  27. package/coverage/lcov-report/src/.umi/index.html +0 -116
  28. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +0 -116
  29. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +0 -172
  30. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +0 -94
  31. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +0 -116
  32. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +0 -196
  33. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +0 -106
  34. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +0 -146
  35. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +0 -116
  36. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +0 -88
  37. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +0 -124
  38. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +0 -1246
  39. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +0 -161
  40. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +0 -268
  41. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +0 -778
  42. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +0 -115
  43. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +0 -202
  44. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +0 -97
  45. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +0 -142
  46. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +0 -334
  47. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +0 -146
  48. package/coverage/lcov-report/src/.umi/plugin-model/index.html +0 -146
  49. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +0 -121
  50. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +0 -298
  51. package/coverage/lcov-report/src/.umi/plugin-request/index.html +0 -116
  52. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +0 -919
  53. package/coverage/lcov-report/src/.umi/umi.ts.html +0 -268
@@ -0,0 +1,5 @@
1
+ {
2
+ "recommendations": [
3
+ "kisstkondoros.vscode-codemetrics"
4
+ ]
5
+ }
@@ -75,6 +75,11 @@ export interface ProCollapseProps {
75
75
  */
76
76
  folding?: boolean;
77
77
  /**
78
+ * @description 控制折叠面板展开状态
79
+ * @default -
80
+ */
81
+ open?: boolean;
82
+ /**
78
83
  * @description antd Collapse属性
79
84
  * @default -
80
85
  */
@@ -2,8 +2,8 @@ import "antd/es/descriptions/style";
2
2
  import _Descriptions from "antd/es/descriptions";
3
3
  import "antd/es/space/style";
4
4
  import _Space from "antd/es/space";
5
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
6
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
7
  import "antd/es/collapse/style";
8
8
  import _Collapse from "antd/es/collapse";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -31,13 +31,21 @@ var ProCollapse = function ProCollapse(props) {
31
31
  style = props.style,
32
32
  _props$folding = props.folding,
33
33
  folding = _props$folding === void 0 ? false : _props$folding,
34
- collapseProps = props.collapseProps,
34
+ _props$collapseProps = props.collapseProps,
35
+ collapseProps = _props$collapseProps === void 0 ? {} : _props$collapseProps,
35
36
  collapsePanelProps = props.collapsePanelProps,
36
37
  className = props.className,
37
38
  icon = props.icon,
38
39
  _props$autoHeight = props.autoHeight,
39
40
  autoHeight = _props$autoHeight === void 0 ? true : _props$autoHeight,
40
- onChange = props.onChange;
41
+ onChange = props.onChange,
42
+ open = props.open;
43
+ // 当同时设置了open和collapseProps.activeKey时,以collapseProps.activeKey为准
44
+ // 这样保证了与已有代码的兼容性,并提供了更简便的控制面板展开状态的方式
45
+ var finalCollapseProps = _objectSpread({}, collapseProps);
46
+ if (open !== undefined && !('activeKey' in finalCollapseProps)) {
47
+ finalCollapseProps.activeKey = open ? ['1'] : [];
48
+ }
41
49
  var cls = classNames(_defineProperty({
42
50
  'pro-collapse': true,
43
51
  'pro-collapse-level2': level === '2',
@@ -157,7 +165,7 @@ var ProCollapse = function ProCollapse(props) {
157
165
  expandIconPosition: "end",
158
166
  defaultActiveKey: folding ? [] : ['1'],
159
167
  onChange: onChange
160
- }, collapseProps), {}, {
168
+ }, finalCollapseProps), {}, {
161
169
  children: renderPanel()
162
170
  }))
163
171
  });
@@ -3,9 +3,25 @@ export interface stateProps {
3
3
  [key: string]: any;
4
4
  }
5
5
  export interface ProFooterProps {
6
+ /**
7
+ * @description 是否显示
8
+ * @default true
9
+ */
6
10
  visible?: boolean;
11
+ /**
12
+ * @description 层级
13
+ * @default 99
14
+ */
7
15
  zIndex?: number;
16
+ /**
17
+ * @description 侧边栏选择器
18
+ * @default '.pro-layout-sider-nav'
19
+ */
8
20
  sideDom?: string;
21
+ /**
22
+ * @description 内容选择器
23
+ * @default '.pro-layout-content'
24
+ */
9
25
  contentDom?: string;
10
26
  [key: string]: any;
11
27
  }
@@ -3,39 +3,126 @@ import type { ModalProps } from 'antd';
3
3
  export type BreadcrumbType = 'breadcrumb' | 'copy' | 'info' | 'version' | 'tag';
4
4
  export type NavType = 'money' | 'thousandth' | 'enumName' | 'enumCodeName' | 'date' | 'dateTime';
5
5
  export interface BreadcrumbColumnsProps {
6
+ /**
7
+ * @description 类型
8
+ * @default -
9
+ */
6
10
  type?: BreadcrumbType;
11
+ /**
12
+ * @description 值类型
13
+ * @default -
14
+ */
7
15
  valueType?: BreadcrumbType;
16
+ /**
17
+ * @description 值
18
+ * @default -
19
+ */
8
20
  value: any;
21
+ /**
22
+ * @description 宽度
23
+ * @default -
24
+ */
9
25
  width?: string | number;
26
+ /**
27
+ * @description 是否显示
28
+ * @default -
29
+ */
10
30
  show?: boolean;
31
+ /**
32
+ * @description 标签
33
+ * @default -
34
+ */
11
35
  tag?: string | React.ReactNode | (string | React.ReactNode)[];
12
36
  }
13
37
  export interface SubDescribeColumnsProps {
38
+ /**
39
+ * @description 描述内容
40
+ * @default -
41
+ */
14
42
  label: string | React.ReactNode;
43
+ /**
44
+ * @description 类型
45
+ * @default -
46
+ */
15
47
  type?: NavType;
48
+ /**
49
+ * @description 值类型
50
+ * @default -
51
+ */
16
52
  valueType?: NavType;
53
+ /**
54
+ * @description 精度
55
+ * @default -
56
+ */
17
57
  precision?: number;
58
+ /**
59
+ * @description 值
60
+ * @default -
61
+ */
18
62
  value: any;
63
+ /**
64
+ * @description 是否显示
65
+ * @default -
66
+ */
19
67
  show?: boolean;
68
+ /**
69
+ * @description 枚举代码
70
+ * @default -
71
+ */
20
72
  code?: string;
21
73
  }
22
74
  export interface DescribeColumnsProps {
75
+ /**
76
+ * @description 描述内容
77
+ * @default -
78
+ */
23
79
  label?: string | React.ReactNode;
80
+ /**
81
+ * @description 是否显示
82
+ * @default -
83
+ */
24
84
  copyable?: boolean;
85
+ /**
86
+ * @description 值
87
+ * @default -
88
+ */
25
89
  value?: string | React.ReactNode;
90
+ /**
91
+ * @description 是否显示
92
+ * @default -
93
+ */
26
94
  show?: boolean;
95
+ /**
96
+ * @description 链接
97
+ * @default -
98
+ */
27
99
  link?: string;
28
- tag?: string | React.ReactNode | (string | React.ReactNode)[];
29
- width?: string | number;
30
- /** 多值配置 */
100
+ /**
101
+ * @description 多值配置
102
+ * @default -
103
+ */
31
104
  items?: {
32
105
  copyable?: boolean;
33
106
  value: string | React.ReactNode;
34
107
  link?: string;
35
108
  tag?: string | React.ReactNode | (string | React.ReactNode)[];
36
109
  }[];
110
+ /**
111
+ * @description 宽度
112
+ * @default -
113
+ */
114
+ width?: string | number;
115
+ /**
116
+ * @description 标签
117
+ * @default -
118
+ */
119
+ tag?: string | React.ReactNode | (string | React.ReactNode)[];
37
120
  }
38
121
  export interface ProHeaderProps {
122
+ /**
123
+ * @description 标题
124
+ * @default -
125
+ */
39
126
  title?: string | React.ReactNode;
40
127
  /**
41
128
  * @description 面包屑配置数据
@@ -48,7 +135,15 @@ export interface ProHeaderProps {
48
135
  * @default -
49
136
  */
50
137
  breadcrumbColumns?: BreadcrumbColumnsProps[];
138
+ /**
139
+ * @description 是否隐藏溢出
140
+ * @default -
141
+ */
51
142
  bodyOverFlowHidden?: boolean;
143
+ /**
144
+ * @description 操作渲染
145
+ * @default -
146
+ */
52
147
  actionRender?: React.ReactNode | React.ReactNode[];
53
148
  /**
54
149
  * @description 次级描述数据源配置
@@ -97,7 +192,15 @@ export interface ProHeaderProps {
97
192
  * @default -
98
193
  */
99
194
  isConfirmBackModalProps?: ModalProps;
195
+ /**
196
+ * @description 层级
197
+ * @default -
198
+ */
100
199
  zIndex?: number;
200
+ /**
201
+ * @description 返回
202
+ * @default 100
203
+ */
101
204
  onBack?: () => void;
102
205
  [key: string]: any;
103
206
  }
@@ -2,64 +2,172 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  import { ProWaterMarkProps } from '../ProWaterMark/propsType';
3
3
  export interface MenusProps {
4
4
  id?: number;
5
+ /**
6
+ * @description 菜单唯一code
7
+ * @default -
8
+ */
5
9
  code?: string;
10
+ /**
11
+ * @description 菜单名称
12
+ * @default -
13
+ */
6
14
  name?: string;
15
+ /**
16
+ * @description 菜单路由
17
+ * @default -
18
+ */
7
19
  url?: string;
20
+ /**
21
+ * @description 点击路由时,重定向地址
22
+ * @default -
23
+ */
8
24
  redirectUrl?: string;
25
+ /**
26
+ * @description 关联的上级id
27
+ * @default -
28
+ */
9
29
  parentId?: number | null;
30
+ /**
31
+ * @description 备注
32
+ * @default -
33
+ */
10
34
  description?: any;
35
+ /**
36
+ * @description 扩展备用字段
37
+ * @default -
38
+ */
11
39
  extraInfo?: any;
40
+ /**
41
+ * @description 排序
42
+ * @default -
43
+ */
12
44
  sort?: number | undefined | null;
45
+ /**
46
+ * @description 是否隐藏菜单
47
+ * @default -
48
+ */
13
49
  hideInMenu?: boolean;
50
+ /**
51
+ * @description iconfont图标
52
+ * @default -
53
+ */
14
54
  icon?: string;
55
+ /**
56
+ * @description 图片icon
57
+ * @default -
58
+ */
15
59
  imgUrl?: string;
16
- imgActiveUrl?: string;
60
+ /**
61
+ * @description 菜单类型
62
+ * @default -
63
+ */
17
64
  type?: string;
18
- keyUrlPath?: string[];
19
- keyIdPath?: number[];
20
- children?: MenusProps[] | null;
21
65
  [key: string]: any;
22
66
  }
23
67
  export interface DataSourceProps {
68
+ /**
69
+ * @description 用户信息
70
+ * @default -
71
+ */
24
72
  userInfo?: any;
73
+ /**
74
+ * @description 处理后一级菜单详情
75
+ * @default -
76
+ */
25
77
  menus?: MenusProps[];
26
78
  }
27
- type themeEnum = 'light' | 'dark';
28
79
  type pureKey = boolean | {
29
80
  topMenu?: boolean;
30
81
  leftMenu?: boolean;
31
82
  };
32
83
  export interface ProLayoutProps {
84
+ /**
85
+ * @description 左侧logo
86
+ * @default -
87
+ */
33
88
  logo?: ReactNode | string;
89
+ /**
90
+ * @description 类名
91
+ * @default -
92
+ */
34
93
  className?: string;
94
+ /**
95
+ * @description iconfontUrl
96
+ * @default -
97
+ */
35
98
  iconfontUrl?: string;
99
+ /**
100
+ * @description 右侧内容渲染
101
+ * @default -
102
+ */
36
103
  rightContentRender?: ReactNode;
104
+ /**
105
+ * @description 头部内容渲染
106
+ * @default -
107
+ */
37
108
  headerContentRender?: ReactNode;
38
- headerTitleRender?: ReactNode;
39
- sideMenuHeaderRender?: ReactNode;
109
+ /**
110
+ * @description 侧边栏底部渲染
111
+ * @default -
112
+ */
40
113
  sideMenuFooterRender?: ReactNode;
114
+ /**
115
+ * @description 通告
116
+ * @default -
117
+ */
41
118
  headerNotice?: ReactNode | string;
119
+ /**
120
+ * @description 通告
121
+ * @default -
122
+ */
42
123
  notice?: ReactNode | string;
124
+ /**
125
+ * @description 标题
126
+ * @default -
127
+ */
43
128
  title?: string;
129
+ /**
130
+ * @description 数据源
131
+ * @default -
132
+ */
44
133
  dataSource?: DataSourceProps | Partial<MenusProps>;
134
+ /**
135
+ * @description 是否折叠
136
+ * @default -
137
+ */
45
138
  collapsed?: boolean;
46
139
  /**
47
- * 菜单拼接前缀
48
- */
140
+ * @description 菜单拼接路径前缀
141
+ * @default -
142
+ */
49
143
  pathPrefix?: string;
50
144
  /**
51
- * 是否带有菜单界面,true不带,只显示content内容
52
- */
145
+ * @description 是否带有菜单界面,true不带,只显示content内容
146
+ * @default -
147
+ */
53
148
  pure?: pureKey;
149
+ /**
150
+ * @description 头部区域高度
151
+ * @default -
152
+ */
54
153
  headerHeight?: number;
154
+ /**
155
+ * @description 内容区域样式
156
+ * @default -
157
+ */
55
158
  contentStyle?: CSSProperties;
159
+ /**
160
+ * @description 水印配置
161
+ * @default -
162
+ */
56
163
  waterMarkProps?: ProWaterMarkProps;
57
- theme?: themeEnum;
58
164
  /**
59
- * 折叠回调事件
60
- */
165
+ * @description 折叠回调事件
166
+ * @default -
167
+ */
61
168
  onCollapsedChange?: (collapsed: any) => void;
62
- /** 规定在何处打开被链接文档
169
+ /**
170
+ * @description 规定在何处打开被链接文档
63
171
  * _blank
64
172
  * _parent
65
173
  * _self
@@ -69,7 +177,15 @@ export interface ProLayoutProps {
69
177
  [key: string]: any;
70
178
  }
71
179
  export interface ProLayoutStates {
180
+ /**
181
+ * @description 是否折叠
182
+ * @default -
183
+ */
72
184
  collapsed?: boolean;
185
+ /**
186
+ * @description 通告
187
+ * @default -
188
+ */
73
189
  notice?: ReactNode | string;
74
190
  [key: string]: any;
75
191
  }
@@ -264,7 +264,7 @@ export var formatColumn = function formatColumn(_ref2) {
264
264
  // 千分位, 千分位带CNY前缀
265
265
  } else if (['thousandth', 'thousandthCNY'].includes(valueType)) {
266
266
  column.render = function (value, record, index) {
267
- var valueStr = valueTypePrecision ? "".concat(Number(value).toFixed(valueTypePrecision)) : "".concat(value);
267
+ var valueStr = valueTypePrecision || valueTypePrecision === 0 ? "".concat(Number(value).toFixed(valueTypePrecision)) : "".concat(value);
268
268
  var renderValue = valueStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
269
269
  var originalResult = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
270
270
  var isChanged = originalResult.isChanged,
@@ -75,6 +75,11 @@ export interface ProCollapseProps {
75
75
  */
76
76
  folding?: boolean;
77
77
  /**
78
+ * @description 控制折叠面板展开状态
79
+ * @default -
80
+ */
81
+ open?: boolean;
82
+ /**
78
83
  * @description antd Collapse属性
79
84
  * @default -
80
85
  */
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _react = require("react");
12
12
  var _antd = require("antd");
@@ -33,13 +33,21 @@ var ProCollapse = function ProCollapse(props) {
33
33
  style = props.style,
34
34
  _props$folding = props.folding,
35
35
  folding = _props$folding === void 0 ? false : _props$folding,
36
- collapseProps = props.collapseProps,
36
+ _props$collapseProps = props.collapseProps,
37
+ collapseProps = _props$collapseProps === void 0 ? {} : _props$collapseProps,
37
38
  collapsePanelProps = props.collapsePanelProps,
38
39
  className = props.className,
39
40
  icon = props.icon,
40
41
  _props$autoHeight = props.autoHeight,
41
42
  autoHeight = _props$autoHeight === void 0 ? true : _props$autoHeight,
42
- onChange = props.onChange;
43
+ onChange = props.onChange,
44
+ open = props.open;
45
+ // 当同时设置了open和collapseProps.activeKey时,以collapseProps.activeKey为准
46
+ // 这样保证了与已有代码的兼容性,并提供了更简便的控制面板展开状态的方式
47
+ var finalCollapseProps = (0, _objectSpread2.default)({}, collapseProps);
48
+ if (open !== undefined && !('activeKey' in finalCollapseProps)) {
49
+ finalCollapseProps.activeKey = open ? ['1'] : [];
50
+ }
43
51
  var cls = (0, _classnames.default)((0, _defineProperty2.default)({
44
52
  'pro-collapse': true,
45
53
  'pro-collapse-level2': level === '2',
@@ -159,7 +167,7 @@ var ProCollapse = function ProCollapse(props) {
159
167
  expandIconPosition: "end",
160
168
  defaultActiveKey: folding ? [] : ['1'],
161
169
  onChange: onChange
162
- }, collapseProps), {}, {
170
+ }, finalCollapseProps), {}, {
163
171
  children: renderPanel()
164
172
  }))
165
173
  });
@@ -3,9 +3,25 @@ export interface stateProps {
3
3
  [key: string]: any;
4
4
  }
5
5
  export interface ProFooterProps {
6
+ /**
7
+ * @description 是否显示
8
+ * @default true
9
+ */
6
10
  visible?: boolean;
11
+ /**
12
+ * @description 层级
13
+ * @default 99
14
+ */
7
15
  zIndex?: number;
16
+ /**
17
+ * @description 侧边栏选择器
18
+ * @default '.pro-layout-sider-nav'
19
+ */
8
20
  sideDom?: string;
21
+ /**
22
+ * @description 内容选择器
23
+ * @default '.pro-layout-content'
24
+ */
9
25
  contentDom?: string;
10
26
  [key: string]: any;
11
27
  }
@@ -3,39 +3,126 @@ import type { ModalProps } from 'antd';
3
3
  export type BreadcrumbType = 'breadcrumb' | 'copy' | 'info' | 'version' | 'tag';
4
4
  export type NavType = 'money' | 'thousandth' | 'enumName' | 'enumCodeName' | 'date' | 'dateTime';
5
5
  export interface BreadcrumbColumnsProps {
6
+ /**
7
+ * @description 类型
8
+ * @default -
9
+ */
6
10
  type?: BreadcrumbType;
11
+ /**
12
+ * @description 值类型
13
+ * @default -
14
+ */
7
15
  valueType?: BreadcrumbType;
16
+ /**
17
+ * @description 值
18
+ * @default -
19
+ */
8
20
  value: any;
21
+ /**
22
+ * @description 宽度
23
+ * @default -
24
+ */
9
25
  width?: string | number;
26
+ /**
27
+ * @description 是否显示
28
+ * @default -
29
+ */
10
30
  show?: boolean;
31
+ /**
32
+ * @description 标签
33
+ * @default -
34
+ */
11
35
  tag?: string | React.ReactNode | (string | React.ReactNode)[];
12
36
  }
13
37
  export interface SubDescribeColumnsProps {
38
+ /**
39
+ * @description 描述内容
40
+ * @default -
41
+ */
14
42
  label: string | React.ReactNode;
43
+ /**
44
+ * @description 类型
45
+ * @default -
46
+ */
15
47
  type?: NavType;
48
+ /**
49
+ * @description 值类型
50
+ * @default -
51
+ */
16
52
  valueType?: NavType;
53
+ /**
54
+ * @description 精度
55
+ * @default -
56
+ */
17
57
  precision?: number;
58
+ /**
59
+ * @description 值
60
+ * @default -
61
+ */
18
62
  value: any;
63
+ /**
64
+ * @description 是否显示
65
+ * @default -
66
+ */
19
67
  show?: boolean;
68
+ /**
69
+ * @description 枚举代码
70
+ * @default -
71
+ */
20
72
  code?: string;
21
73
  }
22
74
  export interface DescribeColumnsProps {
75
+ /**
76
+ * @description 描述内容
77
+ * @default -
78
+ */
23
79
  label?: string | React.ReactNode;
80
+ /**
81
+ * @description 是否显示
82
+ * @default -
83
+ */
24
84
  copyable?: boolean;
85
+ /**
86
+ * @description 值
87
+ * @default -
88
+ */
25
89
  value?: string | React.ReactNode;
90
+ /**
91
+ * @description 是否显示
92
+ * @default -
93
+ */
26
94
  show?: boolean;
95
+ /**
96
+ * @description 链接
97
+ * @default -
98
+ */
27
99
  link?: string;
28
- tag?: string | React.ReactNode | (string | React.ReactNode)[];
29
- width?: string | number;
30
- /** 多值配置 */
100
+ /**
101
+ * @description 多值配置
102
+ * @default -
103
+ */
31
104
  items?: {
32
105
  copyable?: boolean;
33
106
  value: string | React.ReactNode;
34
107
  link?: string;
35
108
  tag?: string | React.ReactNode | (string | React.ReactNode)[];
36
109
  }[];
110
+ /**
111
+ * @description 宽度
112
+ * @default -
113
+ */
114
+ width?: string | number;
115
+ /**
116
+ * @description 标签
117
+ * @default -
118
+ */
119
+ tag?: string | React.ReactNode | (string | React.ReactNode)[];
37
120
  }
38
121
  export interface ProHeaderProps {
122
+ /**
123
+ * @description 标题
124
+ * @default -
125
+ */
39
126
  title?: string | React.ReactNode;
40
127
  /**
41
128
  * @description 面包屑配置数据
@@ -48,7 +135,15 @@ export interface ProHeaderProps {
48
135
  * @default -
49
136
  */
50
137
  breadcrumbColumns?: BreadcrumbColumnsProps[];
138
+ /**
139
+ * @description 是否隐藏溢出
140
+ * @default -
141
+ */
51
142
  bodyOverFlowHidden?: boolean;
143
+ /**
144
+ * @description 操作渲染
145
+ * @default -
146
+ */
52
147
  actionRender?: React.ReactNode | React.ReactNode[];
53
148
  /**
54
149
  * @description 次级描述数据源配置
@@ -97,7 +192,15 @@ export interface ProHeaderProps {
97
192
  * @default -
98
193
  */
99
194
  isConfirmBackModalProps?: ModalProps;
195
+ /**
196
+ * @description 层级
197
+ * @default -
198
+ */
100
199
  zIndex?: number;
200
+ /**
201
+ * @description 返回
202
+ * @default 100
203
+ */
101
204
  onBack?: () => void;
102
205
  [key: string]: any;
103
206
  }