@para-ui/core 4.0.31 → 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 (45) hide show
  1. package/AutoButton/index.js +2 -2
  2. package/Card/index.js +2 -2
  3. package/CollapseLayout/index.js +1 -1
  4. package/ComboSelect/index.js +3 -0
  5. package/DynamicMultiBox/index.js +1 -1
  6. package/Form/index.js +4 -1
  7. package/FormItem/index.js +4 -1
  8. package/InputCode/index.d.ts +82 -0
  9. package/InputCode/index.js +392 -0
  10. package/InputCode/inputCodeCard/index.d.ts +10 -0
  11. package/InputCode/inputCodeInput/index.d.ts +10 -0
  12. package/InputCode/lang/en_US.d.ts +7 -0
  13. package/InputCode/lang/index.d.ts +15 -0
  14. package/InputCode/lang/zh_CN.d.ts +7 -0
  15. package/PopConfirm/index.js +2 -2
  16. package/Querying/index.js +4 -4
  17. package/README.md +10 -0
  18. package/Select/index.js +2 -2
  19. package/SortBox/index.js +24 -4
  20. package/Table/index.js +149 -29
  21. package/Table/interface.d.ts +9 -1
  22. package/Table/lang/en_US.d.ts +1 -0
  23. package/Table/lang/index.d.ts +2 -0
  24. package/Table/lang/zh_CN.d.ts +1 -0
  25. package/Table/tableBodyElement/index.d.ts +5 -0
  26. package/Table/tableBodyInterface.d.ts +4 -0
  27. package/Table/tableHeadInterface.d.ts +2 -0
  28. package/index.d.ts +2 -0
  29. package/index.js +2 -1
  30. package/locale/en-US.d.ts +7 -0
  31. package/locale/index.d.ts +14 -0
  32. package/locale/index.js +16 -2
  33. package/locale/zh-CN.d.ts +7 -0
  34. package/package.json +1 -1
  35. package/umd/AutoButton.js +5 -5
  36. package/umd/CollapseLayout.js +1 -1
  37. package/umd/ComboSelect.js +19 -7
  38. package/umd/DynamicMultiBox.js +6 -6
  39. package/umd/Form.js +19 -7
  40. package/umd/FormItem.js +19 -7
  41. package/umd/InputCode.js +43 -0
  42. package/umd/SortBox.js +2 -2
  43. package/umd/Table.js +19 -7
  44. package/umd/locale.js +1 -1
  45. /package/_verture/{index-3795d730.js → index-e229330e.js} +0 -0
package/Table/index.js CHANGED
@@ -17,9 +17,11 @@ 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
19
  import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
20
+ import { d as dist } from '../_verture/index-c8cb6751.js';
20
21
  import { Radio } from '../Radio/index.js';
21
22
  import OperateBtn from '../OperateBtn/index.js';
22
23
  import Down from '@para-ui/icons/Down';
24
+ import Drag from '@para-ui/icons/Drag';
23
25
  import Refresh from '@para-ui/icons/Refresh';
24
26
  import { Pagination } from '../Pagination/index.js';
25
27
  import { Loading } from '../Loading/index.js';
@@ -38,6 +40,7 @@ import '../_verture/index-bde7aabe.js';
38
40
  import 'rc-dropdown';
39
41
  import 'dayjs';
40
42
  import '../_verture/index-ca413216.js';
43
+ import '../_verture/sortable.esm-76fe46a4.js';
41
44
  import '@para-ui/icons/More';
42
45
  import '../PopConfirm/index.js';
43
46
  import '@para-ui/icons/CheckCircleF';
@@ -217,7 +220,7 @@ var TrElement = function TrElement(props) {
217
220
  }));
218
221
  };
219
222
 
220
- 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}";
221
224
  styleInject(css_248z$5);
222
225
 
