@para-ui/core 3.0.7 → 3.0.9

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/Table/index.js CHANGED
@@ -4,9 +4,10 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
4
4
  import { r as regenerator } from '../_verture/index-342379c6.js';
5
5
  import { _ as __rest, a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
- import { useState, useEffect, useMemo, useCallback, Fragment as Fragment$1, useRef } from 'react';
7
+ import { useRef, useState, useEffect, useMemo, useCallback, Fragment as Fragment$1 } from 'react';
8
8
  import { Get, Post, DeepClone, GetBrowserClass, ArrayToObject, Cancel } from '@paraview/lib';
9
9
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
+ import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
10
11
  import { Popover } from '../Popover/index.js';
11
12
  import { Checkbox } from '../Checkbox/index.js';
12
13
  import { Button } from '../Button/index.js';
@@ -16,7 +17,6 @@ import SolidArrowUp from '@para-ui/icons/UpTriangleF';
16
17
  import SolidArrowDown from '@para-ui/icons/DownTriangleF';
17
18
  import Panel from '@para-ui/icons/Panel';
18
19
  import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
19
- import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
20
20
  import { _ as _defineProperty } from '../_verture/defineProperty-0590dc61.js';
21
21
  import { Radio } from '../Radio/index.js';
22
22
  import Empty from '../Empty/index.js';
@@ -172,6 +172,25 @@ var setLocalStorageSelectHead = function setLocalStorageSelectHead(key, val) {
172
172
  headJson[key] = val;
173
173
  window.localStorage.setItem('_paraui_table_head', JSON.stringify(headJson));
174
174
  };
175
+ /**
176
+ * 查找元素
177
+ * @param el 当前元素
178
+ * @param selector 查找元素class
179
+ */
180
+
181
+ var closest = function closest(el, selector) {
182
+ var matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
183
+
184
+ while (el) {
185
+ if (matchesSelector.call(el, selector)) {
186
+ break;
187
+ }
188
+
189
+ el = el.parentElement;
190
+ }
191
+
192
+ return el;
193
+ };
175
194
 
176
195
  var css_248z$7 = ".table-head-element {\n display: table-header-group;\n}";
177
196
  styleInject(css_248z$7);
@@ -219,39 +238,150 @@ var TrElement = function TrElement(props) {
219
238
  }));
220
239
  };
221
240
 
222
- var css_248z$5 = "@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.th-element {\n letter-spacing: 0.01071em;\n line-height: 1.43;\n padding: 0;\n font-weight: 700;\n font-size: 14px;\n background-color: rgb(248, 249, 251);\n border-bottom: 1px solid rgba(171, 176, 185, 0.12);\n height: 100%;\n}\n.th-element:first-child {\n border-top-left-radius: 4px;\n}\n.th-element:last-child {\n border-top-right-radius: 4px;\n}\n.th-element:hover {\n background-color: rgb(237, 241, 249);\n}\n.th-element.table-operate.table-operate-small {\n width: 112px;\n}\n.th-element.table-operate.table-operate-small > .table-header-box {\n width: 112px;\n}";
241
+ var css_248z$5 = "@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.th-element {\n letter-spacing: 0.01071em;\n line-height: 1.43;\n padding: 0;\n font-weight: 700;\n font-size: 14px;\n background-color: rgb(248, 249, 251);\n border-bottom: 1px solid rgba(171, 176, 185, 0.12);\n height: 100%;\n}\n.th-element.th-element-draggable {\n position: relative;\n}\n.th-element:first-child {\n border-top-left-radius: 4px;\n}\n.th-element:last-child {\n border-top-right-radius: 4px;\n}\n.th-element:hover {\n background-color: rgb(237, 241, 249);\n}\n.th-element.table-operate.table-operate-small {\n width: 112px;\n}\n.th-element.table-operate.table-operate-small > .table-header-box {\n width: 112px;\n}\n.th-element > .th-element-draggable-box {\n width: 6px;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n.th-element:hover > .th-element-draggable-box {\n background-color: rgba(54, 102, 214, 0.2);\n cursor: ew-resize;\n}";
223
242
  styleInject(css_248z$5);
224
243
 
