@para-ui/core 4.0.32 → 4.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/AutoButton/index.js +2 -2
  2. package/Card/index.js +2 -2
  3. package/Cascader/index.js +6 -5
  4. package/CollapseLayout/index.js +1 -1
  5. package/ComboSelect/index.js +8 -4
  6. package/CycleSelector/index.js +4 -1
  7. package/DatePicker/index.js +4 -1
  8. package/DynamicMultiBox/index.js +7 -6
  9. package/Form/index.js +9 -5
  10. package/FormItem/index.js +9 -5
  11. package/Image/index.js +3 -2
  12. package/Querying/index.js +4 -4
  13. package/QuickReply/index.js +1 -1
  14. package/README.md +5 -0
  15. package/Selector/index.js +281 -223
  16. package/SelectorPicker/index.js +4 -4
  17. package/SingleBox/index.js +2 -2
  18. package/SortBox/index.d.ts +0 -2
  19. package/SortBox/index.js +10 -10
  20. package/Stepper/index.js +1 -1
  21. package/Switch/index.js +2 -2
  22. package/Table/index.js +151 -30
  23. package/Table/interface.d.ts +9 -1
  24. package/Table/lang/en_US.d.ts +1 -0
  25. package/Table/lang/index.d.ts +2 -0
  26. package/Table/lang/zh_CN.d.ts +1 -0
  27. package/Table/tableBodyElement/index.d.ts +5 -0
  28. package/Table/tableBodyInterface.d.ts +4 -0
  29. package/Table/tableHeadInterface.d.ts +2 -0
  30. package/Tabs/index.js +2 -2
  31. package/Tag/index.js +82 -53
  32. package/TextEditor/index.js +3 -3
  33. package/TimePicker/index.js +4 -1
  34. package/Timeline/index.js +2 -1
  35. package/ToggleButton/index.js +25 -26
  36. package/Tree/index.js +6 -5
  37. package/Upload/index.js +5 -4
  38. package/_verture/{Portal-42560ff0.js → Portal-edd94cac.js} +2 -1
  39. package/_verture/{defineProperty-f0e15205.js → defineProperty-6f62bb2a.js} +2 -10
  40. package/_verture/{index-44152845.js → index-567b5779.js} +3 -2
  41. package/_verture/{index-519d0a1f.js → index-8752ccab.js} +4 -3
  42. package/_verture/{index-8ac46bd9.js → index-94e24006.js} +1 -1
  43. package/_verture/typeof-adeedc13.js +11 -0
  44. package/index.js +9 -8
  45. package/locale/en-US.d.ts +1 -0
  46. package/locale/index.d.ts +2 -0
  47. package/locale/index.js +4 -2
  48. package/locale/zh-CN.d.ts +1 -0
  49. package/package.json +2 -3
  50. package/umd/AutoButton.js +5 -5
  51. package/umd/CollapseLayout.js +1 -1
  52. package/umd/ComboSelect.js +19 -7
  53. package/umd/DynamicMultiBox.js +6 -6
  54. package/umd/Form.js +19 -7
  55. package/umd/FormItem.js +19 -7
  56. package/umd/SortBox.js +1 -1
  57. package/umd/Table.js +19 -7
  58. package/umd/locale.js +1 -1
  59. /package/_verture/{index-0f5ee6f7.js → index-c8cb6751.js} +0 -0
  60. /package/_verture/{index-b037486c.js → index-e229330e.js} +0 -0
  61. /package/_verture/{typeof-6ec38efd.js → typeof-4646b22c.js} +0 -0
package/Table/index.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __rest, a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { useRef, useState, useEffect, useMemo, useCallback, Fragment as Fragment$1 } from 'react';
4
4
  import { Get, Post, DeepClone, GetBrowserClass, Cancel, ArrayToObject } from '@paraview/lib';
5
- import { _ as _typeof, a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
5
+ import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
6
6
  import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
7
7
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
8
8
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
@@ -16,9 +16,12 @@ import SolidArrowDown from '@para-ui/icons/DownTriangleF';
16
16
  import Panel from '@para-ui/icons/Panel';
17
17
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
18
18
  import Empty from '../Empty/index.js';
19
+ import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
20
+ import { d as dist } from '../_verture/index-c8cb6751.js';
19
21
  import { Radio } from '../Radio/index.js';
20
22
  import OperateBtn from '../OperateBtn/index.js';
21
23
  import Down from '@para-ui/icons/Down';
24
+ import Drag from '@para-ui/icons/Drag';
22
25
  import Refresh from '@para-ui/icons/Refresh';
23
26
  import { Pagination } from '../Pagination/index.js';
24
27
  import { Loading } from '../Loading/index.js';
@@ -37,6 +40,7 @@ import '../_verture/index-bde7aabe.js';
37
40
  import 'rc-dropdown';
38
41
  import 'dayjs';
39
42
  import '../_verture/index-ca413216.js';
43
+ import '../_verture/sortable.esm-76fe46a4.js';
40
44
  import '@para-ui/icons/More';
41
45
  import '../PopConfirm/index.js';
42
46
  import '@para-ui/icons/CheckCircleF';
@@ -216,7 +220,7 @@ var TrElement = function TrElement(props) {
216
220
  }));
