@para-ui/core 3.0.78 → 3.0.80

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.
@@ -4,6 +4,7 @@
4
4
  * @description 超出自适应盒子
5
5
  */
6
6
  import React, { FunctionComponent, ReactNode } from 'react';
7
+ import { TooltipPlacement } from "../Tooltip/interface";
7
8
  import './index.scss';
8
9
  export interface AutoBoxProps {
9
10
  /** 样式class */
@@ -28,6 +29,10 @@ export interface AutoBoxProps {
28
29
  onCloseMore?: () => void;
29
30
  /** 显示更多 */
30
31
  onShowMore?: (bol: boolean) => void;
32
+ /** 更多触发方式 */
33
+ trigger?: 'click' | 'hover';
34
+ /** 位置 */
35
+ placement?: TooltipPlacement;
31
36
  [name: string]: any;
32
37
  }
33
38
  export declare const AutoBox: FunctionComponent<AutoBoxProps>;
package/AutoBox/index.js CHANGED
@@ -122,7 +122,11 @@ var AutoBox = function AutoBox(props) {
122
122
  showNum = props.showNum,
123
123
  onCloseMore = props.onCloseMore,
124
124
  onShowMore = props.onShowMore,
125
- style = props.style;
125
+ style = props.style,
126
+ _props$trigger = props.trigger,
127
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
128
+ _props$placement = props.placement,
129
+ placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement;
126
130
  var _useState = useState('auto-box-' + UUID()),
127
131
  _useState2 = _slicedToArray(_useState, 1),
128
132
  classOne = _useState2[0]; // 唯一class
@@ -233,18 +237,28 @@ var AutoBox = function AutoBox(props) {
233
237
  /** 处理更多按钮 */
234
238
  var handMoreBtn = function handMoreBtn() {
235
239
  if (morePos !== null && list.length > morePos && !hideMore) {
240
+ var handContent = function handContent() {
241
+ if (moreCustomize) {
242
+ if (typeof moreCustomize === 'function') {
243
+ return moreCustomize(morePos);
244
+ }
245
+ return moreCustomize;
246
+ }
247
+ return jsx(More, {});
248
+ };
236
249
  return jsx(Popover, Object.assign({
237
250
  open: openMoreCom,
238
251
  content: handMoreDom(),
239
252
  overlayClassName: handClassPopover(),
240
- placement: "bottomLeft",
253
+ placement: placement,
254
+ trigger: trigger,
241
255
  onVisibleChange: onVisibleChange
242
256
  }, {
243
257
  children: jsx("div", Object.assign({
244
258
  className: "auto-box-more",
245
259
  ref: posDom
246
260
  }, {
247
- children: moreCustomize ? moreCustomize : jsx(More, {})
261
+ children: handContent()
248
262
  }))
249
263
  }));
250
264
  }
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
4
4
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
5
5
 
6
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-container {\n display: flex;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-container > .container-body {\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-top {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body {\n display: flex;\n overflow: hidden;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-body-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-body-right > .container-right {\n height: 100%;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-top {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body {\n display: flex;\n overflow: hidden;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body > .container-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-body > .container-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-trb {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-trb > .container-right {\n flex: 1;\n overflow: auto;\n}";
6
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-container {\n display: flex;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-container > .container-body {\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-top {\n flex: none;\n z-index: 1;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body {\n display: flex;\n overflow: hidden;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-body-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-body-right > .container-right {\n height: 100%;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-tlr > .container-body > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-top {\n flex: none;\n z-index: 1;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body {\n display: flex;\n overflow: hidden;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-tlrb > .container-body > .container-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-body > .container-right {\n flex: 1;\n overflow: auto;\n}\n.paraui-v3-container.paraui-v3-ltrb > .container-left {\n flex: none;\n}\n.paraui-v3-container.paraui-v3-trb {\n flex-direction: column;\n}\n.paraui-v3-container.paraui-v3-trb > .container-right {\n flex: 1;\n overflow: auto;\n}";
7
7
  styleInject(css_248z);
8
8
 
9
9
  // 通用布局容器
@@ -945,6 +945,7 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
945
945
  onAdd = props.onAdd,
946
946
  onFilter = props.onFilter,
947
947
  onDelete = props.onDelete,
948
+ deleteRender = props.deleteRender,
948
949
  onSort = props.onSort,
949
950
  _props$keepLastItem = props.keepLastItem,
950
951
  keepLastItem = _props$keepLastItem === void 0 ? true : _props$keepLastItem;
@@ -1229,7 +1230,7 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1229
1230
  return onDeleteEvent(rowIndex);
1230
1231
  }
1231
1232
  }, {
1232
- children: jsx(Delete, {})
1233
+ children: deleteRender ? deleteRender(rowIndex, item, valueList) : jsx(Delete, {})
1233
1234
  })), isSort && jsx("div", Object.assign({
1234
1235
  className: !showDeleteIcon || deleteDisable.includes(id) ? 'hidden-icon' : 'center-line'
1235
1236
  }, {
@@ -1245,8 +1246,8 @@ var DynamicMultiBox = function DynamicMultiBox(props) {
1245
1246
  }), id);
1246
1247
  })
1247
1248
  });
1248
- } else return null;
1249
- }, [valueList, isSort, isFilter, errors, fixedConfig, selectedConfig, keepLastItem]);
1249
+ }
1250
+ }, [valueList, isSort, isFilter, errors, fixedConfig, selectedConfig, keepLastItem, deleteRender]);
1250
1251
  /**
1251
1252
  * @desc 删除事件
1252
1253
  * */
@@ -90,6 +90,10 @@ export interface IMultiValueProps {
90
90
  * @param deleteItem 删除项
91
91
  */
92
92
  onDelete?: (valueList: IValueList[], errors: IErrors[]) => void;
93
+ /**
94
+ * 自定义删除
95
+ * */
96
+ deleteRender?: (index: number, item: IValueList, valueList: IValueList[]) => ReactNode;
93
97
  /**
94
98
  * @desc 筛选函数
95
99
  * @param name 当前筛选项的name
package/Form/index.js CHANGED
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-e56d852b.js';
6
+ import { F as FormItem, v as validate } from '../_verture/index-9f78d308.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
8
8
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
9
9
  import '../TextField/index.js';
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-e56d852b.js';
3
+ export { F as default } from '../_verture/index-9f78d308.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-66aa48a1.js';
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 版本: 3.0.80
2
+
3
+ para-ui/core@3.0.80 发布
4
+ 【容器-Container】增加top的层级
5
+ 【下拉框-Select】下拉输入模式,只有在safari浏览器且存在下拉浮层,输入框才延迟得到焦点
6
+
7
+ ## 版本: 3.0.79
8
+
9
+ para-ui/core@3.0.79 发布
10
+ 【表格-Table】表格支持tbody行高设置
11
+ 【表格-Table】表格修改左下角每页总数显示错误
12
+ 【超出自适应盒子-AutoBox】增加trigger参数,moreCustomize函数类型抛出超出下标
13
+ 【动态多值框-DynamicMultiBox】增加deleteRender参数
14
+
1
15
  ## 版本: 3.0.78
2
16
 
3
17
  para-ui/core@3.0.78 发布
package/Select/index.js CHANGED
@@ -199,6 +199,7 @@ var Select = function Select(props) {
199
199
  language = _React$useContext.language,
200
200
  locale = _React$useContext.locale;
201
201
  var intl = useFormatMessage('Select', localeJson);
202
+ constData.listCom = listCom;
202
203
  useEffect(function () {
203
204
  if (props.defaultValue !== undefined) {
204
205
  if (props.multiple) {
@@ -391,13 +392,20 @@ var Select = function Select(props) {
391
392
  // 输入框的到焦点
392
393
  var inputFocus = function inputFocus() {
393
394
  var inputDom = textDom && textDom.current;
394
- // 延迟为了解决safari浏览器,页面滚动问题
395
- clearTimeout(constData.inputFocusTimer);
396
- constData.inputFocusTimer = setTimeout(function () {
395
+ var userAgent = navigator.userAgent;
396
+ if (/Safari/.test(userAgent) && !/Chrome/.test(userAgent) && constData.listCom.length > 0) {
397
+ // 延迟为了解决safari浏览器,页面滚动问题
398
+ clearTimeout(constData.inputFocusTimer);
399
+ constData.inputFocusTimer = setTimeout(function () {
400
+ inputDom && inputDom.focus({
401
+ preventScroll: true
402
+ });
403
+ }, 800);
404
+ } else {
397
405
  inputDom && inputDom.focus({
398
406
  preventScroll: true
399
407
  });
400
- }, 800);
408
+ }
401
409
  };
402
410
  /**
403
411
  * 查找元素
package/Table/index.js CHANGED
@@ -1105,7 +1105,8 @@ var TableBody = function TableBody(props) {
1105
1105
  beyondText = props.beyondText,
1106
1106
  onClickRow = props.onClickRow,
1107
1107
  rowClassMapping = props.rowClassMapping,
1108
- tipMaxWidth = props.tipMaxWidth;
1108
+ tipMaxWidth = props.tipMaxWidth,
1109
+ lineHeight = props.lineHeight;
1109
1110
  var _useState = useState(0),
1110
1111
  _useState2 = _slicedToArray(_useState, 2),
1111
1112
  expandableColSpan = _useState2[0],
@@ -1549,6 +1550,9 @@ var TableBody = function TableBody(props) {
1549
1550
  return jsxs(Fragment$1, {
1550
1551
  children: [jsxs(TrElement, Object.assign({
1551
1552
  className: str,
1553
+ style: {
1554
+ height: lineHeight + 'px'
1555
+ },
1552
1556
  onClick: function onClick(e) {
1553
1557
  onClickRow && onClickRow(row, e);
1554
1558
  }
@@ -1558,13 +1562,13 @@ var TableBody = function TableBody(props) {
1558
1562
  }, index);
1559
1563
  })
1560
1564
  });
1561
- }, [rowData, rowKey, disabledJson, checkJson, radio, radioValue, expandable, expandableRow, tableCell, headData, align, operate, expandableColSpan, selectCheck, selectRadio, disabledExpandJson, onExpand, disabledArrStatus, showColumns, onClickRow, rowClassMapping, tipMaxWidth]);
1565
+ }, [rowData, rowKey, disabledJson, checkJson, radio, radioValue, expandable, expandableRow, tableCell, headData, align, operate, expandableColSpan, selectCheck, selectRadio, disabledExpandJson, onExpand, disabledArrStatus, showColumns, onClickRow, rowClassMapping, tipMaxWidth, lineHeight]);
1562
1566
  // 内容memo
1563
1567
  var TableBodyContentMemo = useMemo(function () {
1564
1568
  return jsxs(Fragment$1, {
1565
1569
  children: [TableBodySubjectContentMemo, MoreMemo]
1566
1570
  });
1567
- }, [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]);
1571
+ }, [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]);
1568
1572
  // 处理内容
1569
1573
  var handContent = function handContent() {
1570
1574
  // 无数据,且不再请求,显示暂无数据
@@ -1594,7 +1598,9 @@ var TableHead = function TableHead(props) {
1594
1598
  selectAll = props.selectAll,
1595
1599
  selectStatus = props.selectStatus,
1596
1600
  _props$checkNumber = props.checkNumber,
1597
- checkNumber = _props$checkNumber === void 0 ? 0 : _props$checkNumber;
1601
+ checkNumber = _props$checkNumber === void 0 ? 0 : _props$checkNumber,
1602
+ _props$currentPageTot = props.currentPageTotal,
1603
+ currentPageTotal = _props$currentPageTot === void 0 ? 0 : _props$currentPageTot;
1598
1604
  var intl = useFormatMessage('Table', localeJson);
1599
1605
  var _useState = useState(false),
1600
1606
  _useState2 = _slicedToArray(_useState, 2),
@@ -1660,7 +1666,7 @@ var TableHead = function TableHead(props) {
1660
1666
  }), jsxs("span", Object.assign({
1661
1667
  className: 'check-number'
1662
1668
  }, {
1663
- children: [checkNumber, " / ", currentRowsPerPage]
1669
+ children: [checkNumber, " / ", currentPageTotal]
1664
1670
  }))]
1665
1671
  }));
1666
1672
  };
@@ -1743,7 +1749,7 @@ var TableElement = function TableElement(props) {
1743
1749
  }));
1744
1750
  };
1745
1751
 
1746
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-table {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: white;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n position: relative;\n}\n.paraui-v3-table.paraui-v3-table-draggable * {\n user-select: none !important;\n}\n.paraui-v3-table.paraui-v3-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-radio.paraui-v3-table-check .table-radio {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check.paraui-v3-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v3-table.paraui-v3-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-no-data > .table-container > table .paraui-v3-empty {\n overflow: hidden;\n}\n.paraui-v3-table.paraui-v3-table-load.paraui-v3-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v3-table.paraui-v3-table-pagination > .table-contain {\n height: calc(100% - 60px);\n}\n.paraui-v3-table.paraui-v3-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-load-more.paraui-v3-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v3-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v3-table > .table-contain > table {\n height: auto;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-radio > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v3-table > .table-contain > table > .table-head > tr th {\n height: 50px;\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box {\n height: 49px;\n line-height: 49px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgba(46, 55, 67, 0.7);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span {\n width: 20px;\n height: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span:after {\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: rgb(235, 96, 84);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-filter > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 40px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums {\n width: 56px;\n cursor: pointer;\n border-left: 1px solid rgba(171, 176, 185, 0.12);\n right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 55px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 24px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr {\n height: 56px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(249, 250, 251);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(237, 241, 249);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n position: sticky;\n bottom: 0;\n z-index: 10;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(54, 102, 214);\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row > .td-element {\n position: relative;\n background: white;\n box-shadow: 4px -4px 8px 0px rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn tr.more-table-row td:first-child {\n padding-left: 8px;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v3-table > .table-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(54, 102, 214);\n z-index: 1000;\n}\n.paraui-v3-table > .table-pagination {\n width: 100%;\n height: 60px;\n padding-right: 10px;\n display: flex;\n align-items: flex-end;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right {\n display: flex;\n height: 32px;\n align-items: center;\n color: rgba(46, 55, 67, 0.7);\n line-height: 32px;\n padding-left: 16px;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right .all-select {\n margin-left: 12px;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right .line {\n width: 1px;\n height: 12px;\n background-color: rgba(171, 176, 185, 0.2);\n margin: 0 12px;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right .check-number {\n width: 65px;\n display: inline-block;\n}\n.paraui-v3-table > .table-pagination .table-pagination-com {\n flex: 1;\n justify-content: flex-end;\n}\n.paraui-v3-table > .table-pagination .refresh-btn {\n margin-left: 16px;\n}\n\n.paraui-v3-table-show-colums-popover > .component-popover-content {\n width: 200px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}\n\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover.paraui-v3-filter-popover-default > .component-popover-content {\n width: 200px;\n}";
1752
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-table {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: white;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n position: relative;\n}\n.paraui-v3-table.paraui-v3-table-draggable * {\n user-select: none !important;\n}\n.paraui-v3-table.paraui-v3-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-radio.paraui-v3-table-check .table-radio {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v3-table.paraui-v3-table-fixed-cloumn.paraui-v3-table-expandable.paraui-v3-table-check.paraui-v3-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v3-table.paraui-v3-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-no-data > .table-container > table .paraui-v3-empty {\n overflow: hidden;\n}\n.paraui-v3-table.paraui-v3-table-load.paraui-v3-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v3-table.paraui-v3-table-pagination > .table-contain {\n height: calc(100% - 60px);\n}\n.paraui-v3-table.paraui-v3-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v3-table.paraui-v3-table-load-more.paraui-v3-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v3-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v3-table > .table-contain > table {\n height: auto;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-radio > label {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v3-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v3-table > .table-contain > table > .table-head > tr th {\n height: 50px;\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box {\n height: 49px;\n line-height: 49px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n display: flex;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgba(46, 55, 67, 0.7);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span {\n width: 20px;\n height: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgb(227, 234, 247);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span:after {\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: rgb(235, 96, 84);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-filter > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 40px);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums {\n width: 56px;\n cursor: pointer;\n border-left: 1px solid rgba(171, 176, 185, 0.12);\n right: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 55px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 24px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v3-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(249, 250, 251);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(237, 241, 249);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n position: sticky;\n bottom: 0;\n z-index: 10;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(54, 102, 214);\n font-size: 14px;\n}\n.paraui-v3-table > .table-contain > table > .table-body .more-table-row > .td-element {\n position: relative;\n background: white;\n box-shadow: 4px -4px 8px 0px rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 16px;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn tr.more-table-row td:first-child {\n padding-left: 8px;\n}\n.paraui-v3-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v3-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v3-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v3-table > .table-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(54, 102, 214);\n z-index: 1000;\n}\n.paraui-v3-table > .table-pagination {\n width: 100%;\n height: 60px;\n padding-right: 10px;\n display: flex;\n align-items: flex-end;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right {\n display: flex;\n height: 32px;\n align-items: center;\n color: rgba(46, 55, 67, 0.7);\n line-height: 32px;\n padding-left: 16px;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right .all-select {\n margin-left: 12px;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right .line {\n width: 1px;\n height: 12px;\n background-color: rgba(171, 176, 185, 0.2);\n margin: 0 12px;\n}\n.paraui-v3-table > .table-pagination .table-pagination-right .check-number {\n width: 65px;\n display: inline-block;\n}\n.paraui-v3-table > .table-pagination .table-pagination-com {\n flex: 1;\n justify-content: flex-end;\n}\n.paraui-v3-table > .table-pagination .refresh-btn {\n margin-left: 16px;\n}\n\n.paraui-v3-table-show-colums-popover > .component-popover-content {\n width: 200px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}\n\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 8px;\n max-height: 224px;\n overflow-y: auto;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 36px;\n line-height: 36px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n color: rgb(46, 55, 67);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > label .checkbox-box-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 45px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n text-align: center;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n border: 0;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span {\n font-size: 14px;\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button > span > span svg {\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button:hover > span > span svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-filter-popover.paraui-v3-filter-popover-default > .component-popover-content {\n width: 200px;\n}";
1747
1753
  styleInject(css_248z);
1748
1754
 
1749
1755
  var Table = function Table(propsInit) {
@@ -1997,7 +2003,7 @@ var Table = function Table(propsInit) {
1997
2003
  } else {
1998
2004
  if (containerRef && containerRef.current) {
1999
2005
  var height = containerRef.current.clientHeight - 50;
2000
- if (props.loadMore) height -= 56;
2006
+ if (props.loadMore) height -= lineHeight;
2001
2007
  var num = Math.floor(height / lineHeight);
2002
2008
  var columnsNUmber = num < 1 ? size : num;
2003
2009
  if (sizeArr.indexOf(columnsNUmber) === -1) {
@@ -3009,9 +3015,10 @@ var Table = function Table(propsInit) {
3009
3015
  fixedTable: fixedTable,
3010
3016
  onClickRow: onClickRow,
3011
3017
  rowClassMapping: rowClassMapping,
3012
- tipMaxWidth: tipMaxWidth
3018
+ tipMaxWidth: tipMaxWidth,
3019
+ lineHeight: lineHeight
3013
3020
  });
3014
- }, [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]);
3021
+ }, [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]);
3015
3022
  // 表格分页memo
3016
3023
  var TablePaginationMemo = useMemo(function () {
3017
3024
  if (constData.current.page === null || constData.current.size === null || loadMore) return;
@@ -3032,9 +3039,10 @@ var Table = function Table(propsInit) {
3032
3039
  },
3033
3040
  selectStatus: headSelectStatus,
3034
3041
  selectAll: setAllCheck,
3035
- checkNumber: Object.keys(checkJson).length
3042
+ checkNumber: Object.keys(checkJson).length,
3043
+ currentPageTotal: rowData.length
3036
3044
  });
3037
- }, [total, pageCom, sizeCom, sizeArrCom, pagination, loadMore, autoPagination, paginationType, flippingArrow, refreshInside, checkCount, headSelectStatus, rowData, checkJson, disabledJson, totalDataJson]);
3045
+ }, [total, pageCom, sizeCom, sizeArrCom, pagination, loadMore, autoPagination, paginationType, flippingArrow, refreshInside, checkCount, headSelectStatus, rowData, checkJson, disabledJson, totalDataJson, rowData]);
3038
3046
  // 表格内容滚动
3039
3047
  var tableBoxScroll = function tableBoxScroll(e) {
3040
3048
  var dom = tableRef.current;
@@ -70,4 +70,6 @@ export interface TableBodyProps extends TableHeadBodyPublicProps {
70
70
  onRefresh?: () => void;
71
71
  /** 点击行 */
72
72
  onClickRow?: (row: any, e: any) => void;
73
+ /** 用来计算表格行数 */
74
+ lineHeight?: number;
73
75
  }
@@ -38,4 +38,6 @@ export interface TablePaginationProps {
38
38
  selectStatus?: SelectStatus;
39
39
  /** 选中个数 */
40
40
  checkNumber?: number;
41
+ /** 当前页面总数 */
42
+ currentPageTotal?: number;
41
43
  }
package/index.js CHANGED
@@ -22,7 +22,7 @@ export { D as Dropdown } from './_verture/index-77f9e0fb.js';
22
22
  export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
23
23
  export { default as Empty } from './Empty/index.js';
24
24
  export { default as Form } from './Form/index.js';
25
- export { F as FormItem } from './_verture/index-e56d852b.js';
25
+ export { F as FormItem } from './_verture/index-9f78d308.js';
26
26
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-20780c9a.js';
27
27
  export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
28
28
  export { default as Help } from './Help/index.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "3.0.78",
4
+ "version": "3.0.80",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",
package/umd/AutoBox.js CHANGED
@@ -40,4 +40,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
40
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
41
  PERFORMANCE OF THIS SOFTWARE.
42
42
  ***************************************************************************** */
43
- function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(o[n[r]]=t[n[r]])}return o}(t,["path","className","color","size","dataName","style"]);return(0,l.jsx)("svg",Object.assign({className:(o="paraui-icon",o+=" svg-icon",r&&(o+=" "+r),"primary"!==a&&"secondary"!==a&&"thirdary"!==a||(o+=" paraui-icon-"+a),u&&(o+=" paraui-icon-"+u),o),viewBox:"0 0 1024 1024","data-name":s,style:(e=Object.assign({},f),a&&"primary"!==a&&"secondary"!==a&&"thirdary"!==a&&(e.color=a),e)},m,{children:n}))},m=function(t){return(0,l.jsx)(f,Object.assign({dataName:"More",path:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"}),(0,l.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"}),(0,l.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"})]})},t))};i(43753);function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(n){var i=n.className,a=n.list,u=void 0===a?[]:a,p=n.popoverClassName,l=n.moreCustomize,f=n.anchorEl,d=n.hideMore,h=void 0!==d&&d,g=n.showNum,y=n.onCloseMore,b=n.onShowMore,w=n.style,x=v((0,t.useState)("auto-box-"+(0,r.UUID)()),1)[0],O=v((0,t.useState)(null),2),Z=O[0],E=O[1],C=v((0,t.useState)(!1),2),k=C[0],T=C[1],S=v((0,t.useState)({}),1)[0],P=(0,t.useRef)();(0,t.useEffect)((function(){void 0!==n.openMore&&T(n.openMore)}),[n.openMore]),(0,t.useEffect)((function(){if(void 0===n.showNum)return R(),window.addEventListener("resize",R),function(){window.removeEventListener("resize",R),clearTimeout(S.timer)}}),[u]),(0,t.useEffect)((function(){void 0!==g&&(E(g),window.removeEventListener("resize",R))}),[g]),(0,t.useEffect)((function(){null!==Z&&u.length>Z?b&&b(!0):b&&b(!1)}),[u,Z,b]);var j,M=function(t){if(t)return T(!0);_()},_=function(){T(!1),y&&y()},L=function(t){if(null!==t&&0!==t){void 0===t&&(t=u.length);var e=document.querySelector("."+x);if(e)if(e.scrollWidth>e.clientWidth){var o=Number(t)-1;E(o),L(o)}else u.length<=t&&_()}},R=function(){clearTimeout(S.timer),_(),S.timer=setTimeout((function(){E(u.length),L()}),100)},D=function(){var t=c.W+"-auto-box-popover";return p&&(t+=" "+p),t},A=function(){return e().createElement("div",{className:"auto-box-popover-content"},u&&u.map((function(o,n){return null!==Z&&Z>n?null:e().createElement(t.Fragment,{key:n},o)})))};return e().createElement("div",{className:(j=c.W+"-auto-box",x&&(j+=" "+x),i&&(j+=" "+i),j),style:w},u.map((function(o,n){return null!==Z&&Z<=n?null:e().createElement(t.Fragment,{key:n},o)})),function(){if(null!==Z&&u.length>Z&&!h)return e().createElement(o.default,{open:k,content:A(),overlayClassName:D(),placement:"bottomLeft",onVisibleChange:M},e().createElement("div",{className:"auto-box-more",ref:P},l||e().createElement(m,null)))}(),function(){if(f&&k)return e().createElement(s,{className:D(),anchorEl:f,onClose:_},A())}())},g=h}(),a}()}));
43
+ function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(o[n[r]]=t[n[r]])}return o}(t,["path","className","color","size","dataName","style"]);return(0,l.jsx)("svg",Object.assign({className:(o="paraui-icon",o+=" svg-icon",r&&(o+=" "+r),"primary"!==a&&"secondary"!==a&&"thirdary"!==a||(o+=" paraui-icon-"+a),u&&(o+=" paraui-icon-"+u),o),viewBox:"0 0 1024 1024","data-name":s,style:(e=Object.assign({},f),a&&"primary"!==a&&"secondary"!==a&&"thirdary"!==a&&(e.color=a),e)},m,{children:n}))},m=function(t){return(0,l.jsx)(f,Object.assign({dataName:"More",path:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{d:"M298.666667 490.666667A64 64 0 1 1 234.666667 426.666667 64 64 0 0 1 298.666667 490.666667"}),(0,l.jsx)("path",{d:"M568.96 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"}),(0,l.jsx)("path",{d:"M839.253333 490.666667a64 64 0 1 1-64-64 64 64 0 0 1 64 64"})]})},t))};i(43753);function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i=[],a=!0,c=!1;try{for(o=o.call(t);!(a=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h=function(n){var i=n.className,a=n.list,u=void 0===a?[]:a,p=n.popoverClassName,l=n.moreCustomize,f=n.anchorEl,d=n.hideMore,h=void 0!==d&&d,g=n.showNum,y=n.onCloseMore,b=n.onShowMore,w=n.style,x=n.trigger,O=void 0===x?"click":x,Z=n.placement,E=void 0===Z?"bottomLeft":Z,C=v((0,t.useState)("auto-box-"+(0,r.UUID)()),1)[0],k=v((0,t.useState)(null),2),T=k[0],S=k[1],P=v((0,t.useState)(!1),2),j=P[0],M=P[1],_=v((0,t.useState)({}),1)[0],L=(0,t.useRef)();(0,t.useEffect)((function(){void 0!==n.openMore&&M(n.openMore)}),[n.openMore]),(0,t.useEffect)((function(){if(void 0===n.showNum)return z(),window.addEventListener("resize",z),function(){window.removeEventListener("resize",z),clearTimeout(_.timer)}}),[u]),(0,t.useEffect)((function(){void 0!==g&&(S(g),window.removeEventListener("resize",z))}),[g]),(0,t.useEffect)((function(){null!==T&&u.length>T?b&&b(!0):b&&b(!1)}),[u,T,b]);var R,D=function(t){if(t)return M(!0);A()},A=function(){M(!1),y&&y()},N=function(t){if(null!==t&&0!==t){void 0===t&&(t=u.length);var e=document.querySelector("."+C);if(e)if(e.scrollWidth>e.clientWidth){var o=Number(t)-1;S(o),N(o)}else u.length<=t&&A()}},z=function(){clearTimeout(_.timer),A(),_.timer=setTimeout((function(){S(u.length),N()}),100)},H=function(){var t=c.W+"-auto-box-popover";return p&&(t+=" "+p),t},B=function(){return e().createElement("div",{className:"auto-box-popover-content"},u&&u.map((function(o,n){return null!==T&&T>n?null:e().createElement(t.Fragment,{key:n},o)})))};return e().createElement("div",{className:(R=c.W+"-auto-box",C&&(R+=" "+C),i&&(R+=" "+i),R),style:w},u.map((function(o,n){return null!==T&&T<=n?null:e().createElement(t.Fragment,{key:n},o)})),function(){if(null!==T&&u.length>T&&!h){return e().createElement(o.default,{open:j,content:B(),overlayClassName:H(),placement:E,trigger:O,onVisibleChange:D},e().createElement("div",{className:"auto-box-more",ref:L},l?"function"==typeof l?l(T):l:e().createElement(m,null)))}}(),function(){if(f&&j)return e().createElement(s,{className:H(),anchorEl:f,onClose:A},B())}())},g=h}(),a}()}));