223
226
  var ThElement = function ThElement(props) {
@@ -340,7 +343,8 @@ var en = {
340
343
  loadMore: 'Load more',
341
344
  refresh: 'Refresh',
342
345
  selectNum: 'Selected {num} items',
343
- selectAll: 'Select All'
346
+ selectAll: 'Select All',
347
+ dragSort: 'Drag Sort'
344
348
  };
345
349
 
346
350
  var zh = {
@@ -351,7 +355,8 @@ var zh = {
351
355
  loadMore: '加载更多',
352
356
  refresh: '刷新',
353
357
  selectNum: '已选{num}项',
354
- selectAll: '全选'
358
+ selectAll: '全选',
359
+ dragSort: '拖动排序'
355
360
  };
356
361
 
357
362
  var localeJson = {
@@ -388,6 +393,7 @@ var TableHead$1 = function TableHead(props) {
388
393
  beyondText = props.beyondText,
389
394
  lineWidth = props.lineWidth,
390
395
  dragColumn = props.dragColumn,
396
+ dragRow = props.dragRow,
391
397
  changeColumnWidth = props.changeColumnWidth,
392
398
  headDataConfig = props.headDataConfig,
393
399
  getPopupContainer = props.getPopupContainer,
@@ -885,6 +891,8 @@ var TableHead$1 = function TableHead(props) {
885
891
  var handCls = function handCls() {
886
892
  var str = 'table-operate';
887
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';
888
896
  if (fixedColumn) {
889
897
  str += ' table-fixed-dom-right';
890
898
  // 存在显示列,且没有右侧固定列
@@ -929,7 +937,7 @@ var TableHead$1 = function TableHead(props) {
929
937
  }))
930
938
  }));
931
939
  }
932
- }, [operate, align, posFixed, showColumns, posFixed, beyondText, fixedColumn, tipMaxWidth]);
940
+ }, [operate, align, posFixed, showColumns, posFixed, beyondText, fixedColumn, tipMaxWidth, dragRow]);
933
941
  // 显示列弹窗内容
934
942
  var showListContent = function showListContent() {
935
943
  return jsxs("div", Object.assign({
@@ -1007,6 +1015,23 @@ var TableHead$1 = function TableHead(props) {
1007
1015
  }))
1008
1016
  }));
1009
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]);
1010
1035
  // 处理class
1011
1036
  var handClass = function handClass() {
1012
1037
  var str = 'table-head';
@@ -1020,7 +1045,7 @@ var TableHead$1 = function TableHead(props) {
1020
1045
  className: handClass()
1021
1046
  }, {
1022
1047
  children: jsxs(TrElement, {
1023
- children: [TableCheckMemo, TableRadioMemo, TableExpandableMemo, TableContentMemo, TableOperateMemo, TableShowList]
1048
+ children: [TableCheckMemo, TableRadioMemo, TableExpandableMemo, TableContentMemo, TableOperateMemo, TableShowList, TbaleDragRow]
1024
1049
  })
1025
1050
  }));
1026
1051
  };