217
221
  };
218
222
 
219
- var css_248z$5 = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\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(247, 248, 250);\n border-bottom: 1px solid rgb(234, 236, 241);\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(240, 245, 255);\n}\n.th-element.table-operate.table-operate-small {\n width: 105px;\n}\n.th-element.table-operate.table-operate-small > .table-header-box {\n width: 105px;\n}\n.th-element > .th-element-draggable-box {\n width: 4px;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n.th-element:hover > .th-element-draggable-box {\n background-color: rgb(213, 224, 250);\n cursor: ew-resize;\n}";
223
+ var css_248z$5 = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\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(247, 248, 250);\n border-bottom: 1px solid rgb(234, 236, 241);\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(240, 245, 255);\n}\n.th-element.table-operate.table-operate-small {\n width: 105px;\n}\n.th-element.table-operate.table-operate-small > .table-header-box {\n width: 100%;\n}\n.th-element.table-operate.table-operate-not-columns.table-operate-small {\n width: 158px;\n}\n.th-element.table-operate.table-operate-drag-row.table-operate-small {\n width: 145px;\n}\n.th-element.table-operate.table-operate-drag-row.table-operate-not-columns.table-operate-small {\n width: 198px;\n}\n.th-element > .th-element-draggable-box {\n width: 4px;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n.th-element:hover > .th-element-draggable-box {\n background-color: rgb(213, 224, 250);\n cursor: ew-resize;\n}";
220
224
  styleInject(css_248z$5);
221
225
 
222
226
  var ThElement = function ThElement(props) {
@@ -339,7 +343,8 @@ var en = {
339
343
  loadMore: 'Load more',
340
344
  refresh: 'Refresh',
341
345
  selectNum: 'Selected {num} items',
342
- selectAll: 'Select All'
346
+ selectAll: 'Select All',
347
+ dragSort: 'Drag Sort'
343
348
  };
344
349
 
345
350
  var zh = {
@@ -350,7 +355,8 @@ var zh = {
350
355
  loadMore: '加载更多',
351
356
  refresh: '刷新',
352
357
  selectNum: '已选{num}项',
353
- selectAll: '全选'
358
+ selectAll: '全选',
359
+ dragSort: '拖动排序'
354
360
  };
355
361
 
356
362
  var localeJson = {
@@ -387,6 +393,7 @@ var TableHead$1 = function TableHead(props) {
387
393
  beyondText = props.beyondText,
388
394
  lineWidth = props.lineWidth,
389
395
  dragColumn = props.dragColumn,
396
+ dragRow = props.dragRow,
390
397
  changeColumnWidth = props.changeColumnWidth,
391
398
  headDataConfig = props.headDataConfig,
392
399
  getPopupContainer = props.getPopupContainer,
@@ -884,6 +891,8 @@ var TableHead$1 = function TableHead(props) {
884
891
  var handCls = function handCls() {
885
892
  var str = 'table-operate';
886
893
  if (operate.operateBtnRender) str += ' table-operate-small';
894
+ if (showColumns === false) str += ' table-operate-not-columns';
895
+ if (dragRow) str += ' table-operate-drag-row';
887
896
  if (fixedColumn) {
888
897
  str += ' table-fixed-dom-right';
889
898
  // 存在显示列,且没有右侧固定列
@@ -928,7 +937,7 @@ var TableHead$1 = function TableHead(props) {
928
937
  }))
929
938
  }));
930
939
  }
931
- }, [operate, align, posFixed, showColumns, posFixed, beyondText, fixedColumn, tipMaxWidth]);
940
+ }, [operate, align, posFixed, showColumns, posFixed, beyondText, fixedColumn, tipMaxWidth, dragRow]);
932
941
  // 显示列弹窗内容
933
942
  var showListContent = function showListContent() {
934
943
  return jsxs("div", Object.assign({
@@ -1006,6 +1015,23 @@ var TableHead$1 = function TableHead(props) {
1006
1015
  }))
1007
1016
  }));
1008
1017
  }, [showColumns, posFixed, operate, anchorElColums, showList, headDataJson, getPopupContainer, tipMaxWidth]);
1018
+ // 拖动行
1019
+ var TbaleDragRow = useMemo(function () {
1020
+ if (!dragRow || operate || showColumns === 'inside') return null;
1021
+ var handCls = function handCls() {
1022
+ var str = 'drag-row table-fixed-dom-right';
1023
+ // 没有固定列参数 或者 没有操作栏且没有右侧固定列
1024
+ if (!fixedColumn || !operate && !(posFixed === null || posFixed === void 0 ? void 0 : posFixed.rightBol)) {
1025
+ str += ' table-fixed-dom-right-first';
1026
+ }
1027
+ return str;
1028
+ };
1029
+ return jsx(ThElement, {
1030
+ align: "center",
1031
+ className: handCls(),
1032
+ draggable: false
1033
+ });
1034
+ }, [operate, showColumns, fixedColumn, posFixed, dragRow]);
1009
1035
  // 处理class