225
244
  var ThElement = function ThElement(props) {
226
245
  var className = props.className,
227
246
  style = props.style,
228
247
  children = props.children,
229
- otherProps = __rest(props, ["className", "style", "children"]);
248
+ draggable = props.draggable,
249
+ _props$lineWidth = props.lineWidth,
250
+ lineWidth = _props$lineWidth === void 0 ? 80 : _props$lineWidth,
251
+ headCell = props.headCell,
252
+ onDragDown = props.onDragDown,
253
+ otherProps = __rest(props, ["className", "style", "children", "draggable", "lineWidth", "headCell", "onDragDown"]);
254
+
255
+ var domRef = useRef(null);
256
+ var constData = useRef({
257
+ startX: 0,
258
+ moveX: 0,
259
+ table: null,
260
+ tableContainer: null,
261
+ lineDom: null,
262
+ th: null
263
+ }); // 处理最小宽度
264
+
265
+ var handMinWidth = function handMinWidth(e) {
266
+ var minWidth = lineWidth; // 自身设置列宽度小于默认列宽度,最小取自身的
267
+
268
+ if (headCell === null || headCell === void 0 ? void 0 : headCell.width) {
269
+ var width = getStringInNumber(headCell.width);
270
+ if (width < minWidth) minWidth = width;
271
+ }
272
+
273
+ var thWidth = constData.current.th.offsetWidth; // th宽度
274
+
275
+ var moveX = e.clientX - constData.current.startX; // 移动的位置
276
+
277
+ var handWidth = thWidth + moveX;
278
+ var initX = constData.current.th.offsetLeft + thWidth;
279
+ var left = initX + moveX; // 移动以后的宽度小于最小宽度,取最小宽度
280
+
281
+ if (handWidth < minWidth) {
282
+ // 超出大小限制
283
+ handWidth = minWidth;
284
+ left = constData.current.th.offsetLeft + handWidth;
285
+ }
286
+
287
+ return {
288
+ width: handWidth,
289
+ left: left // 定位线居左距离
290
+
291
+ };
292
+ }; // 鼠标移动事件
293
+
294
+
295
+ var mousemove = function mousemove(e) {
296
+ var result = handMinWidth(e);
297
+ constData.current.lineDom.style.left = result.left + 'px';
298
+ }; // 鼠标抬起
299
+
300
+
301
+ var mouseup = function mouseup(e) {
302
+ var _a, _b;
303
+
304
+ var dom = domRef.current;
305
+ var result = handMinWidth(e);
306
+ dom.style.width = result.width + 'px';
307
+ (_a = constData.current.tableContainer) === null || _a === void 0 ? void 0 : _a.removeChild(constData.current.lineDom);
308
+ (_b = constData.current.table) === null || _b === void 0 ? void 0 : _b.classList.remove("".concat($prefixCls, "-table-draggable"));
309
+ onDragDown && onDragDown(result);
310
+ window.removeEventListener('mousemove', mousemove);
311
+ window.removeEventListener('mouseup', mouseup);
312
+ }; // 鼠标按下
313
+
314
+
315
+ var onMouseDown = function onMouseDown(e) {
316
+ var _a;
317
+
318
+ constData.current.startX = e.clientX;
319
+ constData.current.table = closest(domRef.current, ".".concat($prefixCls, "-table"));
320
+ constData.current.tableContainer = closest(domRef.current, ".".concat($prefixCls, "-table .table-container"));
321
+ constData.current.th = closest(domRef.current, 'th');
322
+ (_a = constData.current.table) === null || _a === void 0 ? void 0 : _a.classList.add("".concat($prefixCls, "-table-draggable"));
323
+ appendLine();
324
+ window.addEventListener('mousemove', mousemove);
325
+ window.addEventListener('mouseup', mouseup);
326
+ };
327
+ /** 添加定位线 */
328
+
329
+
330
+ var appendLine = function appendLine() {
331
+ if (!constData.current.tableContainer || !constData.current.th) return;
332
+ var tableDom = closest(domRef.current, ".".concat($prefixCls, "-table .table-container table"));
333
+ var tableContainerHeight = constData.current.tableContainer.offsetHeight;
334
+ var tableDomHeight = tableDom.offsetHeight;
335
+ var div = document.createElement('div');
336
+ div.setAttribute('class', 'table-pos-line'); // 定位线高度
337
+
338
+ div.style.height = (tableDomHeight > tableContainerHeight ? tableContainerHeight : tableDomHeight) + 'px'; // 定位线的居左距离
339
+
340
+ div.style.left = constData.current.th.offsetLeft + constData.current.th.offsetWidth + 'px';
341
+ constData.current.lineDom = div;
342
+ constData.current.tableContainer.appendChild(div);
343
+ };
344
+ /** 拖动元素 */
345
+
346
+
347
+ var handDrag = function handDrag() {
348
+ if (!draggable) return null;
349
+ return jsx("div", {
350
+ className: "th-element-draggable-box",
351
+ onMouseDown: onMouseDown
352
+ });
353
+ }; // 处理className
354
+
230
355
 
231
356
  var handClass = function handClass() {
232
357
  var str = 'th-element';
358
+ if (draggable) str += ' th-element-draggable';
233
359
  if (className) str += ' ' + className;
234
360
  return str;
235
361
  };
236
362
 
237
- return jsx("th", Object.assign({
363
+ return jsxs("th", Object.assign({
238
364
  className: handClass(),
239
365
  style: style
240
366
  }, otherProps, {
241
- children: children
367
+ ref: domRef
368
+ }, {
369
+ children: [children, handDrag()]
242
370
  }));
243
371
  };
244
372
 
245
373
  var en = {
246
374
  empty: 'Empty',
247
375
  determine: 'Ok',
248
- restoreDefault: 'Restore default'
376
+ restoreDefault: 'Restore default',
377
+ serial: 'Sort'
249
378
  };
250
379
 
251
380
  var zh = {
252
381
  empty: '清空',
253
382
  determine: '确定',
254
- restoreDefault: '恢复默认'
383
+ restoreDefault: '恢复默认',
384
+ serial: '序号'
255
385
  };
256
386
 
257
387
  var localeJson = {
@@ -285,7 +415,11 @@ var TableHead$1 = function TableHead(props) {
285
415
  fixedTable = props.fixedTable,
286
416
  fixedColumn = props.fixedColumn,
287
417
  posFixed = props.posFixed,
288
- beyondText = props.beyondText;
418
+ beyondText = props.beyondText,
419
+ lineWidth = props.lineWidth,
420
+ dragColumn = props.dragColumn,
421
+ changeColumnWidth = props.changeColumnWidth,
422
+ headDataConfig = props.headDataConfig;
289
423
 
290
424
  var _useState = useState(false),
291
425
  _useState2 = _slicedToArray(_useState, 2),
@@ -554,7 +688,8 @@ var TableHead$1 = function TableHead(props) {
554
688
 
555
689
  return jsx(ThElement, Object.assign({
556
690
  align: "center",
557
- className: handCls()
691
+ className: handCls(),
692
+ draggable: false
558
693
  }, {
559
694
  children: jsx("div", Object.assign({
560
695
  className: "table-header-box"
@@ -587,7 +722,8 @@ var TableHead$1 = function TableHead(props) {
587
722
 
588
723
  return jsx(ThElement, Object.assign({
589
724
  align: "center",
590
- className: handCls()
725
+ className: handCls(),
726
+ draggable: false
591
727
  }, {
592
728
  children: jsx("div", {
593
729
  className: "table-header-box"
@@ -614,7 +750,8 @@ var TableHead$1 = function TableHead(props) {
614
750
 
615
751
  return jsx(ThElement, Object.assign({
616
752
  align: "center",
617
- className: handCls()
753
+ className: handCls(),
754
+ draggable: false
618
755
  }, {
619
756
  children: jsx("div", {
620
757
  className: "table-header-box"
@@ -670,6 +807,22 @@ var TableHead$1 = function TableHead(props) {
670
807
  }))]
671
808
  }))]
672
809
  }));
810
+ }; // 表格列拖拽放下
811
+
812
+
813
+ var onDragDown = function onDragDown(headCell) {
814
+ return function (result) {
815
+ changeColumnWidth && changeColumnWidth(headCell, result);
816
+ };
817
+ }; // 获取宽度
818
+
819
+
820
+ var getWidth = function getWidth(item) {
821
+ var w = item.width || '';
822
+ var name = item.name || '';
823
+ var wDrag = headDataConfig[name] && headDataConfig[name].width;
824
+ if (wDrag) w = wDrag + 'px';
825
+ return w;
673
826
  }; // 内容列memo
674
827
 
675
828
 
@@ -687,7 +840,7 @@ var TableHead$1 = function TableHead(props) {
687
840
  if (item.className) str += item.className;
688
841
 
689
842
  if (fixedColumn && item.fixed) {
690
- str = 'table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
843
+ str += ' table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
691
844
 
692
845
  if (item.fixed === 'left' && item.paraui_fixed_left_last) {
693
846
  str += ' table-fixed-dom-left-last';
@@ -704,7 +857,7 @@ var TableHead$1 = function TableHead(props) {
704
857
 
705
858
  var handStyle = function handStyle(item) {
706
859
  var json = {
707
- width: item.width
860
+ width: getWidth(item)
708
861
  };
709
862
 
710
863
  if (fixedColumn && item.fixed && item.width) {
@@ -738,13 +891,25 @@ var TableHead$1 = function TableHead(props) {
738
891
  })
739
892
  }))
740
893
  }));
894
+ }; // 处理拖拽
895
+
896
+
897
+ var handDrag = function handDrag(item) {
898
+ if (item.name === 'table-serial-number') return false; // 序号不拖拽
899
+
900
+ if (dragColumn && item.drag !== false) return true;
901
+ return false;
741
902
  };
742
903
 
743
904
  return headData.map(function (headCell, index) {
744
905
  return jsx(ThElement, Object.assign({
745
906
  className: handCls(headCell),
746
907
  align: headCell.align || align,
747
- style: handStyle(headCell)
908
+ style: handStyle(headCell),
909
+ draggable: handDrag(headCell),
910
+ headCell: headCell,
911
+ onDragDown: onDragDown(headCell),
912
+ lineWidth: lineWidth
748
913
  }, {
749
914
  children: jsxs("div", Object.assign({
750
915
  className: handCellClass(headCell)
@@ -777,7 +942,7 @@ var TableHead$1 = function TableHead(props) {
777
942
  }))
778
943
  }), headCell.name || index);
779
944
  });
780
- }, [headData, sortTable, filter, orderFieldArr, orderTypeArr, align, filterHead, selectFilterCom, beyondText, selectFilter, fixedColumn]); // 操作栏memo
945
+ }, [headData, sortTable, filter, orderFieldArr, orderTypeArr, align, filterHead, selectFilterCom, beyondText, selectFilter, fixedColumn, lineWidth, dragColumn, changeColumnWidth, headDataConfig]); // 操作栏memo
781
946
 
782
947
  var TableOperateMemo = useMemo(function () {
783
948
  if (operate) {
@@ -811,7 +976,8 @@ var TableHead$1 = function TableHead(props) {
811
976
  return jsx(ThElement, Object.assign({
812
977
  align: operate.align || align,
813
978
  style: handStyle(),
814
- className: handCls()
979
+ className: handCls(),
980
+ draggable: false
815
981
  }, {
816
982
  children: jsx("div", Object.assign({
817
983
  className: "table-header-box"
@@ -893,7 +1059,8 @@ var TableHead$1 = function TableHead(props) {
893
1059
  children: jsx(ThElement, Object.assign({
894
1060
  align: "center",
895
1061
  className: handCls(),
896
- onClick: clickShowColums
1062
+ onClick: clickShowColums,
1063
+ draggable: false
897
1064
  }, {
898
1065
  children: jsx("div", Object.assign({
899
1066
  className: "table-header-box"
@@ -1349,7 +1516,7 @@ var TableBody = function TableBody(props) {
1349
1516
  }));
1350
1517
  }, [expandable, expandableRow, rowKey, disabledExpandJson, onExpand, fixedColumn]); // 表格一行内容useCallback
1351
1518
 
1352
- var TableContentUseCallback = useCallback(function (row) {
1519
+ var TableContentUseCallback = useCallback(function (row, rowIndex) {
1353
1520
  var params = {
1354
1521
  orderFieldArr: orderFieldArr,
1355
1522
  orderTypeArr: orderTypeArr
@@ -1376,7 +1543,7 @@ var TableBody = function TableBody(props) {
1376
1543
  }
1377
1544
 
1378
1545
  if (item.fixed && fixedColumn) {
1379
- str = 'table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
1546
+ str += ' table-fixed-dom-' + item.fixed; // 固定左边,判断是否是最后一个
1380
1547
 
1381
1548
  if (item.fixed === 'left' && item.paraui_fixed_left_last) {
1382
1549
  str += ' table-fixed-dom-left-last';
@@ -1410,8 +1577,8 @@ var TableBody = function TableBody(props) {
1410
1577
  return tableCell ? tableCell(row, params) : headData.map(function (item, index) {
1411
1578
  var text = row[item.name];
1412
1579
  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); // 存在显示列,最后一列占两格
1580
+ if (item.render) text = item.render(row, item, row[item.name], index, rowIndex);
1581
+ if (formatter) text = formatter(row, item, row[item.name], index, rowIndex); // 存在显示列,最后一列占两格
1415
1582
 
1416
1583
  if (showColumns === 'inside' && !operate && index === headData.length - 1) {
1417
1584
  colSpan = 2;
@@ -1524,7 +1691,7 @@ var TableBody = function TableBody(props) {
1524
1691
  children: [jsxs(TrElement, Object.assign({
1525
1692
  className: "table-body-row"
1526
1693
  }, {
1527
- children: [TableCheckCallback(row), TableRadioCallback(row), TableExpandableMemo(row), TableContentUseCallback(row), TableOperateUseCallback(row)]
1694
+ children: [TableCheckCallback(row), TableRadioCallback(row), TableExpandableMemo(row), TableContentUseCallback(row, index), TableOperateUseCallback(row)]
1528
1695
  }), row[rowKey]), TableExpandableContentUseCallback(row)]
1529
1696
  }, index);
1530
1697
  })
@@ -1635,7 +1802,7 @@ var TableElement = function TableElement(props) {
1635
1802
  }));
1636
1803
  };
1637
1804
 
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}";
1805
+ 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-draggable * {\n user-select: none !important;\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 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 padding-right: 8px;\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 padding-right: 8px;\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-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(54, 102, 214);\n z-index: 1000;\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
1806
  styleInject(css_248z);
1640
1807
 
1641
1808
  var Table = function Table(propsInit) {
@@ -1702,6 +1869,8 @@ var Table = function Table(propsInit) {
1702
1869
  fixedTable = _props$fixedTable === void 0 ? true : _props$fixedTable,
1703
1870
  _props$fixedColumn = props.fixedColumn,
1704
1871
  fixedColumn = _props$fixedColumn === void 0 ? true : _props$fixedColumn,
1872
+ _props$dragColumn = props.dragColumn,
1873
+ dragColumn = _props$dragColumn === void 0 ? true : _props$dragColumn,
1705
1874
  formatter = props.formatter,
1706
1875
  _props$lineHeight = props.lineHeight,
1707
1876
  lineHeight = _props$lineHeight === void 0 ? 56 : _props$lineHeight,
@@ -1725,7 +1894,8 @@ var Table = function Table(propsInit) {
1725
1894
  _props$beyondText = props.beyondText,
1726
1895
  beyondText = _props$beyondText === void 0 ? true : _props$beyondText,
1727
1896
  loading = props.loading;
1728
- var dayNum = props.expirationTime ? props.expirationTime : 7; // 过期天数
1897
+ var intl = useFormatMessage('Table', localeJson);
1898
+ var dayNum = props.expirationTime ? props.expirationTime === 0 ? 100000000 : props.expirationTime : 7; // 过期天数
1729
1899
 
1730
1900
  var _useState = useState(props.page !== undefined ? props.page : 1),
1731
1901
  _useState2 = _slicedToArray(_useState, 2),
@@ -1858,14 +2028,22 @@ var Table = function Table(propsInit) {
1858
2028
  var _useState45 = useState({}),
1859
2029
  _useState46 = _slicedToArray(_useState45, 2),
1860
2030
  posFixed = _useState46[0],
1861
- setPosFixed = _useState46[1];
2031
+ setPosFixed = _useState46[1]; // 固定位置
2032
+
2033
+
2034
+ var _useState47 = useState({}),
2035
+ _useState48 = _slicedToArray(_useState47, 2),
2036
+ headDataConfig = _useState48[0],
2037
+ setHeadDataConfig = _useState48[1]; // 表头配置
2038
+
1862
2039
 
1863
2040
  var containerRef = useRef(); // 表格内容高度
1864
2041
 
1865
2042
  var tableRef = useRef(); // 表格
1866
2043
 
1867
2044
  var constData = useRef({
1868
- page: props.page !== undefined ? props.page : 1
2045
+ page: props.page !== undefined ? props.page : 1,
2046
+ headDataConfig: {}
1869
2047
  }); // 存储常量
1870
2048
 
1871
2049
  constData.current.loadMoreUrl = loadMore && url; // 用来判断加载更多请求是否放在表格里面
@@ -2161,26 +2339,39 @@ var Table = function Table(propsInit) {
2161
2339
  var json = getLocalStorageSelectHead(getTableHeadKey(), dayNum);
2162
2340
  return json;
2163
2341
  };
2164
- /** 设置本地表格列 */
2342
+ /**
2343
+ * 设置本地表格列
2344
+ *
2345
+ * */
2165
2346
 
2166
2347
 
2167
- var setLocalStorageHeadCom = function setLocalStorageHeadCom(headArr) {
2348
+ var setLocalStorageHeadCom = function setLocalStorageHeadCom(obj) {
2168
2349
  if (props.rememberColumns === false) return;
2169
- var selectHeadJson = ArrayToObject('name', headArr);
2350
+ var localStorageData = getLocalStorageHeadCom();
2170
2351
  var json = {
2171
- headName: {},
2352
+ headName: localStorageData.headName || {},
2353
+ headDataConfig: localStorageData.headDataConfig || {},
2172
2354
  storageTime: new Date().getTime(),
2173
2355
  validity: dayNum * (60 * 60 * 24)
2174
- };
2356
+ }; // 设置固定列
2175
2357
 
2176
- for (var i = 0, l = showHeadList.length; i < l; i++) {
2177
- var item = showHeadList[i];
2178
- var name = item.name || '';
2179
- json.headName[name] = false;
2358
+ if (obj.setFixed) {
2359
+ var selectHeadJson = ArrayToObject('name', obj.headArr || []);
2360
+
2361
+ for (var i = 0, l = showHeadList.length; i < l; i++) {
2362
+ var item = showHeadList[i];
2363
+ var name = item.name || '';
2364
+ json.headName[name] = false;
2180
2365
 
2181
- if (selectHeadJson[name]) {
2182
- json.headName[name] = true;
2366
+ if (selectHeadJson[name]) {
2367
+ json.headName[name] = true;
2368
+ }
2183
2369
  }
2370
+ } // 设置拖动列
2371
+
2372
+
2373
+ if (obj.setDrag) {
2374
+ json.headDataConfig = obj.headDataConfig || {};
2184
2375
  }
2185
2376
 
2186
2377
  setLocalStorageSelectHead(getTableHeadKey(), json);
@@ -2218,6 +2409,32 @@ var Table = function Table(propsInit) {
2218
2409
  }
2219
2410
  }
2220
2411
  };
2412
+ /** 处理序号 */
2413
+
2414
+
2415
+ var handSerial = function handSerial(arr) {
2416
+ var defaultVal = {
2417
+ label: intl({
2418
+ id: 'serial'
2419
+ }),
2420
+ selected: true,
2421
+ width: props.radio || props.check || props.expandable ? 45 : 55,
2422
+ fixed: 'left',
2423
+ className: 'table-serial-number',
2424
+ name: 'table-serial-number',
2425
+ render: function render(row, item, val, index, rowIndex) {
2426
+ return Number(rowIndex) + 1;
2427
+ }
2428
+ };
2429
+
2430
+ if (props.serialNumber) {
2431
+ if (typeof props.serialNumber === 'boolean') {
2432
+ arr.unshift(defaultVal);
2433
+ } else {
2434
+ arr.unshift(Object.assign(Object.assign({}, defaultVal), props.serialNumber));
2435
+ }
2436
+ }
2437
+ };
2221
2438
  /**
2222
2439
  * 初始化设置表头
2223
2440
  * @param arr {(HeadDataProps | HeadDataReqProps)[]} 表头数据
@@ -2232,14 +2449,16 @@ var Table = function Table(propsInit) {
2232
2449
 
2233
2450
  var json = {};
2234
2451
  var localHead = getLocalStorageHeadCom();
2452
+ constData.current.headDataConfig = localHead.headDataConfig || {};
2235
2453
 
2236
2454
  for (var i = 0, l = arr.length; i < l; i++) {
2237
2455
  var item = arr[i];
2238
- if (typeof item.width === 'number') item.width += 'px';
2456
+ var name = item.name || '';
2457
+ if (typeof item.width === 'number') item.width = item.width + 'px';
2239
2458
  if (!bol) item.orderNum = i;
2240
2459
  handHeadShow(item, headShowArr, localHead);
2241
2460
  headArr.push(item);
2242
- json[item.name] = item;
2461
+ json[name] = item;
2243
2462
  }
2244
2463
 
2245
2464
  if (bol) {
@@ -2251,9 +2470,15 @@ var Table = function Table(propsInit) {
2251
2470
  });
2252
2471
  }
2253
2472
 
2254
- handHeadDataCom(headShowArr);
2255
- setHeadDataCom(headShowArr);
2256
- setShowHeadList(headArr);
2473
+ handSerial(headShowArr); // 处理序号
2474
+
2475
+ handHeadDataCom(headShowArr); // 处理显示列宽度
2476
+
2477
+ setHeadDataCom(headShowArr); // 表格当前显示列 集合本地数据
2478
+
2479
+ setShowHeadList(headArr); // 显示列下拉值 所有头部的配置
2480
+
2481
+ setHeadDataConfig(Object.assign({}, constData.current.headDataConfig));
2257
2482
  constData.current.headDataJson = json;
2258
2483
  }; // 计算左边的差量
2259
2484
 
@@ -2309,6 +2534,15 @@ var Table = function Table(propsInit) {
2309
2534
  }
2310
2535
 
2311
2536
  return rightNum;
2537
+ }; // 获取宽度
2538
+
2539
+
2540
+ var getWidth = function getWidth(item) {
2541
+ var w = item.width || '';
2542
+ var name = item.name || '';
2543
+ var wDrag = constData.current.headDataConfig[name] && constData.current.headDataConfig[name].width;
2544
+ if (wDrag) w = wDrag;
2545
+ return w;
2312
2546
  };
2313
2547
  /**
2314
2548
  * 处理显示列宽度
@@ -2336,19 +2570,22 @@ var Table = function Table(propsInit) {
2336
2570
  for (var i = 0, l = arr.length; i < l; i++) {
2337
2571
  var item = arr[i];
2338
2572
  var itemWidth = 0;
2573
+ var handW = getWidth(item); // 获取宽度,有拖动过后宽度,就用拖动的
2339
2574
 
2340
- if (item.width) {
2341
- itemWidth = getStringInNumber(item.width);
2575
+ if (handW) {
2576
+ itemWidth = getStringInNumber(handW);
2342
2577
  tableMinWidth += itemWidth;
2343
2578
  } else {
2344
2579
  tableMinWidth += lineWidth;
2345
2580
  }
2346
2581
 
2347
2582
  if (item.fixed === 'left' && item.width) {
2583
+ // 固定列必须具有宽度
2348
2584
  leftArr.push(item);
2349
2585
  }
2350
2586
 
2351
2587
  if (item.fixed === 'right' && item.width) {
2588
+ // 固定列必须具有宽度
2352
2589
  rightArr.push(item);
2353
2590
  }
2354
2591
  }
@@ -2362,7 +2599,10 @@ var Table = function Table(propsInit) {
2362
2599
  var _item = leftArr[_i];
2363
2600
 
2364
2601
  if (_item.width) {
2365
- var _itemWidth = getStringInNumber(_item.width);
2602
+ var _handW = getWidth(_item); // 获取宽度,有拖动过后宽度,就用拖动的
2603
+
2604
+
2605
+ var _itemWidth = getStringInNumber(_handW);
2366
2606
 
2367
2607
  _item.paraui_left_width = leftOps;
2368
2608
  leftOps += _itemWidth; // 最后一个
@@ -2385,7 +2625,10 @@ var Table = function Table(propsInit) {
2385
2625
  var _item2 = rightArr[_i2];
2386
2626
 
2387
2627
  if (_item2.width) {
2388
- var _itemWidth2 = getStringInNumber(_item2.width);
2628
+ var _handW2 = getWidth(_item2); // 获取宽度,有拖动过后宽度,就用拖动的
2629
+
2630
+
2631
+ var _itemWidth2 = getStringInNumber(_handW2);
2389
2632
 
2390
2633
  _item2.paraui_right_width = rightOps;
2391
2634
  rightOps += _itemWidth2; // 最后一个
@@ -2399,8 +2642,9 @@ var Table = function Table(propsInit) {
2399
2642
  }
2400
2643
  }
2401
2644
 
2402
- setTableMinWidth(tableMinWidth);
2403
- setPosFixed(posJson);
2645
+ setTableMinWidth(tableMinWidth); // 表格最小宽度
2646
+
2647
+ setPosFixed(posJson); // 定位信息
2404
2648
  };
2405
2649
  /**
2406
2650
  * 处理过滤请求数据
@@ -2742,13 +2986,20 @@ var Table = function Table(propsInit) {
2742
2986
  handCheckValue({});
2743
2987
  }
2744
2988
  };
2745
- /** 改变选择列 */
2989
+ /**
2990
+ * 改变选择列
2991
+ * @param arr {HeadDataProps[]} 当前显示列
2992
+ * */
2746
2993
 
2747
2994
 
2748
2995
  var changeSelectHead = function changeSelectHead(arr, item) {
2749
2996
  handHeadDataCom(arr);
2750
- setHeadDataCom(arr);
2751
- setLocalStorageHeadCom(arr);
2997
+ setHeadDataCom(arr); // 本地记住选择列
2998
+
2999
+ setLocalStorageHeadCom({
3000
+ setFixed: true,
3001
+ headArr: arr
3002
+ });
2752
3003
  onClickColumns && onClickColumns(arr, item);
2753
3004
  };
2754
3005
  /**
@@ -2761,10 +3012,17 @@ var Table = function Table(propsInit) {
2761
3012
 
2762
3013
  var changeShowList = function changeShowList(headShowArr, bol, item) {
2763
3014
  if (bol) {
3015
+ constData.current.headDataConfig = {};
3016
+ setHeadDataConfig({}); // 重置拖拽列
3017
+
2764
3018
  var arr = [];
2765
3019
 
2766
- for (var i = 0, l = showHeadList.length; i < l; i++) {
2767
- var _item3 = showHeadList[i];
3020
+ var arrShow = _toConsumableArray(showHeadList);
3021
+
3022
+ handSerial(arrShow);
3023
+
3024
+ for (var i = 0, l = arrShow.length; i < l; i++) {
3025
+ var _item3 = arrShow[i];
2768
3026
 
2769
3027
  if (_item3 && _item3.selected) {
2770
3028
  // 当前显示字段
@@ -2793,6 +3051,24 @@ var Table = function Table(propsInit) {
2793
3051
  constData.current.selectFilterCom = DeepClone(val);
2794
3052
  setSelectFilterCom(DeepClone(val));
2795
3053
  handPage(1);
3054
+ };
3055
+ /** 改变拖拽列width */
3056
+
3057
+
3058
+ var changeColumnWidth = function changeColumnWidth(headCell, result) {
3059
+ var name = headCell.name || '';
3060
+ constData.current.headDataConfig[name] = {
3061
+ width: result.width
3062
+ };
3063
+ setHeadDataConfig(Object.assign({}, constData.current.headDataConfig)); // 设置表格列配置,被拖动的width
3064
+
3065
+ handHeadDataCom(_toConsumableArray(headData)); // 重新计算表格的最小宽度
3066
+ // 本地记住拖动列宽度
3067
+
3068
+ setLocalStorageHeadCom({
3069
+ headDataConfig: constData.current.headDataConfig,
3070
+ setDrag: true
3071
+ });
2796
3072
  }; // 表格头部memo
2797
3073
 
2798
3074
 
@@ -2820,9 +3096,13 @@ var Table = function Table(propsInit) {
2820
3096
  fixedTable: fixedTable,
2821
3097
  fixedColumn: fixedColumn,
2822
3098
  posFixed: posFixed,
2823
- beyondText: beyondText
3099
+ beyondText: beyondText,
3100
+ lineWidth: lineWidth,
3101
+ dragColumn: dragColumn,
3102
+ headDataConfig: headDataConfig,
3103
+ changeColumnWidth: changeColumnWidth
2824
3104
  });
2825
- }, [totalDataJson, showColumns, rowKey, rowData, checkJson, disabledJson, orderTypeArr, orderFieldArr, sortTable, filter, expandable, check, headSelectStatus, radio, align, showHeadList, headDataCom, selectFilterCom, operate, onClickColumns, sortTableRadio, fixedTable, posFixed, beyondText, fixedColumn]); // 表格内容memo
3105
+ }, [totalDataJson, showColumns, rowKey, rowData, checkJson, disabledJson, orderTypeArr, orderFieldArr, sortTable, filter, expandable, check, headSelectStatus, radio, align, showHeadList, headDataCom, selectFilterCom, operate, onClickColumns, sortTableRadio, fixedTable, posFixed, beyondText, fixedColumn, lineWidth, dragColumn, headDataConfig]); // 表格内容memo
2826
3106
 
2827
3107
  var TableBodyMemo = useMemo(function () {
2828
3108
  return jsx(TableBody, {
@@ -2915,6 +3195,7 @@ var Table = function Table(propsInit) {
2915
3195
  if (loadMore) str += " ".concat($prefixCls, "-table-load-more");
2916
3196
  if (fixedTable) str += " ".concat($prefixCls, "-table-fixed-table");
2917
3197
  if (fixedColumn) str += " ".concat($prefixCls, "-table-fixed-cloumn");
3198
+ if (dragColumn) str += " ".concat($prefixCls, "-table-drag-column");
2918
3199
  if (check) str += " ".concat($prefixCls, "-table-check");
2919
3200
  if (radio) str += " ".concat($prefixCls, "-table-radio");
2920
3201
  if (expandable) str += " ".concat($prefixCls, "-table-expandable");