@@ -1032,12 +1057,32 @@ var TableBodyElement = function TableBodyElement(props) {
1032
1057
  var className = props.className,
1033
1058
  style = props.style,
1034
1059
  children = props.children,
1035
- 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"]);
1036
1066
  var handClass = function handClass() {
1037
1067
  var str = 'table-body-element';
1038
1068
  if (className) str += " ".concat(className);
1039
1069
  return str;
1040
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
+ }
1041
1086
  return jsx("tbody", Object.assign({
1042
1087
  className: handClass(),
1043
1088
  style: style
@@ -1123,7 +1168,9 @@ var TableBody = function TableBody(props) {
1123
1168
  onClickRow = props.onClickRow,
1124
1169
  rowClassMapping = props.rowClassMapping,
1125
1170
  tipMaxWidth = props.tipMaxWidth,
1126
- lineHeight = props.lineHeight;
1171
+ lineHeight = props.lineHeight,
1172
+ dragRow = props.dragRow,
1173
+ onDragRow = props.onDragRow;
1127
1174
  var _useState = useState(0),
1128
1175
  _useState2 = _slicedToArray(_useState, 2),
1129
1176
  expandableColSpan = _useState2[0],
@@ -1140,6 +1187,10 @@ var TableBody = function TableBody(props) {
1140
1187
  _useState8 = _slicedToArray(_useState7, 2),
1141
1188
  disabledExpandJson = _useState8[0],
1142
1189
  setDisabledExpand = _useState8[1]; // 禁用加减部分嵌套
1190
+ var _useState9 = useState(false),
1191
+ _useState10 = _slicedToArray(_useState9, 2),
1192
+ dragBol = _useState10[0],
1193
+ setDragBol = _useState10[1];
1143
1194
  var intl = useFormatMessage('Table', localeJson);
1144
1195
  // 默认是否展开所有
1145
1196
  useEffect(function () {
@@ -1462,7 +1513,7 @@ var TableBody = function TableBody(props) {
1462
1513
  if (formatter) text = formatter(row, item, row[item.name], index, rowIndex);
1463
1514
  var itemStyle = handStyle(item);
1464
1515
  // 存在显示列,最后一列占两格
1465
- if (showColumns === 'inside' && !operate && index === headData.length - 1) {
1516
+ if (showColumns === 'inside' && !operate && index === headData.length - 1 && !dragRow) {
1466
1517
  colSpan = 2;
1467
1518
  if (itemStyle.right) {
1468
1519
  itemStyle.right = '0px';
@@ -1482,15 +1533,15 @@ var TableBody = function TableBody(props) {
1482
1533
  })) : text
1483
1534
  }), item.name || index);
1484
1535
  });
1485
- }, [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]);
1486
1537
  // 操作栏useCallback
1487
1538
  var TableOperateUseCallback = useCallback(function (row, rowIndex) {
1488
- if (operate) {
1539
+ if (operate || dragRow) {
1489
1540
  var colSpan = 1;
1490
- if (showColumns === 'inside') colSpan = 2;
1541
+ if (showColumns === 'inside' && operate) colSpan = 2;
1491
1542
  var handOperate = function handOperate() {
1492
- if (operate.render) return operate.render(row);
1493
- 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) {
1494
1545
  var operateConfig = operate.operateBtnRender(row, rowIndex);
1495
1546
  return jsx(OperateBtn, Object.assign({}, operateConfig));
1496
1547
  }
@@ -1503,6 +1554,7 @@ var TableBody = function TableBody(props) {
1503
1554
  };
1504
1555
  var handCls = function handCls() {
1505
1556
  var str = 'table-operate';
1557
+ if (!operate) str += ' table-operate-center';
1506
1558
  if (fixedColumn) {
1507
1559
  str += ' table-fixed-dom-right';
1508
1560
  if (!(posFixed === null || posFixed === void 0 ? void 0 : posFixed.rightBol)) {
@@ -1512,15 +1564,35 @@ var TableBody = function TableBody(props) {
1512
1564
  return str;
1513
1565
  };
1514
1566
  return jsx(TdElement, Object.assign({
1515
- align: operate.align || align,
1567
+ align: (operate === null || operate === void 0 ? void 0 : operate.align) || align,
1516
1568
  className: handCls(),
1517
1569
  colSpan: colSpan,
1518
1570
  style: handStyle()
1519
1571
  }, {
1520
- 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
+ }))
1521
1593
  }));
1522
1594
  }
1523
- }, [operate, align, showColumns, posFixed, fixedColumn]);
1595
+ }, [operate, align, showColumns, posFixed, fixedColumn, dragRow, onDragRow, dragBol]);
1524
1596
  // 嵌套表格useCallback
1525
1597
  var TableExpandableContentUseCallback = useCallback(function (row) {
1526
1598
  var id = row[rowKey];
@@ -1586,21 +1658,44 @@ var TableBody = function TableBody(props) {
1586
1658
  }, index);
1587
1659
  })
1588
1660
  });