1010
1036
  var handClass = function handClass() {
1011
1037
  var str = 'table-head';
@@ -1019,7 +1045,7 @@ var TableHead$1 = function TableHead(props) {
1019
1045
  className: handClass()
1020
1046
  }, {
1021
1047
  children: jsxs(TrElement, {
1022
- children: [TableCheckMemo, TableRadioMemo, TableExpandableMemo, TableContentMemo, TableOperateMemo, TableShowList]
1048
+ children: [TableCheckMemo, TableRadioMemo, TableExpandableMemo, TableContentMemo, TableOperateMemo, TableShowList, TbaleDragRow]
1023
1049
  })
1024
1050
  }));
1025
1051
  };
@@ -1031,12 +1057,32 @@ var TableBodyElement = function TableBodyElement(props) {
1031
1057
  var className = props.className,
1032
1058
  style = props.style,
1033
1059
  children = props.children,
1034
- otherProps = __rest(props, ["className", "style", "children"]);
1060
+ drag = props.drag,
1061
+ handle = props.handle,
1062
+ onDrag = props.onDrag,
1063
+ onChoose = props.onChoose,
1064
+ list = props.list,
1065
+ otherProps = __rest(props, ["className", "style", "children", "drag", "handle", "onDrag", "onChoose", "list"]);
1035
1066
  var handClass = function handClass() {
1036
1067
  var str = 'table-body-element';
1037
1068
  if (className) str += " ".concat(className);
1038
1069
  return str;
1039
1070
  };
1071
+ if (drag) {
1072
+ return jsx(dist.exports.ReactSortable, Object.assign({}, otherProps, {
1073
+ className: handClass(),
1074
+ style: style,
1075
+ list: list || [],
1076
+ handle: handle,
1077
+ animation: 300,
1078
+ setList: function setList() {},
1079
+ onEnd: onDrag,
1080
+ onChoose: onChoose,
1081
+ tag: 'tbody'
1082
+ }, {
1083
+ children: children
1084
+ }));
1085
+ }
1040
1086
  return jsx("tbody", Object.assign({
1041
1087
  className: handClass(),
1042
1088
  style: style
@@ -1122,7 +1168,9 @@ var TableBody = function TableBody(props) {
1122
1168
  onClickRow = props.onClickRow,
1123
1169
  rowClassMapping = props.rowClassMapping,
1124
1170
  tipMaxWidth = props.tipMaxWidth,
1125
- lineHeight = props.lineHeight;
1171
+ lineHeight = props.lineHeight,
1172
+ dragRow = props.dragRow,
1173
+ onDragRow = props.onDragRow;
1126
1174
  var _useState = useState(0),
1127
1175
  _useState2 = _slicedToArray(_useState, 2),
1128
1176
  expandableColSpan = _useState2[0],
@@ -1139,6 +1187,10 @@ var TableBody = function TableBody(props) {
1139
1187
  _useState8 = _slicedToArray(_useState7, 2),
1140
1188
  disabledExpandJson = _useState8[0],
1141
1189
  setDisabledExpand = _useState8[1]; // 禁用加减部分嵌套
1190
+ var _useState9 = useState(false),
1191
+ _useState10 = _slicedToArray(_useState9, 2),
1192
+ dragBol = _useState10[0],
1193
+ setDragBol = _useState10[1];
1142
1194
  var intl = useFormatMessage('Table', localeJson);
1143
1195
  // 默认是否展开所有
1144
1196
  useEffect(function () {
@@ -1461,7 +1513,7 @@ var TableBody = function TableBody(props) {
1461
1513
  if (formatter) text = formatter(row, item, row[item.name], index, rowIndex);
1462
1514
  var itemStyle = handStyle(item);
1463
1515
  // 存在显示列,最后一列占两格
1464
- if (showColumns === 'inside' && !operate && index === headData.length - 1) {
1516
+ if (showColumns === 'inside' && !operate && index === headData.length - 1 && !dragRow) {
1465
1517
  colSpan = 2;
1466
1518
  if (itemStyle.right) {
1467
1519
  itemStyle.right = '0px';
@@ -1481,15 +1533,15 @@ var TableBody = function TableBody(props) {
1481
1533
  })) : text
1482
1534
  }), item.name || index);
1483
1535
  });
1484
- }, [tableCell, headData, align, formatter, orderFieldArr, orderTypeArr, sortTable, showColumns, operate, beyondText, fixedColumn, tipMaxWidth]);
1536
+ }, [tableCell, headData, align, formatter, orderFieldArr, orderTypeArr, sortTable, showColumns, operate, beyondText, fixedColumn, tipMaxWidth, dragRow]);
1485
1537
  // 操作栏useCallback
1486
1538
  var TableOperateUseCallback = useCallback(function (row, rowIndex) {
1487
- if (operate) {
1539
+ if (operate || dragRow) {
1488
1540
  var colSpan = 1;
1489
- if (showColumns === 'inside') colSpan = 2;
1541
+ if (showColumns === 'inside' && operate) colSpan = 2;
1490
1542
  var handOperate = function handOperate() {
1491
- if (operate.render) return operate.render(row);
1492
- if (operate.operateBtnRender) {
1543
+ if (operate === null || operate === void 0 ? void 0 : operate.render) return operate.render(row);
1544
+ if (operate === null || operate === void 0 ? void 0 : operate.operateBtnRender) {
1493
1545
  var operateConfig = operate.operateBtnRender(row, rowIndex);
1494
1546
  return jsx(OperateBtn, Object.assign({}, operateConfig));
1495
1547
  }
@@ -1502,6 +1554,7 @@ var TableBody = function TableBody(props) {
1502
1554
  };
1503
1555
  var handCls = function handCls() {
1504
1556
  var str = 'table-operate';
1557
+ if (!operate) str += ' table-operate-center';
1505
1558
  if (fixedColumn) {
1506
1559
  str += ' table-fixed-dom-right';
1507
1560
  if (!(posFixed === null || posFixed === void 0 ? void 0 : posFixed.rightBol)) {
@@ -1511,15 +1564,35 @@ var TableBody = function TableBody(props) {
1511
1564
  return str;
1512
1565
  };
1513
1566
  return jsx(TdElement, Object.assign({
1514
- align: operate.align || align,
1567
+ align: (operate === null || operate === void 0 ? void 0 : operate.align) || align,
1515
1568
  className: handCls(),
1516
1569
  colSpan: colSpan,
1517
1570
  style: handStyle()
1518
1571
  }, {
1519
- children: handOperate()
1572
+ children: jsxs("div", Object.assign({
1573
+ className: 'table-operate-box'
1574
+ }, {
1575
+ children: [handOperate(), dragRow && jsxs(Fragment, {
1576
+ children: [operate && jsx("span", {
1577
+ className: 'drag-btn-line'
1578
+ }), jsx(Button.IconButton, Object.assign({
1579
+ className: 'drag-row-btn',
1580
+ variant: 'text',
1581
+ toolTipTitle: !dragBol && intl({
1582
+ id: 'dragSort'
1583
+ }),
1584
+ TooltipProps: {
1585
+ placement: 'bottom-end',
1586
+ arrow: false
1587
+ }
1588
+ }, {
1589
+ children: jsx(Drag, {})
1590
+ }))]
1591
+ })]
1592
+ }))
1520
1593
  }));
1521
1594
  }
1522
- }, [operate, align, showColumns, posFixed, fixedColumn]);
1595
+ }, [operate, align, showColumns, posFixed, fixedColumn, dragRow, onDragRow, dragBol]);
1523
1596
  // 嵌套表格useCallback
1524
1597
  var TableExpandableContentUseCallback = useCallback(function (row) {
1525
1598
  var id = row[rowKey];
@@ -1585,21 +1658,44 @@ var TableBody = function TableBody(props) {
1585
1658
  }, index);
1586
1659
  })
1587
1660
  });
1588
- }, [rowData, rowKey, disabledJson, checkJson, radio, radioValue, expandable, expandableRow, tableCell, headData, align, operate, expandableColSpan, selectCheck, selectRadio, disabledExpandJson, onExpand, disabledArrStatus, showColumns, onClickRow, rowClassMapping, tipMaxWidth, lineHeight]);
1661
+ }, [rowData, rowKey, disabledJson, checkJson, radio, radioValue, expandable, expandableRow, tableCell, headData, align, operate, expandableColSpan, selectCheck, selectRadio, disabledExpandJson, onExpand, disabledArrStatus, showColumns, onClickRow, rowClassMapping, tipMaxWidth, lineHeight, dragRow, onDragRow, dragBol]);
1589
1662
  // 内容memo
