@para-ui/core 3.0.7 → 3.0.8

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.
@@ -1,5 +1,17 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { EmptyProps } from "../Empty";
3
+ import { ReqFuncProps } from "./util";
4
+ /** 搜索方法 */
5
+ export interface SearchFuncProps {
6
+ page?: number;
7
+ size?: number;
8
+ [name: string]: any;
9
+ }
10
+ /** 搜索接口返回数据 */
11
+ export interface SearchReqDataProps {
12
+ data?: any;
13
+ err?: any;
14
+ }
3
15
  /** 面包屑 */
4
16
  export interface BreadcrumbsListItem {
5
17
  /** 每一项显示名 */
@@ -39,6 +51,8 @@ export interface SelectorAnyJson {
39
51
  children?: SelectorAnyJson[];
40
52
  /** 禁用 */
41
53
  disabled?: boolean;
54
+ /** 禁用下级 */
55
+ disabledChild?: boolean;
42
56
  /** 是否可选 */
43
57
  choice?: boolean;
44
58
  /** 是否具有详情 */
@@ -88,6 +102,17 @@ export interface SelectorConstData {
88
102
  searchVal: string;
89
103
  /** 搜索点了下级,记录搜索前的面包屑 null说明没有储存过 */
90
104
  beforeSearchBreadcrumbs: BreadcrumbsListItem[] | null;
105
+ /** 搜索配置 */
106
+ searchConfig: {
107
+ /** 页码 */
108
+ page: number;
109
+ /** 每页条数 */
110
+ size: number;
111
+ /** 请求id */
112
+ reqId: string;
113
+ /** 当前页数据源 */
114
+ currentSourceData: SelectorAnyJson[];
115
+ };
91
116
  [name: string]: any;
92
117
  }
93
118
  /** 字段配置,对应数据字段 */
@@ -139,6 +164,8 @@ export interface SelectorNodeProps {
139
164
  close?: boolean;
140
165
  /** 禁用 */
141
166
  disabled?: boolean;
167
+ /** 禁用下级 */
168
+ disabledChild?: boolean;
142
169
  /** 选中 */
143
170
  checked?: boolean;
144
171
  /** 半选 */
@@ -207,12 +234,16 @@ export interface SelectorMainProps {
207
234
  detailRender?: (item: SelectorAnyJson, bol: boolean) => ReactNode;
208
235
  /** 加载更多 */
209
236
  loadMore?: boolean;
237
+ /** 搜索模块加载更多 */
238
+ searchLoadMore?: boolean;
210
239
  /** 是否全选 */
211
240
  isAllCheck?: boolean;
212
241
  /** 渲染数据 */
213
242
  list?: SelectorAnyJson[];
214
243
  /** 禁用 */
215
244
  disabled?: string[] | boolean;
245
+ /** 禁用下级 */
246
+ disabledChild?: string[] | boolean;
216
247
  /** 字段配置,对应数据字段 */
217
248
  fieldConfig?: SelectorFieldConfigProps;
218
249
  /** 选择事件 */
@@ -220,7 +251,7 @@ export interface SelectorMainProps {
220
251
  /** 点击下级 */
221
252
  onLevel?: (item: SelectorAnyJson, isSearch?: boolean) => void;
222
253
  /** 查看更多 */
223
- onLoad?: () => void;
254
+ onLoad?: (isSearch?: boolean) => void;
224
255
  /** 点击全选 */
225
256
  onAllCheck?: (bol?: boolean) => void;
226
257
  /** 点击面包屑 */
@@ -297,7 +328,7 @@ export interface SelectorProps {
297
328
  pagination?: boolean;
298
329
  /** 一页条数 */
299
330
  size?: number;
300
- /** 是否懒加载 true为全量数据 */
331
+ /** 是否懒加载 false为全量数据 */
301
332
  isLazy?: boolean;
302
333
  /** 请求参数 */
303
334
  params?: Record<string, any>;
@@ -331,6 +362,8 @@ export interface SelectorProps {
331
362
  isAllCheck?: boolean;
332
363
  /** 禁用 */
333
364
  disabled?: string[] | boolean;
365
+ /** 禁用下级 */
366
+ disabledChild?: string[] | boolean;
334
367
  /** 字段配置,对应数据字段 */
335
368
  fieldConfig?: SelectorFieldConfigProps;
336
369
  /** 返回数据字段配置,对应数据字段 */
@@ -340,9 +373,9 @@ export interface SelectorProps {
340
373
  /** 处理选中数据的节点信息 */
341
374
  handSelectorNodeInfo?: (item: SelectorAnyJson) => SelectorAnyJson;
342
375
  /** 处理请求参数 */
343
- paramsCallback?: (data: any) => Record<string, any>;
376
+ paramsCallback?: (data: ReqFuncProps, isSearch?: boolean) => ReqFuncProps;
344
377
  /** 请求回调参数 requestCallback(data, cb) cb(data) 需要回调数据回来 */
345
- requestCallback?: (data: any, cb: (data: any) => void) => void;
378
+ requestCallback?: (data: any, cb: (data: any) => void, isSearch?: boolean) => void;
346
379
  /** 选中数据标题render */
347
380
  selectDataTitleRender?: (list?: SelectorAnyJson[]) => ReactNode;
348
381
  /** 空状态属性 */
@@ -352,7 +385,7 @@ export interface SelectorProps {
352
385
  * @param val 搜索框的值
353
386
  * @return [] 返回平铺数组
354
387
  * */
355
- onSearch?: (val: string) => (Promise<SelectorAnyJson[]> | SelectorAnyJson[]);
388
+ onSearch?: (val: string, reqParams: SearchFuncProps) => (Promise<SearchReqDataProps> | SearchReqDataProps);
356
389
  /** 选择事件 返回true不触发onChange事件
357
390
  * item 点击数据, 全选时候的数据
358
391
  * bol 选中/不选中
@@ -5,5 +5,7 @@ declare const _default: {
5
5
  selected: string;
6
6
  pleaseEnter: string;
7
7
  searchResult: string;
8
+ detail: string;
9
+ child: string;
8
10
  };
9
11
  export default _default;
@@ -5,5 +5,7 @@ declare const _default: {
5
5
  selected: string;
6
6
  pleaseEnter: string;
7
7
  searchResult: string;
8
+ detail: string;
9
+ child: string;
8
10
  };
9
11
  export default _default;
@@ -26,6 +26,8 @@ import '../Checkbox/index.js';
26
26
  import '../Popover/index.js';
27
27
  import '../Loading/index.js';
28
28
  import '@para-ui/icons/LoadingF';
29
+ import '../_verture/useFormatMessage-f4452258.js';
30
+ import '@para-ui/core/GlobalContext';
29
31
  import '../Search/index.js';
30
32
  import '../TextField/index.js';
31
33
  import '../_verture/typeof-498dd2b1.js';
@@ -34,10 +36,8 @@ import '@para-ui/icons/PreviewClose';
34
36
  import '@para-ui/icons/PreviewOpen';
35
37
  import '../AutoTips/index.js';
36
38
  import '../_verture/useGlobalProps-af9a2af6.js';
37
- import '@para-ui/core/GlobalContext';
38
39
  import '../Button/index.js';
39
40
  import '@para-ui/icons/Forbid';
40
- import '../_verture/useFormatMessage-f4452258.js';
41
41
  import '@para-ui/icons/Search';
42
42
  import '../Breadcrumbs/index.js';
43
43
  import '@para-ui/icons/More';
package/Table/index.js CHANGED
@@ -245,13 +245,15 @@ var ThElement = function ThElement(props) {
245
245
  var en = {
246
246
  empty: 'Empty',
247
247
  determine: 'Ok',
248
- restoreDefault: 'Restore default'
248
+ restoreDefault: 'Restore default',
249
+ serial: 'Sort'
249
250
  };
250
251
 
251
252
  var zh = {
252
253
  empty: '清空',
253
254
  determine: '确定',
254
- restoreDefault: '恢复默认'
255
+ restoreDefault: '恢复默认',
256
+ serial: '序号'
255
257
  };
256
258
 
257
259
  var localeJson = {
@@ -687,7 +689,7 @@ var TableHead$1 = function TableHead(props) {
687
689
  if (item.className) str += item.className;
688
690
 
689
691
  if (fixedColumn && item.fixed) {
690
- str = 'table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
692
+ str += ' table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
691
693
 
692
694
  if (item.fixed === 'left' && item.paraui_fixed_left_last) {
693
695
  str += ' table-fixed-dom-left-last';
@@ -1349,7 +1351,7 @@ var TableBody = function TableBody(props) {
1349
1351
  }));
1350
1352
  }, [expandable, expandableRow, rowKey, disabledExpandJson, onExpand, fixedColumn]); // 表格一行内容useCallback
1351
1353
 
1352
- var TableContentUseCallback = useCallback(function (row) {
1354
+ var TableContentUseCallback = useCallback(function (row, rowIndex) {
1353
1355
  var params = {
1354
1356
  orderFieldArr: orderFieldArr,
1355
1357
  orderTypeArr: orderTypeArr
@@ -1376,7 +1378,7 @@ var TableBody = function TableBody(props) {
1376
1378
  }
1377
1379
 
1378
1380
  if (item.fixed && fixedColumn) {
1379
- str = 'table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
1381
+ str += ' table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
1380
1382
 
1381
1383
  if (item.fixed === 'left' && item.paraui_fixed_left_last) {
1382
1384
  str += ' table-fixed-dom-left-last';
@@ -1410,8 +1412,8 @@ var TableBody = function TableBody(props) {
1410
1412
  return tableCell ? tableCell(row, params) : headData.map(function (item, index) {
1411
1413
  var text = row[item.name];
1412
1414
  var colSpan = 1;
1413
- if (item.render) text = item.render(row, item, row[item.name], index);
1414
- if (formatter) text = formatter(row, item, row[item.name], index); // 存在显示列,最后一列占两格
1415
+ if (item.render) text = item.render(row, item, row[item.name], index, rowIndex);
1416
+ if (formatter) text = formatter(row, item, row[item.name], index, rowIndex); // 存在显示列,最后一列占两格
1415
1417
 
1416
1418
  if (showColumns === 'inside' && !operate && index === headData.length - 1) {
1417
1419
  colSpan = 2;
@@ -1524,7 +1526,7 @@ var TableBody = function TableBody(props) {
1524
1526
  children: [jsxs(TrElement, Object.assign({
1525
1527
  className: "table-body-row"
1526
1528
  }, {
1527
- children: [TableCheckCallback(row), TableRadioCallback(row), TableExpandableMemo(row), TableContentUseCallback(row), TableOperateUseCallback(row)]
1529
+ children: [TableCheckCallback(row), TableRadioCallback(row), TableExpandableMemo(row), TableContentUseCallback(row, index), TableOperateUseCallback(row)]
1528
1530
  }), row[rowKey]), TableExpandableContentUseCallback(row)]
1529
1531
  }, index);
1530
1532
  })
@@ -1635,7 +1637,7 @@ var TableElement = function TableElement(props) {
1635
1637
  }));
1636
1638
  };
1637
1639
 
1638
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-table {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: white;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v3-table.paraui-v3-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-radio.paraui-v3-table-check .table-radio {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check.paraui-v3-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v3-table.paraui-v3-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-load.paraui-v3-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v3-table.paraui-v3-table-pagination > .table-contain {\n height: calc(100% - 60px);\n}\n.paraui-v3-table.paraui-v3-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-load-more.paraui-v3-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v3-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v3-table > .table-contain > table {\n height: auto;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-radio > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v3-table > .table-contain > table > .table-head > tr th {\n height: 50px;\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box {\n height: 49px;\n line-height: 49px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n padding-right: 8px;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgba(46, 55, 67, 0.7);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span {\n width: 20px;\n height: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span:after {\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: rgb(235, 96, 84);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort > .table-header-title {\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 40px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums {\n width: 56px;\n cursor: pointer;\n border-left: 1px solid rgba(171, 176, 185, 0.12);\n right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 55px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 24px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr {\n height: 56px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(249, 250, 251);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(237, 241, 249);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(54, 102, 214);\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row > .td-element {\n bottom: 0;\n background: white;\n box-shadow: 4px -4px 8px 0px rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v3-table > .table-pagination {\n width: 100%;\n height: 60px;\n padding-right: 10px;\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n}\n\n.paraui-v3-table-show-colums-popover > .component-popover-content {\n width: 200px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}\n\n.paraui-v3-filter-popover > .component-popover-content {\n width: 200px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}";
1640
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-table {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: white;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v3-table.paraui-v3-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-radio.paraui-v3-table-check .table-radio {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check.paraui-v3-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v3-table.paraui-v3-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-load.paraui-v3-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v3-table.paraui-v3-table-pagination > .table-contain {\n height: calc(100% - 60px);\n}\n.paraui-v3-table.paraui-v3-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-load-more.paraui-v3-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v3-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v3-table > .table-contain > table {\n height: auto;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-radio > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v3-table > .table-contain > table > .table-head > tr th {\n height: 50px;\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box {\n height: 49px;\n line-height: 49px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n padding-right: 8px;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgba(46, 55, 67, 0.7);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span {\n width: 20px;\n height: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span:after {\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: rgb(235, 96, 84);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort > .table-header-title {\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 40px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums {\n width: 56px;\n cursor: pointer;\n border-left: 1px solid rgba(171, 176, 185, 0.12);\n right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 55px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 24px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr {\n height: 56px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(249, 250, 251);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(237, 241, 249);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(54, 102, 214);\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row > .td-element {\n bottom: 0;\n background: white;\n box-shadow: 4px -4px 8px 0px rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v3-table > .table-pagination {\n width: 100%;\n height: 60px;\n padding-right: 10px;\n display: flex;\n align-items: flex-end;\n justify-content: flex-end;\n}\n\n.paraui-v3-table-show-colums-popover > .component-popover-content {\n width: 200px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}\n\n.paraui-v3-filter-popover > .component-popover-content {\n width: 200px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}";
1639
1641
  styleInject(css_248z);
1640
1642
 
1641
1643
  var Table = function Table(propsInit) {
@@ -1725,6 +1727,7 @@ var Table = function Table(propsInit) {
1725
1727
  _props$beyondText = props.beyondText,
1726
1728
  beyondText = _props$beyondText === void 0 ? true : _props$beyondText,
1727
1729
  loading = props.loading;
1730
+ var intl = useFormatMessage('Table', localeJson);
1728
1731
  var dayNum = props.expirationTime ? props.expirationTime : 7; // 过期天数
1729
1732
 
1730
1733
  var _useState = useState(props.page !== undefined ? props.page : 1),
@@ -2125,8 +2128,33 @@ var Table = function Table(propsInit) {
2125
2128
  target: containerRef.current
2126
2129
  });
2127
2130
  });
2131
+ /** 处理序号 */
2132
+
2133
+ var handSerial = function handSerial(arr) {
2134
+ var defaultVal = {
2135
+ label: intl({
2136
+ id: 'serial'
2137
+ }),
2138
+ selected: true,
2139
+ width: props.radio || props.check || props.expandable ? 45 : 55,
2140
+ fixed: 'left',
2141
+ className: 'table-serial-number',
2142
+ render: function render(row, item, val, index, rowIndex) {
2143
+ return Number(rowIndex) + 1;
2144
+ }
2145
+ };
2146
+
2147
+ if (props.serialNumber) {
2148
+ if (typeof props.serialNumber === 'boolean') {
2149
+ arr.unshift(defaultVal);
2150
+ } else {
2151
+ arr.unshift(Object.assign(Object.assign({}, defaultVal), props.serialNumber));
2152
+ }
2153
+ }
2154
+ };
2128
2155
  /** 设置size */
2129
2156
 
2157
+
2130
2158
  var handSize = function handSize(num) {
2131
2159
  constData.current.size = num;
2132
2160
  setSizeCom(num);
@@ -2251,7 +2279,10 @@ var Table = function Table(propsInit) {
2251
2279
  });
2252
2280
  }
2253
2281
 
2254
- handHeadDataCom(headShowArr);
2282
+ handSerial(headShowArr); // 处理序号
2283
+
2284
+ handHeadDataCom(headShowArr); // 处理显示列宽度
2285
+
2255
2286
  setHeadDataCom(headShowArr);
2256
2287
  setShowHeadList(headArr);
2257
2288
  constData.current.headDataJson = json;
@@ -2763,8 +2794,12 @@ var Table = function Table(propsInit) {
2763
2794
  if (bol) {
2764
2795
  var arr = [];
2765
2796
 
2766
- for (var i = 0, l = showHeadList.length; i < l; i++) {
2767
- var _item3 = showHeadList[i];
2797
+ var arrShow = _toConsumableArray(showHeadList);
2798
+
2799
+ handSerial(arrShow);
2800
+
2801
+ for (var i = 0, l = arrShow.length; i < l; i++) {
2802
+ var _item3 = arrShow[i];
2768
2803
 
2769
2804
  if (_item3 && _item3.selected) {
2770
2805
  // 当前显示字段
@@ -31,7 +31,7 @@ export interface HeadDataProps {
31
31
  /** 是否排序 */
32
32
  sort?: boolean;
33
33
  /** 渲染函数 (跟表格tableCell参数互斥) */
34
- render?: (row: any, item?: any, val?: any, index?: number) => ReactNode;
34
+ render?: (row: any, item?: any, val?: any, index?: number, rowIndex?: number) => ReactNode;
35
35
  /** 渲染操作列按钮 */
36
36
  operateBtnRender?: (item: any) => OperateBtnProps;
37
37
  /** 对齐方式 */
@@ -170,6 +170,8 @@ export interface TableProps extends TableHeadBodyPublicProps {
170
170
  };
171
171
  /** 超出内容显示文字还是dom */
172
172
  beyondText?: boolean;
173
+ /** 是否显示序号 true显示 HeadDataProps配置详情,跟配置列一样 */
174
+ serialNumber?: boolean | HeadDataProps;
173
175
  /** 是否过滤 */
174
176
  filter?: boolean;
175
177
  /** 排序 多个/单个 */
@@ -177,7 +179,7 @@ export interface TableProps extends TableHeadBodyPublicProps {
177
179
  /** 处理请求参数 */
178
180
  paramsCallback?: (data: any, cb: (handObj: ReqProps) => void) => void;
179
181
  /** 用来格式化内容 */
180
- formatter?: (row: any, item: any, val: any, index: number) => ReactNode;
182
+ formatter?: (row: any, item: any, val: any, index: number, rowIndex: number) => ReactNode;
181
183
  /** 用来计算表格行数 */
182
184
  lineHeight?: number;
183
185
  /** 表格每列没设置宽度的默认宽度, 默认80 */
@@ -2,5 +2,6 @@ declare const _default: {
2
2
  empty: string;
3
3
  determine: string;
4
4
  restoreDefault: string;
5
+ serial: string;
5
6
  };
6
7
  export default _default;
@@ -2,5 +2,6 @@ declare const _default: {
2
2
  empty: string;
3
3
  determine: string;
4
4
  restoreDefault: string;
5
+ serial: string;
5
6
  };
6
7
  export default _default;
@@ -33,7 +33,7 @@ export interface TableBodyProps extends TableHeadBodyPublicProps {
33
33
  /** 单选 - 选择 */
34
34
  selectRadio?: (event: React.ChangeEvent<HTMLInputElement>, val: any) => void;
35
35
  /** 用来格式化内容 */
36
- formatter?: (row: any, item: any, val: any, index: number) => ReactNode;
36
+ formatter?: (row: any, item: any, val: any, index: number, rowIndex: number) => ReactNode;
37
37
  /** 加载 */
38
38
  loadState?: boolean;
39
39
  /** 加载更多 */
@@ -80,6 +80,8 @@ export interface TextEditorProps extends HelperTextDetailProps {
80
80
  uploadImage?: Partial<UpLoadImgConfig>;
81
81
  /** 上传视频配置 */
82
82
  uploadVideo?: Partial<UpLoadVideoConfig>;
83
+ /** 国际化 */
84
+ in18?: 'en' | 'zh-CN';
83
85
  /** 改变事件 */
84
86
  onChange?: (value: string, text: string) => void;
85
87
  /** 失去焦点 */