1589
- }, [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]);
1590
1662
  // 内容memo
1591
1663
  var TableBodyContentMemo = useMemo(function () {
1592
1664
  return jsxs(Fragment$1, {
1593
1665
  children: [TableBodySubjectContentMemo, MoreMemo]
1594
1666
  });
1595
- }, [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]);
1596
1668
  // 处理内容
1597
1669
  var handContent = function handContent() {
1598
1670
  // 无数据,且不再请求,显示暂无数据
1599
1671
  if (rowData.length === 0 && !loadState) return NodataMemo;
1600
1672
  return TableBodyContentMemo;
1601
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
+ };
1602
1692
  return jsx(TableBodyElement, Object.assign({
1603
- className: handClass()
1693
+ className: handClass(),
1694
+ drag: dragRow,
1695
+ handle: '.drag-row-btn',
1696
+ list: handleRowData(),
1697
+ onDrag: onDragRowCom,
1698
+ onChoose: onChoose
1604
1699
  }, {
1605
1700
  children: handContent()
1606
1701
  }));
@@ -1772,7 +1867,7 @@ var TableElement = function TableElement(props) {
1772
1867
  }));
1773
1868
  };
1774
1869
 
1775
- 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}";
1776
1871
  styleInject(css_248z);
1777
1872
 