1590
1663
  var TableBodyContentMemo = useMemo(function () {
1591
1664
  return jsxs(Fragment$1, {
1592
1665
  children: [TableBodySubjectContentMemo, MoreMemo]
1593
1666
  });
1594
- }, [rowData, rowKey, disabledJson, checkJson, radio, radioValue, expandable, expandableRow, tableCell, headData, align, operate, expandableColSpan, selectCheck, selectRadio, loadMore, loadMoreRender, onClickMore, changePage, loadMoreUrl, disabledExpandJson, onExpand, showMoreBtn, disabledArrStatus, showColumns, onClickRow, rowClassMapping, tipMaxWidth, lineHeight]);
1667
+ }, [rowData, rowKey, disabledJson, checkJson, radio, radioValue, expandable, expandableRow, tableCell, headData, align, operate, expandableColSpan, selectCheck, selectRadio, loadMore, loadMoreRender, onClickMore, changePage, loadMoreUrl, disabledExpandJson, onExpand, showMoreBtn, disabledArrStatus, showColumns, onClickRow, rowClassMapping, tipMaxWidth, lineHeight, dragRow, onDragRow, dragBol]);
1595
1668
  // 处理内容
1596
1669
  var handContent = function handContent() {
1597
1670
  // 无数据,且不再请求,显示暂无数据
1598
1671
  if (rowData.length === 0 && !loadState) return NodataMemo;
1599
1672
  return TableBodyContentMemo;
1600
1673
  };