1778
1873
  const Table = propsInit => {
@@ -1824,6 +1919,7 @@ const Table = propsInit => {
1824
1919
  fixedTable = true,
1825
1920
  fixedColumn = true,
1826
1921
  dragColumn = true,
1922
+ dragRow,
1827
1923
  formatter,
1828
1924
  lineHeight = 48,
1829
1925
  lineWidth = 80,
@@ -1850,7 +1946,8 @@ const Table = propsInit => {
1850
1946
  onSort,
1851
1947
  onError,
1852
1948
  refreshInside = props.url ? true : false,
1853
- checkCount = props.check ? true : false
1949
+ checkCount = props.check ? true : false,
1950
+ onDragRow
1854
1951
  } = props;
1855
1952
  const intl = useFormatMessage('Table', localeJson);
1856
1953
  const dayNum = props.expirationTime ? props.expirationTime === 0 ? 100000000 : props.expirationTime : 7; // 过期天数
@@ -2379,8 +2476,8 @@ const Table = propsInit => {
2379
2476
  // 计算右边的差量
2380
2477
  const handRightWidth = () => {
2381
2478
  let rightNum = 0;
2382
- // 显示列宽度
2383
- if (props.showColumns === 'inside' || props.showColumns === undefined) {
2479
+ // 显示列宽度 拖拽
2480
+ if (props.showColumns === 'inside' || props.showColumns === undefined || props.dragRow) {
2384
2481
  rightNum += 53;
2385
2482
  }
2386
2483
  // 操作列
@@ -2389,10 +2486,13 @@ const Table = propsInit => {
2389
2486
  rightNum += getStringInNumber(props.operate.width);
2390
2487
  } else {
2391
2488
  if (props.operate.operateBtnRender) {
2392
- // 操作按钮组
2393
- rightNum += 105;
2489
+ if (props.dragRow) {
2490
+ rightNum += 145;
2491
+ } else {
2492
+ rightNum += rightNum === 0 ? 158 : 105;
2493
+ }
2394
2494
  } else {
2395
- rightNum += lineWidth; // 自定义操作
2495
+ rightNum += lineWidth; // 自定义操作, 补偿一个最小的宽度
2396
2496
  }
2397
2497
  }
2398
2498
  }
@@ -2829,6 +2929,22 @@ const Table = propsInit => {
2829
2929
  setDrag: true
2830
2930
  });
2831
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
+ });
2832
2948
  // 表格头部memo
2833
2949
  const TableHeadMemo = useMemo(() => {
2834
2950
  return jsx(TableHead$1, {
@@ -2857,12 +2973,13 @@ const Table = propsInit => {
2857
2973
  beyondText: beyondText,
2858
2974
  lineWidth: lineWidth,
2859
2975
  dragColumn: dragColumn,
2976
+ dragRow: dragRow,
2860
2977
  headDataConfig: headDataConfig,
2861
2978
  tipMaxWidth: tipMaxWidth,
2862
2979
  changeColumnWidth: changeColumnWidth,
2863
2980
  getPopupContainer: getPopupContainer
2864
2981
  });
2865
- }, [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]);
2866
2983
  // 表格内容memo
2867
2984
  const TableBodyMemo = useMemo(() => {
2868
2985
  return jsx(TableBody, {
@@ -2913,9 +3030,11 @@ const Table = propsInit => {
2913
3030
  onClickRow: onClickRow,
2914
3031
  rowClassMapping: rowClassMapping,
2915
3032
  tipMaxWidth: tipMaxWidth,
2916
- lineHeight: lineHeight
3033
+ lineHeight: lineHeight,
3034
+ dragRow: dragRow,
3035
+ onDragRow: onDragRowCom
2917
3036
  });
2918
- }, [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]);
2919
3038
  // 表格分页memo
2920
3039
  const TablePaginationMemo = useMemo(() => {
2921
3040
  if (constData.current.page === null || constData.current.size === null || loadMore) return;
@@ -2969,6 +3088,7 @@ const Table = propsInit => {
2969
3088
  if (fixedTable) str += " ".concat($prefixCls, "-table-fixed-table");
2970
3089
  if (fixedColumn) str += " ".concat($prefixCls, "-table-fixed-cloumn");
2971
3090
  if (dragColumn) str += " ".concat($prefixCls, "-table-drag-column");
3091
+ if (dragRow) str += " ".concat($prefixCls, "-table-drag-row");
2972
3092
  if (check) str += " ".concat($prefixCls, "-table-check");
2973
3093
  if (radio) str += " ".concat($prefixCls, "-table-radio");
2974
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: 属性名 */
package/index.d.ts CHANGED
@@ -70,6 +70,8 @@ export { default as HelperText } from './HelperText';
70
70
  export * from './HelperText';
71
71
  export { default as Image } from './Image';
72
72
  export * from './Image';
73
+ export { default as InputCode } from './InputCode';
74
+ export * from './InputCode';
73
75
  export { default as InputLang } from './InputLang';
74
76
  export * from './InputLang';
75
77
  export { default as InputNumber } from './InputNumber';
package/index.js CHANGED
@@ -28,12 +28,13 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
28
28
  export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
29
29
  export { default as Empty } from './Empty/index.js';
30
30
  export { default as Form } from './Form/index.js';
31
- export { F as FormItem } from './_verture/index-3795d730.js';
31
+ export { F as FormItem } from './_verture/index-e229330e.js';
32
32
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-10f0c5aa.js';
33
33
  export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
34
34
  export { default as Help } from './Help/index.js';
35
35
  export { default as HelperText } from './HelperText/index.js';
36
36
  export { default as Image } from './Image/index.js';
37
+ export { InputCode } from './InputCode/index.js';
37
38
  export { InputLang } from './InputLang/index.js';
38
39
  export { InputNumber } from './InputNumber/index.js';
39
40
  export { default as Label } from './Label/index.js';
package/locale/en-US.d.ts CHANGED
@@ -173,6 +173,12 @@ declare const _default: {
173
173
  minValue: string;
174
174
  maxValue: string;
175
175
  };
176
+ InputCode: {
177
+ retrievedAgain: string;
178
+ reset: string;
179
+ getCode: string;
180
+ secondCountdown: string;
181
+ };
176
182
  Modal: {
177
183
  cancel: string;
178
184
  ok: string;
@@ -245,6 +251,7 @@ declare const _default: {
245
251
  refresh: string;
246
252
  selectNum: string;
247
253
  selectAll: string;
254
+ dragSort: string;
248
255
  };
249
256
  Tabs: {
250
257
  confirmDelete: string;