1674
+ var handleRowData = function handleRowData() {
1675
+ var arr = [];
1676
+ if (dragRow) {
1677
+ rowData.forEach(function (item) {
1678
+ var obj = {};
1679
+ obj[rowKey] = item[rowKey];
1680
+ arr.push(obj);
1681
+ });
1682
+ }
1683
+ return arr;
1684
+ };
1685
+ var onChoose = function onChoose() {
1686
+ setDragBol(true);
1687
+ };
1688
+ var onDragRowCom = function onDragRowCom(evt) {
1689
+ setDragBol(false);
1690
+ onDragRow && onDragRow(evt);
1691
+ };
1601
1692
  return jsx(TableBodyElement, Object.assign({
1602
- className: handClass()
1693
+ className: handClass(),
1694
+ drag: dragRow,
1695
+ handle: '.drag-row-btn',
1696
+ list: handleRowData(),
1697
+ onDrag: onDragRowCom,
1698
+ onChoose: onChoose
1603
1699
  }, {
1604
1700
  children: handContent()
1605
1701
  }));
@@ -1771,7 +1867,7 @@ var TableElement = function TableElement(props) {
1771
1867
  }));
1772
1868
  };
1773
1869
 
1774
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-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 position: relative;\n}\n.paraui-v4-table.paraui-v4-table-draggable * {\n user-select: none !important;\n}\n.paraui-v4-table.paraui-v4-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-radio.paraui-v4-table-check .table-radio {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check.paraui-v4-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table .paraui-v4-empty {\n overflow: hidden;\n}\n.paraui-v4-table.paraui-v4-table-load.paraui-v4-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v4-table.paraui-v4-table-pagination > .table-contain {\n height: calc(100% - 36px);\n}\n.paraui-v4-table.paraui-v4-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-load-more.paraui-v4-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v4-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v4-table > .table-contain > table {\n height: auto;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-radio > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v4-table > .table-contain > table > .table-head > tr th {\n height: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box {\n height: 47px;\n line-height: 47px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgb(92, 101, 115);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v4-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-v4-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-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 3px;\n transform: scale(0.8);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n transform: scale(0.8);\n}\n.paraui-v4-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-v4-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-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-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(244, 66, 66);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v4-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-v4-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-v4-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-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums {\n width: 53px;\n cursor: pointer;\n border-left: 1px solid rgb(234, 236, 241);\n right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 20px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate {\n padding-right: 16px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(233, 239, 255);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 18px;\n color: rgb(92, 101, 115);\n transform: rotate(270deg);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(360deg);\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n position: sticky;\n bottom: 0;\n z-index: 10;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row > .td-element {\n position: relative;\n background: white;\n box-shadow: 4px -4px 8px 0px rgb(234, 236, 241);\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 20px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr.more-table-row td:first-child {\n padding-left: 8px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v4-table > .table-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(46, 101, 230);\n z-index: 1000;\n}\n.paraui-v4-table > .table-pagination {\n width: 100%;\n height: 36px;\n display: flex;\n align-items: flex-end;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right {\n display: flex;\n height: 32px;\n align-items: center;\n color: rgb(29, 33, 38);\n line-height: 32px;\n padding-left: 16px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .all-select {\n margin-left: 12px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .line {\n width: 1px;\n height: 12px;\n background-color: rgb(212, 218, 227);\n margin: 0 10px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .check-number {\n width: 65px;\n display: inline-block;\n}\n.paraui-v4-table > .table-pagination .table-pagination-com {\n flex: 1;\n justify-content: flex-end;\n}\n.paraui-v4-table > .table-pagination .refresh-btn {\n margin-left: 20px;\n}\n\n.paraui-v4-table-show-colums-popover > .component-popover-content {\n min-width: 200px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 10px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n padding-left: 8px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 14px);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled {\n cursor: inherit;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled > span {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled:hover {\n background: transparent;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n margin: 0;\n}\n\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 10px;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n padding-left: 8px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 14px);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n margin: 0;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select.filter-select-none {\n text-align: center;\n padding: 20px 0;\n}\n.paraui-v4-filter-popover.paraui-v4-filter-popover-default > .component-popover-content {\n min-width: 200px;\n}";
1870
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-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 position: relative;\n}\n.paraui-v4-table.paraui-v4-table-draggable * {\n user-select: none !important;\n}\n.paraui-v4-table.paraui-v4-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-radio.paraui-v4-table-check .table-radio {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check.paraui-v4-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table .paraui-v4-empty {\n overflow: hidden;\n}\n.paraui-v4-table.paraui-v4-table-load.paraui-v4-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v4-table.paraui-v4-table-pagination > .table-contain {\n height: calc(100% - 36px);\n}\n.paraui-v4-table.paraui-v4-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-load-more.paraui-v4-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v4-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v4-table > .table-contain > table {\n height: auto;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-radio > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v4-table > .table-contain > table > .table-head > tr th {\n height: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box {\n height: 47px;\n line-height: 47px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgb(92, 101, 115);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v4-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-v4-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-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 3px;\n transform: scale(0.8);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n transform: scale(0.8);\n}\n.paraui-v4-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-v4-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-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-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(244, 66, 66);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v4-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-v4-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-v4-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-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums {\n width: 53px;\n cursor: pointer;\n border-left: 1px solid rgb(234, 236, 241);\n right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .drag-row {\n width: 53px;\n cursor: pointer;\n border-left: 1px solid rgb(234, 236, 241);\n right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 20px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate {\n padding-right: 16px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate > .table-operate-box {\n display: flex;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate > .table-operate-box .drag-btn-line {\n display: inline-block;\n width: 1px;\n height: 12px;\n background-color: rgb(213, 224, 250);\n margin: 0 10px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate > .table-operate-box .drag-row-btn {\n cursor: all-scroll;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate > .table-operate-box .drag-row-btn svg {\n font-size: 18px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate.table-operate-center {\n padding-right: 8px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate.table-operate-center > .table-operate-box {\n justify-content: center;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(233, 239, 255);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 18px;\n color: rgb(92, 101, 115);\n transform: rotate(270deg);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(360deg);\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n position: sticky;\n bottom: 0;\n z-index: 10;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row > .td-element {\n position: relative;\n background: white;\n box-shadow: 4px -4px 8px 0px rgb(234, 236, 241);\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 20px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr.more-table-row td:first-child {\n padding-left: 8px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v4-table > .table-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(46, 101, 230);\n z-index: 1000;\n}\n.paraui-v4-table > .table-pagination {\n width: 100%;\n height: 36px;\n display: flex;\n align-items: flex-end;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right {\n display: flex;\n height: 32px;\n align-items: center;\n color: rgb(29, 33, 38);\n line-height: 32px;\n padding-left: 16px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .all-select {\n margin-left: 12px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .line {\n width: 1px;\n height: 12px;\n background-color: rgb(212, 218, 227);\n margin: 0 10px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .check-number {\n width: 65px;\n display: inline-block;\n}\n.paraui-v4-table > .table-pagination .table-pagination-com {\n flex: 1;\n justify-content: flex-end;\n}\n.paraui-v4-table > .table-pagination .refresh-btn {\n margin-left: 20px;\n}\n\n.paraui-v4-table-show-colums-popover > .component-popover-content {\n min-width: 200px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 10px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n padding-left: 8px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 14px);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled {\n cursor: inherit;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled > span {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled:hover {\n background: transparent;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n margin: 0;\n}\n\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 10px;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n padding-left: 8px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 14px);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n margin: 0;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select.filter-select-none {\n text-align: center;\n padding: 20px 0;\n}\n.paraui-v4-filter-popover.paraui-v4-filter-popover-default > .component-popover-content {\n min-width: 200px;\n}";
1775
1871
  styleInject(css_248z);
1776
1872
 
1777
1873
  const Table = propsInit => {
@@ -1823,6 +1919,7 @@ const Table = propsInit => {
1823
1919
  fixedTable = true,
1824
1920
  fixedColumn = true,
1825
1921
  dragColumn = true,
1922
+ dragRow,
1826
1923
  formatter,
1827
1924
  lineHeight = 48,
1828
1925
  lineWidth = 80,
@@ -1849,7 +1946,8 @@ const Table = propsInit => {
1849
1946
  onSort,
1850
1947
  onError,
1851
1948
  refreshInside = props.url ? true : false,
1852
- checkCount = props.check ? true : false
1949
+ checkCount = props.check ? true : false,
1950
+ onDragRow
1853
1951
  } = props;
1854
1952
  const intl = useFormatMessage('Table', localeJson);
1855
1953
  const dayNum = props.expirationTime ? props.expirationTime === 0 ? 100000000 : props.expirationTime : 7; // 过期天数
@@ -2378,8 +2476,8 @@ const Table = propsInit => {
2378
2476
  // 计算右边的差量
2379
2477
  const handRightWidth = () => {
2380
2478
  let rightNum = 0;
2381
- // 显示列宽度
2382
- if (props.showColumns === 'inside' || props.showColumns === undefined) {
2479
+ // 显示列宽度 拖拽
2480
+ if (props.showColumns === 'inside' || props.showColumns === undefined || props.dragRow) {
2383
2481
  rightNum += 53;
2384
2482
  }
2385
2483
  // 操作列
@@ -2388,10 +2486,13 @@ const Table = propsInit => {
2388
2486
  rightNum += getStringInNumber(props.operate.width);
2389
2487
  } else {
2390
2488
  if (props.operate.operateBtnRender) {
2391
- // 操作按钮组
2392
- rightNum += 105;
2489
+ if (props.dragRow) {
2490
+ rightNum += 145;
2491
+ } else {
2492
+ rightNum += rightNum === 0 ? 158 : 105;
2493
+ }
2393
2494
  } else {
2394
- rightNum += lineWidth; // 自定义操作
2495
+ rightNum += lineWidth; // 自定义操作, 补偿一个最小的宽度
2395
2496
  }
2396
2497
  }
2397
2498
  }
@@ -2828,6 +2929,22 @@ const Table = propsInit => {
2828
2929
  setDrag: true
2829
2930
  });
2830
2931
  };
2932
+ /** 数组交换位置 */
2933
+ const moveElementToNthPosition = (arr, indexA, indexB) => {
2934
+ // 使用splice方法移除索引a处的元素,并将其存储在变量element中
2935
+ const element = arr.splice(indexA, 1)[0];
2936
+ // 在索引n处插入被移除的元素
2937
+ arr.splice(indexB, 0, element);
2938
+ return arr;
2939
+ };
2940
+ /** 拖动行 */
2941
+ const onDragRowCom = evt => __awaiter(void 0, void 0, void 0, function* () {
2942
+ if (evt.oldIndex === evt.newIndex) return;
2943
+ const newList = [...(rowData || [])];
2944
+ moveElementToNthPosition(newList, evt.oldIndex, evt.newIndex);
2945
+ const bol = yield onDragRow === null || onDragRow === void 0 ? void 0 : onDragRow(newList, evt);
2946
+ if (!bol) setRowData(newList);
2947
+ });
2831
2948
  // 表格头部memo
2832
2949
  const TableHeadMemo = useMemo(() => {
2833
2950
  return jsx(TableHead$1, {
@@ -2856,12 +2973,13 @@ const Table = propsInit => {
2856
2973
  beyondText: beyondText,
2857
2974
  lineWidth: lineWidth,
2858
2975
  dragColumn: dragColumn,
2976
+ dragRow: dragRow,
2859
2977
  headDataConfig: headDataConfig,
2860
2978
  tipMaxWidth: tipMaxWidth,
2861
2979
  changeColumnWidth: changeColumnWidth,
2862
2980
  getPopupContainer: getPopupContainer
2863
2981
  });
2864
- }, [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, getPopupContainer, onSort, tipMaxWidth]);
2982
+ }, [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, dragRow, headDataConfig, getPopupContainer, onSort, tipMaxWidth]);
2865
2983
  // 表格内容memo
2866
2984
  const TableBodyMemo = useMemo(() => {
2867
2985
  return jsx(TableBody, {
@@ -2912,9 +3030,11 @@ const Table = propsInit => {
2912
3030
  onClickRow: onClickRow,
2913
3031
  rowClassMapping: rowClassMapping,
2914
3032
  tipMaxWidth: tipMaxWidth,
2915
- lineHeight: lineHeight
3033
+ lineHeight: lineHeight,
3034
+ dragRow: dragRow,
3035
+ onDragRow: onDragRowCom
2916
3036
  });
2917
- }, [showColumns, formatter, rowKey, rowData, headDataCom, expandable, check, radio, checkJson, sortTable, orderTypeArr, orderFieldArr, radioValue, disabledJson, align, tableCell, operate, setRadio, setCheck, totalDataJson, loadMore, loadMoreRender, onClickMore, total, pageCom, sizeCom, loadMoreUrl, expandValue, expandMultiple, disabledExpand, onExpand, defaultExpandAllRows, loadState, emptyProps, url, disabledArrStatus, posFixed, beyondText, fixedTable, fixedColumn, onClickRow, rowClassMapping, tipMaxWidth, lineHeight]);
3037
+ }, [showColumns, formatter, rowKey, rowData, headDataCom, expandable, check, radio, checkJson, sortTable, orderTypeArr, orderFieldArr, radioValue, disabledJson, align, tableCell, operate, setRadio, setCheck, totalDataJson, loadMore, loadMoreRender, onClickMore, total, pageCom, sizeCom, loadMoreUrl, expandValue, expandMultiple, disabledExpand, onExpand, defaultExpandAllRows, loadState, emptyProps, url, disabledArrStatus, posFixed, beyondText, fixedTable, fixedColumn, onClickRow, rowClassMapping, tipMaxWidth, lineHeight, dragRow, onDragRow]);
2918
3038
  // 表格分页memo
2919
3039
  const TablePaginationMemo = useMemo(() => {
2920
3040
  if (constData.current.page === null || constData.current.size === null || loadMore) return;
@@ -2968,6 +3088,7 @@ const Table = propsInit => {
2968
3088
  if (fixedTable) str += " ".concat($prefixCls, "-table-fixed-table");
2969
3089
  if (fixedColumn) str += " ".concat($prefixCls, "-table-fixed-cloumn");
2970
3090
  if (dragColumn) str += " ".concat($prefixCls, "-table-drag-column");
3091
+ if (dragRow) str += " ".concat($prefixCls, "-table-drag-row");
2971
3092
  if (check) str += " ".concat($prefixCls, "-table-check");
2972
3093
  if (radio) str += " ".concat($prefixCls, "-table-radio");
2973
3094
  if (expandable) str += " ".concat($prefixCls, "-table-expandable");
@@ -132,7 +132,7 @@ export interface TableHeadBodyPublicProps {
132
132
  showColumns?: 'inside' | false;
133
133
  /** 是否等分表格,出滚动条 */
134
134
  fixedTable?: boolean;
135
- /** 是否具有固定列 */
135
+ /** 是否具有固定列,必须要有宽度 */
136
136
  fixedColumn?: boolean;
137
137
  /** 排序字段 */
138
138
  orderFieldArr?: string[];
@@ -219,6 +219,8 @@ export interface TableProps extends TableHeadBodyPublicProps {
219
219
  serialNumber?: boolean | HeadDataProps;
220
220
  /** 是否拖动列 */
221
221
  dragColumn?: boolean;
222
+ /** 拖动行 */
223
+ dragRow?: boolean;
222
224
  /** 是否过滤 */
223
225
  filter?: boolean;
224
226
  /** 排序 多个/单个 */
@@ -293,6 +295,12 @@ export interface TableProps extends TableHeadBodyPublicProps {
293
295
  * 不返回或者返回false,走外部逻辑
294
296
  * */
295
297
  onError?: (err: any) => Promise<boolean | void> | (boolean | void);
298
+ /** 拖动行事件
299
+ * list: 排序后的数据
300
+ * evt: 拖拽信息,可拿到拖拽前后的数据对比
301
+ * 返回true,组件内部不设置
302
+ * */
303
+ onDragRow?: (list: any[], evt: any) => Promise<boolean | void> | (boolean | void);
296
304
  [key: string]: any;
297
305
  }
298
306
  export interface ExpandableRowItem {
@@ -7,5 +7,6 @@ declare const _default: {
7
7
  refresh: string;
8
8
  selectNum: string;
9
9
  selectAll: string;
10
+ dragSort: string;
10
11
  };
11
12
  export default _default;
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  refresh: string;
9
9
  selectNum: string;
10
10
  selectAll: string;
11
+ dragSort: string;
11
12
  };
12
13
  en: {
13
14
  empty: string;
@@ -18,6 +19,7 @@ declare const _default: {
18
19
  refresh: string;
19
20
  selectNum: string;
20
21
  selectAll: string;
22
+ dragSort: string;
21
23
  };
22
24
  };
23
25
  export default _default;
@@ -7,5 +7,6 @@ declare const _default: {
7
7
  refresh: string;
8
8
  selectNum: string;
9
9
  selectAll: string;
10
+ dragSort: string;
10
11
  };
11
12
  export default _default;
@@ -9,6 +9,11 @@ export interface TableBodyElementProps {
9
9
  className?: string;
10
10
  style?: React.CSSProperties;
11
11
  children?: any;
12
+ list?: any;
13
+ handle?: any;
14
+ drag?: boolean;
15
+ onDrag?: any;
16
+ onChoose?: any;
12
17
  [name: string]: any;
13
18
  }
14
19
  export declare const TableBodyElement: FunctionComponent<TableBodyElementProps>;
@@ -72,4 +72,8 @@ export interface TableBodyProps extends TableHeadBodyPublicProps {
72
72
  onClickRow?: (row: any, e: any) => void;
73
73
  /** 用来计算表格行数 */
74
74
  lineHeight?: number;
75
+ /** 拖动行 */
76
+ dragRow?: boolean;
77
+ /** 拖动行事件 */
78
+ onDragRow?: (evt: any) => void;
75
79
  }
@@ -10,6 +10,8 @@ import { DragResultProps } from './thElement';
10
10
  export interface TableHeadProps extends TableHeadBodyPublicProps {
11
11
  /** 是否拖动列 */
12
12
  dragColumn?: boolean;
13
+ /** 拖动行 */
14
+ dragRow?: boolean;
13
15
  /** 表格每列没设置宽度的默认宽度, 默认80 */
14
16
  lineWidth?: number;
15
17
  /** 排序触发事件 property: 属性名 */