linkmore-design 1.0.82 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Form/style/index.d.ts +0 -3
- package/dist/LmEditTable/EditTable.d.ts +6 -0
- package/dist/LmEditTable/util.d.ts +1 -0
- package/dist/LmTable/components/customRenderEmpty.d.ts +2 -0
- package/dist/LmTable/demos/virtual.d.ts +2 -0
- package/dist/LmTable/util.d.ts +16 -0
- package/dist/LmTable/virTual/VirtualRow.d.ts +6 -0
- package/dist/LmTable/virTual/VirtualTable.d.ts +3 -0
- package/dist/LmTable/virTual/VirtualWrapper.d.ts +3 -0
- package/dist/LmTable/virTual/context.d.ts +13 -0
- package/dist/LmTable/virTual/index.d.ts +4 -0
- package/dist/TestTable/LmBox.d.ts +12 -0
- package/dist/TestTable/demos/basic.d.ts +6 -0
- package/dist/TestTable/index.d.ts +2 -0
- package/dist/TestTable/style/index.d.ts +1 -0
- package/dist/index.umd.js +764 -369
- package/dist/index.umd.min.js +3 -3
- package/es/Form/style/form.css +603 -0
- package/es/Form/style/grid.css +5185 -0
- package/es/Form/style/index.css +6 -1
- package/es/Form/style/index.d.ts +0 -3
- package/es/Form/style/index.js +0 -4
- package/es/Form/style/tooltip.css +275 -0
- package/es/LmEditTable/EditTable.d.ts +6 -0
- package/es/LmEditTable/EditTable.js +63 -81
- package/es/LmEditTable/sortableItemCol.js +6 -3
- package/es/LmEditTable/style/index.css +7 -0
- package/es/LmEditTable/util.d.ts +1 -0
- package/es/LmEditTable/util.js +5 -0
- package/es/LmTable/Table.js +308 -173
- package/es/LmTable/components/customRenderEmpty.d.ts +2 -0
- package/es/LmTable/components/customRenderEmpty.js +15 -0
- package/es/LmTable/components/sheelTableCell.js +14 -8
- package/es/LmTable/style/index.css +177 -152
- package/es/LmTable/util.js +105 -0
- package/es/LmTable/virTual/VirtualRow.d.ts +6 -0
- package/es/LmTable/virTual/VirtualRow.js +102 -0
- package/es/LmTable/virTual/VirtualTable.d.ts +3 -0
- package/es/LmTable/virTual/VirtualTable.js +52 -0
- package/es/LmTable/virTual/VirtualWrapper.d.ts +3 -0
- package/es/LmTable/virTual/VirtualWrapper.js +61 -0
- package/es/LmTable/virTual/context.d.ts +13 -0
- package/es/LmTable/virTual/context.js +54 -0
- package/es/LmTable/virTual/index.d.ts +4 -0
- package/es/LmTable/virTual/index.js +4 -0
- package/es/TestTable/LmBox.d.ts +12 -0
- package/es/TestTable/LmBox.js +6 -0
- package/es/TestTable/index.d.ts +2 -0
- package/es/TestTable/index.js +2 -0
- package/es/TestTable/style/index.css +10 -0
- package/es/TestTable/style/index.js +3 -0
- package/es/hooks/useFullscreen/index.js +23 -2
- package/lib/Form/style/form.css +603 -0
- package/lib/Form/style/grid.css +5185 -0
- package/lib/Form/style/index.css +6 -1
- package/lib/Form/style/index.d.ts +0 -3
- package/lib/Form/style/index.js +0 -6
- package/lib/Form/style/tooltip.css +275 -0
- package/lib/LmEditTable/EditTable.d.ts +6 -0
- package/lib/LmEditTable/EditTable.js +64 -80
- package/lib/LmEditTable/sortableItemCol.js +6 -3
- package/lib/LmEditTable/style/index.css +7 -0
- package/lib/LmEditTable/util.d.ts +1 -0
- package/lib/LmEditTable/util.js +12 -0
- package/lib/LmTable/Table.js +308 -173
- package/lib/LmTable/components/customRenderEmpty.d.ts +2 -0
- package/lib/LmTable/components/customRenderEmpty.js +25 -0
- package/lib/LmTable/components/sheelTableCell.js +14 -8
- package/lib/LmTable/style/index.css +177 -152
- package/lib/LmTable/util.js +105 -0
- package/lib/LmTable/virTual/VirtualRow.d.ts +6 -0
- package/lib/LmTable/virTual/VirtualRow.js +115 -0
- package/lib/LmTable/virTual/VirtualTable.d.ts +3 -0
- package/lib/LmTable/virTual/VirtualTable.js +69 -0
- package/lib/LmTable/virTual/VirtualWrapper.d.ts +3 -0
- package/lib/LmTable/virTual/VirtualWrapper.js +74 -0
- package/lib/LmTable/virTual/context.d.ts +13 -0
- package/lib/LmTable/virTual/context.js +64 -0
- package/lib/LmTable/virTual/index.d.ts +4 -0
- package/lib/LmTable/virTual/index.js +31 -0
- package/lib/TestTable/LmBox.d.ts +12 -0
- package/lib/TestTable/LmBox.js +17 -0
- package/lib/TestTable/index.d.ts +2 -0
- package/lib/TestTable/index.js +13 -0
- package/lib/TestTable/style/index.css +10 -0
- package/lib/TestTable/style/index.js +3 -0
- package/lib/hooks/useFullscreen/index.js +23 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -239604,7 +239604,9 @@
|
|
|
239604
239604
|
_ref$isRightEnd = _ref.isRightEnd,
|
|
239605
239605
|
isRightEnd = _ref$isRightEnd === void 0 ? false : _ref$isRightEnd,
|
|
239606
239606
|
_ref$isEditing = _ref.isEditing,
|
|
239607
|
-
isEditing = _ref$isEditing === void 0 ? false : _ref$isEditing
|
|
239607
|
+
isEditing = _ref$isEditing === void 0 ? false : _ref$isEditing,
|
|
239608
|
+
_ref$isVaildCommit = _ref.isVaildCommit,
|
|
239609
|
+
isVaildCommit = _ref$isVaildCommit === void 0 ? false : _ref$isVaildCommit;
|
|
239608
239610
|
|
|
239609
239611
|
var _useState = React.useState((record === null || record === void 0 ? void 0 : record[col === null || col === void 0 ? void 0 : col.dataIndex]) || ''),
|
|
239610
239612
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -239612,8 +239614,8 @@
|
|
|
239612
239614
|
setValue = _useState2[1];
|
|
239613
239615
|
|
|
239614
239616
|
var valueRef = React.useRef((record === null || record === void 0 ? void 0 : record[col === null || col === void 0 ? void 0 : col.dataIndex]) || '');
|
|
239617
|
+
var endCellRef = React.useRef(null);
|
|
239615
239618
|
useUpdateEffect(function () {
|
|
239616
|
-
console.log(value, '----changeValue');
|
|
239617
239619
|
valueRef.current = value;
|
|
239618
239620
|
}, [value]);
|
|
239619
239621
|
useUpdateEffect(function () {
|
|
@@ -239627,7 +239629,10 @@
|
|
|
239627
239629
|
if (e.button === 2) {
|
|
239628
239630
|
console.log('点击了右键');
|
|
239629
239631
|
} else if (!(col === null || col === void 0 ? void 0 : col.disableEvents)) {
|
|
239630
|
-
|
|
239632
|
+
var _endCellRef$current, _endCellRef$current2;
|
|
239633
|
+
|
|
239634
|
+
console.log(endCellRef === null || endCellRef === void 0 ? void 0 : (_endCellRef$current = endCellRef.current) === null || _endCellRef$current === void 0 ? void 0 : _endCellRef$current.contains(e.target), '点击了快速选择键');
|
|
239635
|
+
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(rowIndex, colIndex, e, !!(endCellRef === null || endCellRef === void 0 ? void 0 : (_endCellRef$current2 = endCellRef.current) === null || _endCellRef$current2 === void 0 ? void 0 : _endCellRef$current2.contains(e.target)));
|
|
239631
239636
|
}
|
|
239632
239637
|
};
|
|
239633
239638
|
/** 鼠标右键 */
|
|
@@ -239692,17 +239697,18 @@
|
|
|
239692
239697
|
var renderViewer = children;
|
|
239693
239698
|
var content = renderComponent() || renderEditor() || renderViewer;
|
|
239694
239699
|
return /*#__PURE__*/React__default['default'].createElement("td", _objectSpread(_objectSpread({}, clearProps), {}, {
|
|
239695
|
-
style:
|
|
239696
|
-
|
|
239697
|
-
},
|
|
239698
|
-
className: classnames(sd && selectIng && 'selected', isEnd && 'end', isRightEnd && 'right_end', isEditing && 'editing'),
|
|
239700
|
+
// style={{ userSelect: 'none' }}
|
|
239701
|
+
className: classnames('unselection', sd && selectIng && 'selected', isEnd && 'end', isRightEnd && 'right_end', isEditing && 'editing', isVaildCommit && 'commiting'),
|
|
239699
239702
|
onMouseDown: handleMouseDown,
|
|
239700
239703
|
onMouseOver: handleMouseOver,
|
|
239701
239704
|
onContextMenu: handleContextMenu,
|
|
239702
239705
|
onDoubleClick: handleDoubleClick,
|
|
239703
239706
|
// onKeyUp={onKeyUp}
|
|
239704
239707
|
key: "".concat(rowIndex, "_").concat(colIndex)
|
|
239705
|
-
}), content
|
|
239708
|
+
}), content, isRightEnd && isEnd && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
239709
|
+
ref: endCellRef,
|
|
239710
|
+
className: 'lmtable_cell_end_icon'
|
|
239711
|
+
}));
|
|
239706
239712
|
};
|
|
239707
239713
|
|
|
239708
239714
|
var isArrayLike$2 = function (value) {
|
|
@@ -310520,6 +310526,40 @@
|
|
|
310520
310526
|
}, type === 'column' && /*#__PURE__*/React__default['default'].createElement(ColumnChart, _objectSpread({}, config)), type === 'line' && /*#__PURE__*/React__default['default'].createElement(LineChart, _objectSpread({}, config)), type === 'pie' && /*#__PURE__*/React__default['default'].createElement(PieChart, _objectSpread({}, config)));
|
|
310521
310527
|
};
|
|
310522
310528
|
|
|
310529
|
+
var CustomizeRenderEmpty = function CustomizeRenderEmpty() {
|
|
310530
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310531
|
+
className: "lm_table_empty"
|
|
310532
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
310533
|
+
className: "empty_img",
|
|
310534
|
+
style: {
|
|
310535
|
+
width: '130px',
|
|
310536
|
+
height: '80px'
|
|
310537
|
+
}
|
|
310538
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u6682\u65E0\u6570\u636E"));
|
|
310539
|
+
};
|
|
310540
|
+
|
|
310541
|
+
function checkIsSelectd(i, j) {
|
|
310542
|
+
var start = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
310543
|
+
var end = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
310544
|
+
var posX = j >= start.j && j <= end.j;
|
|
310545
|
+
var negX = j <= start.j && j >= end.j;
|
|
310546
|
+
var posY = i >= start.i && i <= end.i;
|
|
310547
|
+
var negY = i <= start.i && i >= end.i;
|
|
310548
|
+
return posX && posY || negX && posY || negX && negY || posX && negY;
|
|
310549
|
+
}
|
|
310550
|
+
function checkStatus(i, j, commiting) {
|
|
310551
|
+
var start = commiting.start,
|
|
310552
|
+
end = commiting.end;
|
|
310553
|
+
var maxi = Math.max(start === null || start === void 0 ? void 0 : start.i, end.i);
|
|
310554
|
+
var mini = Math.min(start === null || start === void 0 ? void 0 : start.i, end.i);
|
|
310555
|
+
var maxj = Math.max(start === null || start === void 0 ? void 0 : start.j, end.j);
|
|
310556
|
+
var minj = Math.min(start === null || start === void 0 ? void 0 : start.j, end.j);
|
|
310557
|
+
return {
|
|
310558
|
+
/** 是否有效拉伸 */
|
|
310559
|
+
isVaildCommit: mini <= i && maxi >= i || minj <= j && maxj >= j
|
|
310560
|
+
};
|
|
310561
|
+
}
|
|
310562
|
+
|
|
310523
310563
|
// 表格基础配置文件
|
|
310524
310564
|
// 行选择
|
|
310525
310565
|
var checkConfig = {
|
|
@@ -310553,13 +310593,250 @@
|
|
|
310553
310593
|
editConfig: editConfig
|
|
310554
310594
|
};
|
|
310555
310595
|
|
|
310556
|
-
var
|
|
310596
|
+
var TableContext$1 = /*#__PURE__*/React.createContext({
|
|
310597
|
+
state: null,
|
|
310598
|
+
dispatch: null,
|
|
310599
|
+
instance: {}
|
|
310600
|
+
});
|
|
310601
|
+
|
|
310602
|
+
var useStore = function useStore() {
|
|
310603
|
+
return React.useContext(TableContext$1);
|
|
310604
|
+
};
|
|
310605
|
+
|
|
310606
|
+
var initialState$1 = {
|
|
310607
|
+
// 行高度
|
|
310608
|
+
rowHeight: 0,
|
|
310609
|
+
columnsLen: 0,
|
|
310610
|
+
// 总行数
|
|
310611
|
+
totalLen: 0
|
|
310612
|
+
};
|
|
310613
|
+
|
|
310614
|
+
var reducer$4 = function reducer(state, action) {
|
|
310615
|
+
var totalLen = action.totalLen,
|
|
310616
|
+
columnsLen = action.columnsLen,
|
|
310617
|
+
rowHeight = action.rowHeight;
|
|
310618
|
+
|
|
310619
|
+
switch (action.type) {
|
|
310620
|
+
// 数据数量
|
|
310621
|
+
case 'changeTotalLen':
|
|
310622
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
310623
|
+
totalLen: totalLen
|
|
310624
|
+
});
|
|
310625
|
+
// 列数量
|
|
310626
|
+
|
|
310627
|
+
case 'changeColumnsLen':
|
|
310628
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
310629
|
+
columnsLen: columnsLen
|
|
310630
|
+
});
|
|
310631
|
+
// 初始化行高度
|
|
310632
|
+
|
|
310633
|
+
case 'initHeight':
|
|
310634
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
310635
|
+
rowHeight: rowHeight
|
|
310636
|
+
});
|
|
310637
|
+
|
|
310638
|
+
default:
|
|
310639
|
+
throw new Error();
|
|
310640
|
+
}
|
|
310641
|
+
};
|
|
310642
|
+
|
|
310643
|
+
var useRealive = function useRealive() {
|
|
310644
|
+
return React.useReducer(reducer$4, initialState$1);
|
|
310645
|
+
};
|
|
310646
|
+
|
|
310647
|
+
var VirtualTable = /*#__PURE__*/React__default['default'].memo(function (tableProps) {
|
|
310648
|
+
var _bodyRef$current, _bodyRef$current2;
|
|
310649
|
+
|
|
310650
|
+
var bodyRef = React.useRef(null);
|
|
310651
|
+
|
|
310652
|
+
var _useRealive = useRealive(),
|
|
310653
|
+
_useRealive2 = _slicedToArray$1(_useRealive, 2),
|
|
310654
|
+
state = _useRealive2[0],
|
|
310655
|
+
dispatch = _useRealive2[1]; // { totalSize, virtualItems }
|
|
310656
|
+
|
|
310657
|
+
|
|
310658
|
+
var rowVirtual = useVirtual({
|
|
310659
|
+
size: state.totalLen,
|
|
310660
|
+
// 绑定父节点
|
|
310661
|
+
parentRef: {
|
|
310662
|
+
current: bodyRef === null || bodyRef === void 0 ? void 0 : (_bodyRef$current = bodyRef.current) === null || _bodyRef$current === void 0 ? void 0 : _bodyRef$current.parentNode
|
|
310663
|
+
},
|
|
310664
|
+
estimateSize: React__default['default'].useCallback(function () {
|
|
310665
|
+
return state.rowHeight;
|
|
310666
|
+
}, [state.rowHeight]),
|
|
310667
|
+
overscan: 5
|
|
310668
|
+
});
|
|
310669
|
+
var columnVirtual = useVirtual({
|
|
310670
|
+
horizontal: true,
|
|
310671
|
+
size: state.columnsLen,
|
|
310672
|
+
parentRef: {
|
|
310673
|
+
current: bodyRef === null || bodyRef === void 0 ? void 0 : (_bodyRef$current2 = bodyRef.current) === null || _bodyRef$current2 === void 0 ? void 0 : _bodyRef$current2.parentNode
|
|
310674
|
+
},
|
|
310675
|
+
estimateSize: React__default['default'].useCallback(function () {
|
|
310676
|
+
return 200;
|
|
310677
|
+
}, [200]),
|
|
310678
|
+
overscan: 5
|
|
310679
|
+
});
|
|
310680
|
+
var instance = {
|
|
310681
|
+
rowVirtual: rowVirtual,
|
|
310682
|
+
columnVirtual: columnVirtual
|
|
310683
|
+
};
|
|
310684
|
+
return /*#__PURE__*/React__default['default'].createElement(TableContext$1.Provider, {
|
|
310685
|
+
value: {
|
|
310686
|
+
state: state,
|
|
310687
|
+
dispatch: dispatch,
|
|
310688
|
+
instance: instance
|
|
310689
|
+
}
|
|
310690
|
+
}, /*#__PURE__*/React__default['default'].createElement("table", _objectSpread({
|
|
310691
|
+
ref: bodyRef
|
|
310692
|
+
}, tableProps)));
|
|
310693
|
+
});
|
|
310694
|
+
|
|
310695
|
+
var _excluded$24 = ["children"];
|
|
310696
|
+
var VirtualWrapper = /*#__PURE__*/React__default['default'].memo(function (wrapperProps) {
|
|
310697
|
+
var _virtualItems$, _virtualItems;
|
|
310698
|
+
|
|
310699
|
+
var children = wrapperProps.children,
|
|
310700
|
+
resetProps = _objectWithoutProperties$1(wrapperProps, _excluded$24);
|
|
310701
|
+
|
|
310702
|
+
var _useStore = useStore(),
|
|
310703
|
+
state = _useStore.state,
|
|
310704
|
+
dispatch = _useStore.dispatch,
|
|
310705
|
+
instance = _useStore.instance;
|
|
310706
|
+
|
|
310707
|
+
var _instance$rowVirtual = instance.rowVirtual,
|
|
310708
|
+
virtualItems = _instance$rowVirtual.virtualItems,
|
|
310709
|
+
totalSize = _instance$rowVirtual.totalSize;
|
|
310710
|
+
var contents = React.useMemo(function () {
|
|
310711
|
+
return children[1];
|
|
310712
|
+
}, [children]);
|
|
310713
|
+
var contentsLen = React.useMemo(function () {
|
|
310714
|
+
var _contents$length;
|
|
310715
|
+
|
|
310716
|
+
return (_contents$length = contents === null || contents === void 0 ? void 0 : contents.length) !== null && _contents$length !== void 0 ? _contents$length : 0;
|
|
310717
|
+
}, [contents]);
|
|
310718
|
+
React.useEffect(function () {
|
|
310719
|
+
if (state.totalLen !== contentsLen) {
|
|
310720
|
+
dispatch({
|
|
310721
|
+
type: 'changeTotalLen',
|
|
310722
|
+
totalLen: contentsLen !== null && contentsLen !== void 0 ? contentsLen : 0
|
|
310723
|
+
});
|
|
310724
|
+
}
|
|
310725
|
+
}, [contentsLen, dispatch, state.totalLen]);
|
|
310726
|
+
var paddingTop = virtualItems.length > 0 ? (virtualItems === null || virtualItems === void 0 ? void 0 : (_virtualItems$ = virtualItems[0]) === null || _virtualItems$ === void 0 ? void 0 : _virtualItems$.start) || 0 : 0;
|
|
310727
|
+
var paddingBottom = virtualItems.length > 0 ? totalSize - ((virtualItems === null || virtualItems === void 0 ? void 0 : (_virtualItems = virtualItems[virtualItems.length - 1]) === null || _virtualItems === void 0 ? void 0 : _virtualItems.end) || 0) : 0;
|
|
310728
|
+
return /*#__PURE__*/React__default['default'].createElement("tbody", _objectSpread({}, resetProps), paddingTop > 0 && /*#__PURE__*/React__default['default'].createElement("tr", null, /*#__PURE__*/React__default['default'].createElement("td", {
|
|
310729
|
+
style: {
|
|
310730
|
+
height: "".concat(paddingTop, "px")
|
|
310731
|
+
}
|
|
310732
|
+
})), children[0], virtualItems.map(function (virtualRow) {
|
|
310733
|
+
return contents[virtualRow.index];
|
|
310734
|
+
}), paddingBottom > 0 && /*#__PURE__*/React__default['default'].createElement("tr", null, /*#__PURE__*/React__default['default'].createElement("td", {
|
|
310735
|
+
style: {
|
|
310736
|
+
height: "".concat(paddingBottom, "px")
|
|
310737
|
+
}
|
|
310738
|
+
})));
|
|
310739
|
+
});
|
|
310740
|
+
|
|
310741
|
+
var _excluded$25 = ["children"];
|
|
310742
|
+
var VirtualRow = /*#__PURE__*/React__default['default'].memo(function (_ref, ref) {
|
|
310743
|
+
var children = _ref.children,
|
|
310744
|
+
resetProps = _objectWithoutProperties$1(_ref, _excluded$25);
|
|
310745
|
+
|
|
310746
|
+
var _useStore = useStore(),
|
|
310747
|
+
state = _useStore.state,
|
|
310748
|
+
dispatch = _useStore.dispatch,
|
|
310749
|
+
instance = _useStore.instance;
|
|
310750
|
+
|
|
310751
|
+
var rowHeight = state.rowHeight,
|
|
310752
|
+
totalLen = state.totalLen;
|
|
310753
|
+
var virtualItems = instance.columnVirtual.virtualItems;
|
|
310754
|
+
var trRef = React.useRef(null); // 列长度
|
|
310755
|
+
|
|
310756
|
+
var columnsLen = React.useMemo(function () {
|
|
310757
|
+
var _children$length;
|
|
310758
|
+
|
|
310759
|
+
return (_children$length = children === null || children === void 0 ? void 0 : children.length) !== null && _children$length !== void 0 ? _children$length : 0;
|
|
310760
|
+
}, [children]);
|
|
310761
|
+
React.useEffect(function () {
|
|
310762
|
+
if (state.columnsLen !== columnsLen) {
|
|
310763
|
+
dispatch({
|
|
310764
|
+
type: 'changeColumnsLen',
|
|
310765
|
+
columnsLen: columnsLen !== null && columnsLen !== void 0 ? columnsLen : 0
|
|
310766
|
+
});
|
|
310767
|
+
}
|
|
310768
|
+
}, [columnsLen, dispatch, state.columnsLen]);
|
|
310769
|
+
React.useEffect(function () {
|
|
310770
|
+
var initHeight = function initHeight(tempRef) {
|
|
310771
|
+
var _tempRef$current;
|
|
310772
|
+
|
|
310773
|
+
if ((tempRef === null || tempRef === void 0 ? void 0 : (_tempRef$current = tempRef.current) === null || _tempRef$current === void 0 ? void 0 : _tempRef$current.offsetHeight) && !rowHeight && totalLen) {
|
|
310774
|
+
var _tempRef$current$offs, _tempRef$current2;
|
|
310775
|
+
|
|
310776
|
+
var tempRowHeight = (_tempRef$current$offs = tempRef === null || tempRef === void 0 ? void 0 : (_tempRef$current2 = tempRef.current) === null || _tempRef$current2 === void 0 ? void 0 : _tempRef$current2.offsetHeight) !== null && _tempRef$current$offs !== void 0 ? _tempRef$current$offs : 0;
|
|
310777
|
+
dispatch({
|
|
310778
|
+
type: 'initHeight',
|
|
310779
|
+
rowHeight: tempRowHeight
|
|
310780
|
+
});
|
|
310781
|
+
}
|
|
310782
|
+
};
|
|
310783
|
+
|
|
310784
|
+
initHeight(Object.prototype.hasOwnProperty.call(ref, 'current') ? ref : trRef);
|
|
310785
|
+
}, [trRef, dispatch, rowHeight, totalLen, ref]); // return {fixedLeft: [], fixedRight: [], columns: []}
|
|
310786
|
+
|
|
310787
|
+
var fixedColumns = React.useMemo(function () {
|
|
310788
|
+
return children === null || children === void 0 ? void 0 : children.reduce(function (pre, cur) {
|
|
310789
|
+
var _cur$props, _cur$props2;
|
|
310790
|
+
|
|
310791
|
+
if (typeof ((_cur$props = cur.props) === null || _cur$props === void 0 ? void 0 : _cur$props.fixLeft) === 'number') {
|
|
310792
|
+
pre.fixedLeft.push(cur);
|
|
310793
|
+
return pre;
|
|
310794
|
+
}
|
|
310795
|
+
|
|
310796
|
+
if (typeof ((_cur$props2 = cur.props) === null || _cur$props2 === void 0 ? void 0 : _cur$props2.fixRight) === 'number') {
|
|
310797
|
+
pre.fixedRight.push(cur);
|
|
310798
|
+
return pre;
|
|
310799
|
+
}
|
|
310800
|
+
|
|
310801
|
+
pre.columns.push(cur);
|
|
310802
|
+
return pre;
|
|
310803
|
+
}, {
|
|
310804
|
+
fixedLeft: [],
|
|
310805
|
+
fixedRight: [],
|
|
310806
|
+
columns: []
|
|
310807
|
+
});
|
|
310808
|
+
}, [children]); // 截取非固定列
|
|
310809
|
+
|
|
310810
|
+
var resetVirtualItems = React.useMemo(function () {
|
|
310811
|
+
var fixedLeft = fixedColumns.fixedLeft,
|
|
310812
|
+
columns = fixedColumns.columns;
|
|
310813
|
+
return virtualItems.slice(fixedLeft.length, fixedLeft.length + columns.length);
|
|
310814
|
+
}, [fixedColumns, virtualItems]); // 横线单元格合并
|
|
310815
|
+
|
|
310816
|
+
var colSpan = React.useMemo(function () {
|
|
310817
|
+
var _resetVirtualItems$;
|
|
310818
|
+
|
|
310819
|
+
var startIndex = (resetVirtualItems === null || resetVirtualItems === void 0 ? void 0 : (_resetVirtualItems$ = resetVirtualItems[0]) === null || _resetVirtualItems$ === void 0 ? void 0 : _resetVirtualItems$.index) || 0;
|
|
310820
|
+
return startIndex ? startIndex - fixedColumns.fixedLeft.length : startIndex;
|
|
310821
|
+
}, [fixedColumns, resetVirtualItems]);
|
|
310822
|
+
return /*#__PURE__*/React__default['default'].createElement("tr", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
310823
|
+
ref: Object.prototype.hasOwnProperty.call(ref, 'current') ? ref : trRef
|
|
310824
|
+
}), fixedColumns.fixedLeft, !!colSpan && /*#__PURE__*/React__default['default'].createElement("td", {
|
|
310825
|
+
colSpan: colSpan
|
|
310826
|
+
}), resetVirtualItems.map(function (virtualCol) {
|
|
310827
|
+
return children[virtualCol.index];
|
|
310828
|
+
}), fixedColumns.fixedRight);
|
|
310829
|
+
});
|
|
310830
|
+
|
|
310831
|
+
var _excluded$26 = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "groupInfo", "emptyProps", "columnKeys"],
|
|
310557
310832
|
_excluded2$u = ["className", "style"],
|
|
310558
310833
|
_excluded3$8 = ["onResize", "width", "onResizeStop"];
|
|
310559
310834
|
var Summary$1 = ProviderWarp.Summary;
|
|
310560
310835
|
|
|
310561
310836
|
var isEmpty$1 = function isEmpty(obj) {
|
|
310562
|
-
|
|
310837
|
+
var _Object$keys;
|
|
310838
|
+
|
|
310839
|
+
return ((_Object$keys = Object.keys(obj || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0;
|
|
310563
310840
|
};
|
|
310564
310841
|
|
|
310565
310842
|
var defaultParsePaste = function defaultParsePaste(str) {
|
|
@@ -310600,9 +310877,9 @@
|
|
|
310600
310877
|
}
|
|
310601
310878
|
};
|
|
310602
310879
|
var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
310603
|
-
var
|
|
310880
|
+
var columns = props.columns,
|
|
310881
|
+
dataSource = props.dataSource,
|
|
310604
310882
|
autoSize = props.autoSize,
|
|
310605
|
-
columns = props.columns,
|
|
310606
310883
|
rowClick = props.rowClick,
|
|
310607
310884
|
_onDoubleClick = props.onDoubleClick,
|
|
310608
310885
|
checkConfig = props.checkConfig,
|
|
@@ -310611,6 +310888,7 @@
|
|
|
310611
310888
|
hiddenPage = props.hiddenPage,
|
|
310612
310889
|
loading = props.loading,
|
|
310613
310890
|
_props$virtual = props.virtual,
|
|
310891
|
+
virtual = _props$virtual === void 0 ? false : _props$virtual,
|
|
310614
310892
|
_props$sortOpen = props.sortOpen,
|
|
310615
310893
|
sortOpen = _props$sortOpen === void 0 ? false : _props$sortOpen,
|
|
310616
310894
|
_props$colSortOpen = props.colSortOpen,
|
|
@@ -310634,7 +310912,8 @@
|
|
|
310634
310912
|
dataChange = props.dataChange,
|
|
310635
310913
|
groupInfo = props.groupInfo,
|
|
310636
310914
|
emptyProps = props.emptyProps,
|
|
310637
|
-
|
|
310915
|
+
columnKeys = props.columnKeys,
|
|
310916
|
+
resetProps = _objectWithoutProperties$1(props, _excluded$26);
|
|
310638
310917
|
|
|
310639
310918
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
310640
310919
|
rowKey = _resetProps$rowKey === void 0 ? 'id' : _resetProps$rowKey;
|
|
@@ -310682,7 +310961,8 @@
|
|
|
310682
310961
|
selecting: false,
|
|
310683
310962
|
forceEdit: false,
|
|
310684
310963
|
editing: {},
|
|
310685
|
-
clear: {}
|
|
310964
|
+
clear: {},
|
|
310965
|
+
commiting: {}
|
|
310686
310966
|
}),
|
|
310687
310967
|
_useState10 = _slicedToArray$1(_useState9, 2),
|
|
310688
310968
|
sheelStataus = _useState10[0],
|
|
@@ -310694,47 +310974,53 @@
|
|
|
310694
310974
|
selecting: false,
|
|
310695
310975
|
forceEdit: false,
|
|
310696
310976
|
editing: {},
|
|
310697
|
-
clear: {}
|
|
310977
|
+
clear: {},
|
|
310978
|
+
commiting: {}
|
|
310698
310979
|
});
|
|
310699
310980
|
|
|
310700
310981
|
var _useState11 = React.useState(false),
|
|
310701
310982
|
_useState12 = _slicedToArray$1(_useState11, 2),
|
|
310702
310983
|
selectIng = _useState12[0],
|
|
310703
|
-
|
|
310984
|
+
setSelectIng = _useState12[1];
|
|
310704
310985
|
|
|
310705
310986
|
var _useState13 = React.useState(false),
|
|
310706
310987
|
_useState14 = _slicedToArray$1(_useState13, 2),
|
|
310707
310988
|
editIng = _useState14[0],
|
|
310708
310989
|
setEditIng = _useState14[1];
|
|
310709
|
-
/** 右键菜单是否显示 */
|
|
310710
|
-
|
|
310711
310990
|
|
|
310712
310991
|
var _useState15 = React.useState(false),
|
|
310713
310992
|
_useState16 = _slicedToArray$1(_useState15, 2),
|
|
310714
|
-
|
|
310715
|
-
|
|
310993
|
+
commitIng = _useState16[0],
|
|
310994
|
+
setCommitIng = _useState16[1];
|
|
310995
|
+
/** 右键菜单是否显示 */
|
|
310996
|
+
|
|
310997
|
+
|
|
310998
|
+
var _useState17 = React.useState(false),
|
|
310999
|
+
_useState18 = _slicedToArray$1(_useState17, 2),
|
|
311000
|
+
contextMenuStatus = _useState18[0],
|
|
311001
|
+
setContextMenuStatus = _useState18[1];
|
|
310716
311002
|
/** 右键按钮的位置 */
|
|
310717
311003
|
|
|
310718
311004
|
|
|
310719
|
-
var
|
|
311005
|
+
var _useState19 = React.useState({
|
|
310720
311006
|
position: 'fixed',
|
|
310721
311007
|
left: 300,
|
|
310722
311008
|
top: 200
|
|
310723
311009
|
}),
|
|
310724
|
-
_useState18 = _slicedToArray$1(_useState17, 2),
|
|
310725
|
-
style = _useState18[0],
|
|
310726
|
-
setStyle = _useState18[1];
|
|
310727
|
-
|
|
310728
|
-
var _useState19 = React.useState(null),
|
|
310729
311010
|
_useState20 = _slicedToArray$1(_useState19, 2),
|
|
310730
|
-
|
|
310731
|
-
|
|
310732
|
-
|
|
311011
|
+
style = _useState20[0],
|
|
311012
|
+
setStyle = _useState20[1];
|
|
310733
311013
|
|
|
310734
|
-
var _useState21 = React.useState(
|
|
311014
|
+
var _useState21 = React.useState(null),
|
|
310735
311015
|
_useState22 = _slicedToArray$1(_useState21, 2),
|
|
310736
|
-
|
|
310737
|
-
|
|
311016
|
+
chartsModalStatus = _useState22[0],
|
|
311017
|
+
setChartsModalStatus = _useState22[1]; // 列设置
|
|
311018
|
+
|
|
311019
|
+
|
|
311020
|
+
var _useState23 = React.useState(false),
|
|
311021
|
+
_useState24 = _slicedToArray$1(_useState23, 2),
|
|
311022
|
+
columnsStateMap = _useState24[0],
|
|
311023
|
+
setColumnsStateMap = _useState24[1];
|
|
310738
311024
|
|
|
310739
311025
|
var SortableItem$1 = sortableElement(function (props) {
|
|
310740
311026
|
return /*#__PURE__*/React__default['default'].createElement("tr", props);
|
|
@@ -310771,20 +311057,7 @@
|
|
|
310771
311057
|
}
|
|
310772
311058
|
|
|
310773
311059
|
return groupBy(dataSource, groupInfo);
|
|
310774
|
-
}, [dataSource, groupInfo]);
|
|
310775
|
-
// let source = []
|
|
310776
|
-
// const deepChildren = (arr) => {
|
|
310777
|
-
// arr.forEach((item) => {
|
|
310778
|
-
// source.push(omit(item, 'children'))
|
|
310779
|
-
// if (item?.children && expandedRowKeys.includes(item.key)) {
|
|
310780
|
-
// deepChildren(item?.children)
|
|
310781
|
-
// }
|
|
310782
|
-
// })
|
|
310783
|
-
// }
|
|
310784
|
-
// deepChildren(groupDataSource)
|
|
310785
|
-
// return source
|
|
310786
|
-
// }, [groupDataSource, expandedRowKeys])
|
|
310787
|
-
|
|
311060
|
+
}, [dataSource, groupInfo]);
|
|
310788
311061
|
React.useEffect(function () {
|
|
310789
311062
|
var source = [];
|
|
310790
311063
|
|
|
@@ -310877,22 +311150,50 @@
|
|
|
310877
311150
|
var _shellStatusRef$curre = shellStatusRef.current,
|
|
310878
311151
|
start = _shellStatusRef$curre.start,
|
|
310879
311152
|
end = _shellStatusRef$curre.end,
|
|
310880
|
-
editing = _shellStatusRef$curre.editing
|
|
311153
|
+
editing = _shellStatusRef$curre.editing,
|
|
311154
|
+
commiting = _shellStatusRef$curre.commiting;
|
|
310881
311155
|
var maxi = Math.max(start === null || start === void 0 ? void 0 : start.i, end.i);
|
|
310882
311156
|
var mini = Math.min(start === null || start === void 0 ? void 0 : start.i, end.i);
|
|
310883
311157
|
var maxj = Math.max(start === null || start === void 0 ? void 0 : start.j, end.j);
|
|
310884
311158
|
var minj = Math.min(start === null || start === void 0 ? void 0 : start.j, end.j);
|
|
310885
|
-
var
|
|
310886
|
-
var negX = j <= start.j && j >= end.j;
|
|
310887
|
-
var posY = i >= start.i && i <= end.i;
|
|
310888
|
-
var negY = i <= start.i && i >= end.i;
|
|
311159
|
+
var isSelected = checkIsSelectd(i, j, start, end);
|
|
310889
311160
|
return {
|
|
310890
|
-
|
|
311161
|
+
/** 是否选中 */
|
|
311162
|
+
isSelected: isSelected,
|
|
311163
|
+
|
|
311164
|
+
/** 是否尾行 */
|
|
310891
311165
|
isEnd: i === maxi && j >= minj && j <= maxj,
|
|
311166
|
+
|
|
311167
|
+
/** 是否尾列 */
|
|
310892
311168
|
isRightEnd: j === maxj && i >= mini && i <= maxi,
|
|
310893
|
-
|
|
311169
|
+
|
|
311170
|
+
/** 是否在编辑中 */
|
|
311171
|
+
isEditing: (editing === null || editing === void 0 ? void 0 : editing.i) === i && (editing === null || editing === void 0 ? void 0 : editing.j) === j,
|
|
311172
|
+
|
|
311173
|
+
/** 是否有效拉伸 */
|
|
311174
|
+
isVaildCommit: isEmpty$1(commiting) ? false : isSelected && !checkIsSelectd(i, j, commiting === null || commiting === void 0 ? void 0 : commiting.start, commiting === null || commiting === void 0 ? void 0 : commiting.end)
|
|
310894
311175
|
};
|
|
310895
311176
|
};
|
|
311177
|
+
|
|
311178
|
+
var getSelectDatas = function getSelectDatas(start, end) {
|
|
311179
|
+
return range$1(start.i, end.i).map(function (i) {
|
|
311180
|
+
return range$1(start.j, end.j).map(function (j) {
|
|
311181
|
+
var _columns$j, _columns$j2;
|
|
311182
|
+
|
|
311183
|
+
var columnKey = (_columns$j = columns[j]) === null || _columns$j === void 0 ? void 0 : _columns$j.dataIndex;
|
|
311184
|
+
var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
|
|
311185
|
+
var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
|
|
311186
|
+
|
|
311187
|
+
if ((_columns$j2 = columns[j]) === null || _columns$j2 === void 0 ? void 0 : _columns$j2.render) {
|
|
311188
|
+
var _columns$j3, _columns$j3$render;
|
|
311189
|
+
|
|
311190
|
+
return (_columns$j3 = columns[j]) === null || _columns$j3 === void 0 ? void 0 : (_columns$j3$render = _columns$j3.render) === null || _columns$j3$render === void 0 ? void 0 : _columns$j3$render.call(_columns$j3, cell, dataItem, i);
|
|
311191
|
+
}
|
|
311192
|
+
|
|
311193
|
+
return cell;
|
|
311194
|
+
}).join('\t');
|
|
311195
|
+
}).join('\n');
|
|
311196
|
+
};
|
|
310896
311197
|
/** 复制功能 */
|
|
310897
311198
|
|
|
310898
311199
|
|
|
@@ -310902,27 +311203,11 @@
|
|
|
310902
311203
|
if (isEmpty$1((_shellStatusRef$curre2 = shellStatusRef.current) === null || _shellStatusRef$curre2 === void 0 ? void 0 : _shellStatusRef$curre2.editing)) {
|
|
310903
311204
|
var _e$clipboardData;
|
|
310904
311205
|
|
|
310905
|
-
e.preventDefault();
|
|
311206
|
+
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
310906
311207
|
var _shellStatusRef$curre3 = shellStatusRef.current,
|
|
310907
311208
|
start = _shellStatusRef$curre3.start,
|
|
310908
311209
|
end = _shellStatusRef$curre3.end;
|
|
310909
|
-
var text =
|
|
310910
|
-
return range$1(start.j, end.j).map(function (j) {
|
|
310911
|
-
var _columns$j, _columns$j2;
|
|
310912
|
-
|
|
310913
|
-
var columnKey = (_columns$j = columns[j]) === null || _columns$j === void 0 ? void 0 : _columns$j.dataIndex;
|
|
310914
|
-
var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
|
|
310915
|
-
var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
|
|
310916
|
-
|
|
310917
|
-
if ((_columns$j2 = columns[j]) === null || _columns$j2 === void 0 ? void 0 : _columns$j2.render) {
|
|
310918
|
-
var _columns$j3, _columns$j3$render;
|
|
310919
|
-
|
|
310920
|
-
return (_columns$j3 = columns[j]) === null || _columns$j3 === void 0 ? void 0 : (_columns$j3$render = _columns$j3.render) === null || _columns$j3$render === void 0 ? void 0 : _columns$j3$render.call(_columns$j3, cell, dataItem, i);
|
|
310921
|
-
}
|
|
310922
|
-
|
|
310923
|
-
return cell;
|
|
310924
|
-
}).join('\t');
|
|
310925
|
-
}).join('\n');
|
|
311210
|
+
var text = getSelectDatas(start, end);
|
|
310926
311211
|
|
|
310927
311212
|
if (window.clipboardData && window.clipboardData.setData) {
|
|
310928
311213
|
window.clipboardData.setData('Text', text);
|
|
@@ -310941,43 +311226,168 @@
|
|
|
310941
311226
|
};
|
|
310942
311227
|
|
|
310943
311228
|
var onMouseOver = function onMouseOver(i, j) {
|
|
310944
|
-
var _shellStatusRef$curre4
|
|
311229
|
+
var _shellStatusRef$curre4;
|
|
310945
311230
|
|
|
310946
|
-
if ((
|
|
310947
|
-
|
|
310948
|
-
|
|
310949
|
-
|
|
310950
|
-
|
|
310951
|
-
|
|
310952
|
-
|
|
310953
|
-
|
|
310954
|
-
|
|
310955
|
-
|
|
310956
|
-
|
|
310957
|
-
|
|
310958
|
-
|
|
311231
|
+
if (isEmpty$1(shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre4 = shellStatusRef.current) === null || _shellStatusRef$curre4 === void 0 ? void 0 : _shellStatusRef$curre4.commiting)) {
|
|
311232
|
+
var _shellStatusRef$curre5, _shellStatusRef$curre6;
|
|
311233
|
+
|
|
311234
|
+
if ((shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre5 = shellStatusRef.current) === null || _shellStatusRef$curre5 === void 0 ? void 0 : _shellStatusRef$curre5.selecting) && isEmpty$1(shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre6 = shellStatusRef.current) === null || _shellStatusRef$curre6 === void 0 ? void 0 : _shellStatusRef$curre6.editing)) {
|
|
311235
|
+
shellStatusRef.current = _objectSpread(_objectSpread({}, shellStatusRef.current), {}, {
|
|
311236
|
+
end: {
|
|
311237
|
+
i: i,
|
|
311238
|
+
j: j
|
|
311239
|
+
}
|
|
311240
|
+
});
|
|
311241
|
+
setSheelStatus(_objectSpread(_objectSpread({}, sheelStataus), {}, {
|
|
311242
|
+
end: {
|
|
311243
|
+
i: i,
|
|
311244
|
+
j: j
|
|
311245
|
+
}
|
|
311246
|
+
}));
|
|
311247
|
+
}
|
|
311248
|
+
} else {
|
|
311249
|
+
var _shellStatusRef$curre7, _checkStatus, _shellStatusRef$curre8;
|
|
311250
|
+
|
|
311251
|
+
if (!isEmpty$1((shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre7 = shellStatusRef.current) === null || _shellStatusRef$curre7 === void 0 ? void 0 : _shellStatusRef$curre7.commiting) || {}) && ((_checkStatus = checkStatus(i, j, shellStatusRef === null || shellStatusRef === void 0 ? void 0 : (_shellStatusRef$curre8 = shellStatusRef.current) === null || _shellStatusRef$curre8 === void 0 ? void 0 : _shellStatusRef$curre8.commiting)) === null || _checkStatus === void 0 ? void 0 : _checkStatus.isVaildCommit)) {
|
|
311252
|
+
shellStatusRef.current = _objectSpread(_objectSpread({}, shellStatusRef.current), {}, {
|
|
311253
|
+
end: {
|
|
311254
|
+
i: i,
|
|
311255
|
+
j: j
|
|
311256
|
+
}
|
|
311257
|
+
});
|
|
311258
|
+
setSheelStatus(_objectSpread(_objectSpread({}, sheelStataus), {}, {
|
|
311259
|
+
end: {
|
|
311260
|
+
i: i,
|
|
311261
|
+
j: j
|
|
311262
|
+
}
|
|
311263
|
+
}));
|
|
311264
|
+
}
|
|
310959
311265
|
}
|
|
310960
311266
|
};
|
|
310961
311267
|
/** sheel 表格 鼠标松开 */
|
|
310962
311268
|
|
|
310963
311269
|
|
|
310964
311270
|
var sheelOnMouseUp = function sheelOnMouseUp() {
|
|
310965
|
-
|
|
310966
|
-
|
|
310967
|
-
|
|
310968
|
-
|
|
310969
|
-
|
|
310970
|
-
|
|
310971
|
-
|
|
311271
|
+
var _shellStatusRef$curre9;
|
|
311272
|
+
|
|
311273
|
+
console.log('mouseup_start', shellStatusRef.current);
|
|
311274
|
+
|
|
311275
|
+
if (!isEmpty$1((_shellStatusRef$curre9 = shellStatusRef.current) === null || _shellStatusRef$curre9 === void 0 ? void 0 : _shellStatusRef$curre9.commiting)) {
|
|
311276
|
+
var _commiting$start, _commiting$end, _commiting$start2, _commiting$end2, _difference, _difference2, _obj$i;
|
|
311277
|
+
|
|
311278
|
+
var _shellStatusRef$curre10 = shellStatusRef.current,
|
|
311279
|
+
start = _shellStatusRef$curre10.start,
|
|
311280
|
+
end = _shellStatusRef$curre10.end,
|
|
311281
|
+
commiting = _shellStatusRef$curre10.commiting;
|
|
311282
|
+
var columnsKeysList = columns.map(function (item) {
|
|
311283
|
+
return item.dataIndex;
|
|
311284
|
+
});
|
|
311285
|
+
var rowtext = range$1(commiting === null || commiting === void 0 ? void 0 : commiting.start.i, commiting === null || commiting === void 0 ? void 0 : commiting.end.i).map(function (i) {
|
|
311286
|
+
return columnsKeysList.map(function (j) {
|
|
311287
|
+
var columnKey = j;
|
|
311288
|
+
var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
|
|
311289
|
+
var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
|
|
311290
|
+
return cell;
|
|
311291
|
+
});
|
|
311292
|
+
});
|
|
311293
|
+
var coltext = range$1(commiting === null || commiting === void 0 ? void 0 : commiting.start.i, commiting === null || commiting === void 0 ? void 0 : commiting.end.i).map(function (i) {
|
|
311294
|
+
return range$1(commiting === null || commiting === void 0 ? void 0 : commiting.start.j, commiting === null || commiting === void 0 ? void 0 : commiting.end.j).map(function (j) {
|
|
311295
|
+
var _columns$j4, _columns$j5;
|
|
311296
|
+
|
|
311297
|
+
var columnKey = (_columns$j4 = columns[j]) === null || _columns$j4 === void 0 ? void 0 : _columns$j4.dataIndex;
|
|
311298
|
+
var dataItem = (groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.length) ? deepDataSourceRef.current[i] : dataSource[i];
|
|
311299
|
+
var cell = dataItem === null || dataItem === void 0 ? void 0 : dataItem[columnKey];
|
|
311300
|
+
|
|
311301
|
+
if ((_columns$j5 = columns[j]) === null || _columns$j5 === void 0 ? void 0 : _columns$j5.render) {
|
|
311302
|
+
var _columns$j6, _columns$j6$render;
|
|
311303
|
+
|
|
311304
|
+
return (_columns$j6 = columns[j]) === null || _columns$j6 === void 0 ? void 0 : (_columns$j6$render = _columns$j6.render) === null || _columns$j6$render === void 0 ? void 0 : _columns$j6$render.call(_columns$j6, cell, dataItem, i);
|
|
311305
|
+
}
|
|
311306
|
+
|
|
311307
|
+
return cell;
|
|
311308
|
+
});
|
|
311309
|
+
});
|
|
311310
|
+
var selectedRange = {
|
|
311311
|
+
i: range$1(start.i, end.i),
|
|
311312
|
+
j: range$1(start.j, end.j)
|
|
311313
|
+
};
|
|
311314
|
+
var commitRange = {
|
|
311315
|
+
i: range$1(commiting === null || commiting === void 0 ? void 0 : (_commiting$start = commiting.start) === null || _commiting$start === void 0 ? void 0 : _commiting$start.i, commiting === null || commiting === void 0 ? void 0 : (_commiting$end = commiting.end) === null || _commiting$end === void 0 ? void 0 : _commiting$end.i),
|
|
311316
|
+
j: range$1(commiting === null || commiting === void 0 ? void 0 : (_commiting$start2 = commiting.start) === null || _commiting$start2 === void 0 ? void 0 : _commiting$start2.j, commiting === null || commiting === void 0 ? void 0 : (_commiting$end2 = commiting.end) === null || _commiting$end2 === void 0 ? void 0 : _commiting$end2.j)
|
|
311317
|
+
};
|
|
311318
|
+
var obj = {
|
|
311319
|
+
i: [],
|
|
311320
|
+
j: []
|
|
311321
|
+
};
|
|
311322
|
+
var type = '';
|
|
311323
|
+
|
|
311324
|
+
if ((_difference = lodash.difference(selectedRange.i, commitRange.i)) === null || _difference === void 0 ? void 0 : _difference.length) {
|
|
311325
|
+
obj = {
|
|
311326
|
+
i: lodash.difference(selectedRange.i, commitRange.i),
|
|
311327
|
+
j: selectedRange.j
|
|
311328
|
+
};
|
|
311329
|
+
type = 'row';
|
|
311330
|
+
} else if ((_difference2 = lodash.difference(selectedRange.j, commitRange.j)) === null || _difference2 === void 0 ? void 0 : _difference2.length) {
|
|
311331
|
+
obj = {
|
|
311332
|
+
i: selectedRange.i,
|
|
311333
|
+
j: lodash.difference(selectedRange.j, commitRange.j)
|
|
311334
|
+
};
|
|
311335
|
+
type = 'col';
|
|
311336
|
+
}
|
|
311337
|
+
|
|
311338
|
+
var data = lodash.cloneDeep(dataSourceRef.current);
|
|
311339
|
+
(_obj$i = obj.i) === null || _obj$i === void 0 ? void 0 : _obj$i.map(function (tri, index) {
|
|
311340
|
+
var _obj$j;
|
|
311341
|
+
|
|
311342
|
+
(_obj$j = obj.j) === null || _obj$j === void 0 ? void 0 : _obj$j.map(function (tdj) {
|
|
311343
|
+
var _isSelected;
|
|
311344
|
+
|
|
311345
|
+
if ((_isSelected = isSelected(tri, tdj)) === null || _isSelected === void 0 ? void 0 : _isSelected.isSelected) {
|
|
311346
|
+
if (type === 'row') {
|
|
311347
|
+
var _rowtext;
|
|
311348
|
+
|
|
311349
|
+
data[tri][columnsKeysList[tdj]] = (_rowtext = rowtext[index % rowtext.length]) === null || _rowtext === void 0 ? void 0 : _rowtext[tdj];
|
|
311350
|
+
} else {
|
|
311351
|
+
var _coltext;
|
|
311352
|
+
|
|
311353
|
+
data[tri][columnsKeysList[tdj]] = (_coltext = coltext[index % coltext.length]) === null || _coltext === void 0 ? void 0 : _coltext[tdj % coltext[index % coltext.length].length];
|
|
311354
|
+
}
|
|
311355
|
+
}
|
|
311356
|
+
});
|
|
311357
|
+
});
|
|
311358
|
+
|
|
311359
|
+
if (editSheet) {
|
|
311360
|
+
dataChange === null || dataChange === void 0 ? void 0 : dataChange(data);
|
|
311361
|
+
}
|
|
311362
|
+
|
|
311363
|
+
setSheelStatus(_objectSpread(_objectSpread({}, sheelStataus), {}, {
|
|
311364
|
+
selecting: false,
|
|
311365
|
+
commiting: {}
|
|
311366
|
+
}));
|
|
311367
|
+
shellStatusRef.current = _objectSpread(_objectSpread({}, shellStatusRef.current), {}, {
|
|
311368
|
+
selecting: false,
|
|
311369
|
+
commiting: {}
|
|
311370
|
+
});
|
|
311371
|
+
setCommitIng(false);
|
|
311372
|
+
} else {
|
|
311373
|
+
setSheelStatus(_objectSpread(_objectSpread({}, sheelStataus), {}, {
|
|
311374
|
+
selecting: false
|
|
311375
|
+
}));
|
|
311376
|
+
shellStatusRef.current = _objectSpread(_objectSpread({}, shellStatusRef.current), {}, {
|
|
311377
|
+
selecting: false
|
|
311378
|
+
});
|
|
311379
|
+
}
|
|
311380
|
+
|
|
310972
311381
|
document.removeEventListener('mouseup', sheelOnMouseUp);
|
|
311382
|
+
console.log('mouseup_end', shellStatusRef.current);
|
|
310973
311383
|
};
|
|
310974
311384
|
/** 剪切内容 */
|
|
310975
311385
|
|
|
310976
311386
|
|
|
310977
311387
|
var handleCut = function handleCut(e) {
|
|
310978
|
-
var _shellStatusRef$
|
|
311388
|
+
var _shellStatusRef$curre11;
|
|
310979
311389
|
|
|
310980
|
-
if (isEmpty$1((_shellStatusRef$
|
|
311390
|
+
if (isEmpty$1((_shellStatusRef$curre11 = shellStatusRef.current) === null || _shellStatusRef$curre11 === void 0 ? void 0 : _shellStatusRef$curre11.editing)) {
|
|
310981
311391
|
e.preventDefault();
|
|
310982
311392
|
handleCopy(e);
|
|
310983
311393
|
/** 暂时先不隐藏 */
|
|
@@ -310989,12 +311399,12 @@
|
|
|
310989
311399
|
|
|
310990
311400
|
|
|
310991
311401
|
var handlePaste = function handlePaste(e) {
|
|
310992
|
-
var _shellStatusRef$
|
|
311402
|
+
var _shellStatusRef$curre12;
|
|
310993
311403
|
|
|
310994
|
-
if (isEmpty$1((_shellStatusRef$
|
|
310995
|
-
var _shellStatusRef$
|
|
310996
|
-
start = _shellStatusRef$
|
|
310997
|
-
end = _shellStatusRef$
|
|
311404
|
+
if (isEmpty$1((_shellStatusRef$curre12 = shellStatusRef.current) === null || _shellStatusRef$curre12 === void 0 ? void 0 : _shellStatusRef$curre12.editing)) {
|
|
311405
|
+
var _shellStatusRef$curre13 = shellStatusRef.current,
|
|
311406
|
+
start = _shellStatusRef$curre13.start,
|
|
311407
|
+
end = _shellStatusRef$curre13.end;
|
|
310998
311408
|
start = {
|
|
310999
311409
|
i: Math.min(start.i, end.i),
|
|
311000
311410
|
j: Math.min(start.j, end.j)
|
|
@@ -311030,9 +311440,9 @@
|
|
|
311030
311440
|
});
|
|
311031
311441
|
var res = fn(dataSourceRef.current, function (draft) {
|
|
311032
311442
|
resultEnd.forEach(function (item) {
|
|
311033
|
-
var
|
|
311443
|
+
var _isSelected2;
|
|
311034
311444
|
|
|
311035
|
-
if ((
|
|
311445
|
+
if ((_isSelected2 = isSelected(item.i, item.j)) === null || _isSelected2 === void 0 ? void 0 : _isSelected2.isSelected) {
|
|
311036
311446
|
draft[item.i][columnsKeysList[item.j]] = item.value;
|
|
311037
311447
|
}
|
|
311038
311448
|
});
|
|
@@ -311056,9 +311466,10 @@
|
|
|
311056
311466
|
selecting: false,
|
|
311057
311467
|
forceEdit: false,
|
|
311058
311468
|
editing: {},
|
|
311059
|
-
clear: {}
|
|
311469
|
+
clear: {},
|
|
311470
|
+
commiting: {}
|
|
311060
311471
|
};
|
|
311061
|
-
|
|
311472
|
+
setSelectIng(false);
|
|
311062
311473
|
document.removeEventListener('mousedown', pageClick);
|
|
311063
311474
|
document.removeEventListener('mouseup', sheelOnMouseUp);
|
|
311064
311475
|
document.removeEventListener('cut', handleCut);
|
|
@@ -311076,15 +311487,22 @@
|
|
|
311076
311487
|
};
|
|
311077
311488
|
/** sheel 表格 鼠标点击 */
|
|
311078
311489
|
|
|
311490
|
+
/**
|
|
311491
|
+
* i 行
|
|
311492
|
+
* j 列
|
|
311493
|
+
* e 点击元素
|
|
311494
|
+
* commitStatus boolena 是否点击了快速选择
|
|
311495
|
+
*/
|
|
311496
|
+
|
|
311079
311497
|
|
|
311080
|
-
var sheelMouseDown = function sheelMouseDown(i, j, e) {
|
|
311081
|
-
var _shellStatusRef$
|
|
311498
|
+
var sheelMouseDown = function sheelMouseDown(i, j, e, commitStatus) {
|
|
311499
|
+
var _shellStatusRef$curre14, _shellStatusRef$curre15, _shellStatusRef$curre16, _shellStatusRef$curre17, _shellStatusRef$curre18, _shellStatusRef$curre19, _shellStatusRef$curre20, _shellStatusRef$curre21, _shellStatusRef$curre22, _shellStatusRef$curre23;
|
|
311082
311500
|
|
|
311083
|
-
var isNowEditingSameCell = !isEmpty$1((_shellStatusRef$
|
|
311084
|
-
var editing = isEmpty$1((_shellStatusRef$
|
|
311501
|
+
var isNowEditingSameCell = !isEmpty$1((_shellStatusRef$curre14 = shellStatusRef.current) === null || _shellStatusRef$curre14 === void 0 ? void 0 : _shellStatusRef$curre14.editing) && ((_shellStatusRef$curre15 = shellStatusRef.current) === null || _shellStatusRef$curre15 === void 0 ? void 0 : _shellStatusRef$curre15.editing.i) === i && ((_shellStatusRef$curre16 = shellStatusRef.current) === null || _shellStatusRef$curre16 === void 0 ? void 0 : _shellStatusRef$curre16.editing.j) === j;
|
|
311502
|
+
var editing = isEmpty$1((_shellStatusRef$curre17 = shellStatusRef.current) === null || _shellStatusRef$curre17 === void 0 ? void 0 : _shellStatusRef$curre17.editing) || ((_shellStatusRef$curre18 = shellStatusRef.current) === null || _shellStatusRef$curre18 === void 0 ? void 0 : _shellStatusRef$curre18.editing.i) !== i || ((_shellStatusRef$curre19 = shellStatusRef.current) === null || _shellStatusRef$curre19 === void 0 ? void 0 : _shellStatusRef$curre19.editing.j) !== j ? {} : (_shellStatusRef$curre20 = shellStatusRef.current) === null || _shellStatusRef$curre20 === void 0 ? void 0 : _shellStatusRef$curre20.editing;
|
|
311085
311503
|
shellStatusRef.current = {
|
|
311086
311504
|
selecting: !isNowEditingSameCell,
|
|
311087
|
-
start: (e === null || e === void 0 ? void 0 : e.shiftKey) ? (_shellStatusRef$
|
|
311505
|
+
start: (e === null || e === void 0 ? void 0 : e.shiftKey) || commitStatus ? (_shellStatusRef$curre21 = shellStatusRef.current) === null || _shellStatusRef$curre21 === void 0 ? void 0 : _shellStatusRef$curre21.start : {
|
|
311088
311506
|
i: i,
|
|
311089
311507
|
j: j
|
|
311090
311508
|
},
|
|
@@ -311093,11 +311511,22 @@
|
|
|
311093
311511
|
j: j
|
|
311094
311512
|
},
|
|
311095
311513
|
editing: editing,
|
|
311096
|
-
forceEdit: !!isNowEditingSameCell
|
|
311514
|
+
forceEdit: !!isNowEditingSameCell,
|
|
311515
|
+
commiting: commitStatus ? {
|
|
311516
|
+
start: (_shellStatusRef$curre22 = shellStatusRef.current) === null || _shellStatusRef$curre22 === void 0 ? void 0 : _shellStatusRef$curre22.start,
|
|
311517
|
+
end: {
|
|
311518
|
+
i: i,
|
|
311519
|
+
j: j
|
|
311520
|
+
}
|
|
311521
|
+
} : {}
|
|
311097
311522
|
};
|
|
311098
|
-
|
|
311523
|
+
setSelectIng(!isNowEditingSameCell);
|
|
311524
|
+
|
|
311525
|
+
if (commitStatus) {
|
|
311526
|
+
setCommitIng(true);
|
|
311527
|
+
}
|
|
311099
311528
|
|
|
311100
|
-
if (isEmpty$1((_shellStatusRef$
|
|
311529
|
+
if (isEmpty$1((_shellStatusRef$curre23 = shellStatusRef.current) === null || _shellStatusRef$curre23 === void 0 ? void 0 : _shellStatusRef$curre23.editing)) {
|
|
311101
311530
|
setEditIng(false);
|
|
311102
311531
|
}
|
|
311103
311532
|
|
|
@@ -311107,17 +311536,25 @@
|
|
|
311107
311536
|
document.addEventListener('copy', handleCopy);
|
|
311108
311537
|
document.addEventListener('paste', handlePaste);
|
|
311109
311538
|
};
|
|
311539
|
+
/** 鼠标右键点击事件 */
|
|
311540
|
+
|
|
311110
311541
|
|
|
311111
311542
|
var onContextMenu = function onContextMenu(evt, i, j) {
|
|
311543
|
+
console.log(evt, i, j, '222');
|
|
311112
311544
|
evt.preventDefault();
|
|
311113
|
-
var _shellStatusRef$
|
|
311114
|
-
start = _shellStatusRef$
|
|
311115
|
-
end = _shellStatusRef$
|
|
311545
|
+
var _shellStatusRef$curre24 = shellStatusRef.current,
|
|
311546
|
+
start = _shellStatusRef$curre24.start,
|
|
311547
|
+
end = _shellStatusRef$curre24.end;
|
|
311548
|
+
/** 如果表格当前没有选择,则把当前的右击的td块默认选中 */
|
|
311116
311549
|
|
|
311117
311550
|
if (isEmpty$1(start) && isEmpty$1(end)) {
|
|
311118
311551
|
sheelMouseDown(i, j, evt);
|
|
311119
311552
|
}
|
|
311120
311553
|
|
|
311554
|
+
if (!checkIsSelectd(i, j, start, end)) {
|
|
311555
|
+
sheelMouseDown(i, j, evt);
|
|
311556
|
+
}
|
|
311557
|
+
|
|
311121
311558
|
setContextMenuStatus(true); // 获得点击的位置
|
|
311122
311559
|
|
|
311123
311560
|
var clientX = evt.clientX,
|
|
@@ -311206,6 +311643,7 @@
|
|
|
311206
311643
|
colIndex: index,
|
|
311207
311644
|
selectIng: selectIng,
|
|
311208
311645
|
editIng: editIng,
|
|
311646
|
+
commitIng: commitIng,
|
|
311209
311647
|
rowIndex: rowIndex,
|
|
311210
311648
|
onMouseDown: sheelMouseDown,
|
|
311211
311649
|
onMouseOver: onMouseOver,
|
|
@@ -311229,7 +311667,7 @@
|
|
|
311229
311667
|
}
|
|
311230
311668
|
|
|
311231
311669
|
return sortOpen ? [sortDefaultColumnItem].concat(_toConsumableArray$1(result)) : result;
|
|
311232
|
-
}, [useColumns, sortOpen, selectIng, dataSource, groupInfo]);
|
|
311670
|
+
}, [useColumns, sortOpen, selectIng, dataSource, groupInfo, commitIng]);
|
|
311233
311671
|
React.useEffect(function () {
|
|
311234
311672
|
setColumns(columns);
|
|
311235
311673
|
}, [columns]); // 行点击事件
|
|
@@ -311409,19 +311847,6 @@
|
|
|
311409
311847
|
selectedRows: []
|
|
311410
311848
|
});
|
|
311411
311849
|
}, [loading]);
|
|
311412
|
-
/** 自定义空状态 */
|
|
311413
|
-
|
|
311414
|
-
var customizeRenderEmpty = function customizeRenderEmpty() {
|
|
311415
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
311416
|
-
className: "lm_table_empty"
|
|
311417
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
311418
|
-
className: "empty_img",
|
|
311419
|
-
style: {
|
|
311420
|
-
width: '130px',
|
|
311421
|
-
height: '80px'
|
|
311422
|
-
}
|
|
311423
|
-
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u6682\u65E0\u6570\u636E"));
|
|
311424
|
-
};
|
|
311425
311850
|
|
|
311426
311851
|
var onTableChange = function onTableChange(pagination, filters, sorter, extra) {
|
|
311427
311852
|
var resultColumns = useColumns.map(function (item) {
|
|
@@ -311495,49 +311920,28 @@
|
|
|
311495
311920
|
}));
|
|
311496
311921
|
}, [columns]);
|
|
311497
311922
|
var tableComponents = React.useMemo(function () {
|
|
311498
|
-
var
|
|
311923
|
+
var _ref5 = components || {},
|
|
311924
|
+
_ref5$body = _ref5.body,
|
|
311925
|
+
body = _ref5$body === void 0 ? {} : _ref5$body,
|
|
311926
|
+
_ref5$header = _ref5.header,
|
|
311927
|
+
header = _ref5$header === void 0 ? {} : _ref5$header;
|
|
311928
|
+
|
|
311929
|
+
return {
|
|
311930
|
+
// table: (record) => {
|
|
311499
311931
|
// return <div style={record.style}>{record.children}</div>
|
|
311500
311932
|
// }
|
|
311933
|
+
table: virtual ? VirtualTable : null,
|
|
311934
|
+
header: _objectSpread({
|
|
311935
|
+
row: colSortOpen ? colDraggableContainer : null,
|
|
311936
|
+
cell: resizeable ? ResizableTitle : null
|
|
311937
|
+
}, header),
|
|
311938
|
+
body: _objectSpread(_objectSpread({
|
|
311939
|
+
wrapper: sortOpen ? DraggableContainer : virtual ? VirtualWrapper : null,
|
|
311940
|
+
row: sortOpen ? DraggableBodyRow : virtual ? VirtualRow : null
|
|
311941
|
+
}, body), {}, {
|
|
311942
|
+
cell: openSheet ? SheelTabelCell : null
|
|
311943
|
+
})
|
|
311501
311944
|
};
|
|
311502
|
-
|
|
311503
|
-
if (sortOpen) {
|
|
311504
|
-
obj.body = {
|
|
311505
|
-
wrapper: DraggableContainer,
|
|
311506
|
-
row: DraggableBodyRow
|
|
311507
|
-
};
|
|
311508
|
-
}
|
|
311509
|
-
|
|
311510
|
-
if (resizeable) {
|
|
311511
|
-
obj.header = {
|
|
311512
|
-
cell: ResizableTitle
|
|
311513
|
-
};
|
|
311514
|
-
}
|
|
311515
|
-
|
|
311516
|
-
if (colSortOpen) {
|
|
311517
|
-
obj.header = _objectSpread(_objectSpread({}, obj.header), {}, {
|
|
311518
|
-
row: colDraggableContainer
|
|
311519
|
-
});
|
|
311520
|
-
}
|
|
311521
|
-
|
|
311522
|
-
if (components) {
|
|
311523
|
-
var _components$body = components.body,
|
|
311524
|
-
body = _components$body === void 0 ? {} : _components$body,
|
|
311525
|
-
_components$header = components.header,
|
|
311526
|
-
header = _components$header === void 0 ? {} : _components$header;
|
|
311527
|
-
obj.body = _objectSpread(_objectSpread({}, obj.body), body);
|
|
311528
|
-
obj.header = _objectSpread(_objectSpread({}, obj.header), header);
|
|
311529
|
-
}
|
|
311530
|
-
|
|
311531
|
-
if (openSheet) {
|
|
311532
|
-
if (obj.body) {
|
|
311533
|
-
obj.body.cell = SheelTabelCell;
|
|
311534
|
-
} else {
|
|
311535
|
-
obj.body = {};
|
|
311536
|
-
obj.body.cell = SheelTabelCell;
|
|
311537
|
-
}
|
|
311538
|
-
}
|
|
311539
|
-
|
|
311540
|
-
return obj;
|
|
311541
311945
|
}, [sortOpen, resizeable, components, colSortOpen]);
|
|
311542
311946
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
311543
311947
|
style: {
|
|
@@ -311550,7 +311954,7 @@
|
|
|
311550
311954
|
return null;
|
|
311551
311955
|
} : emptyProps ? function () {
|
|
311552
311956
|
return /*#__PURE__*/React__default['default'].createElement(Empty$3, emptyProps, (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.footer) || null);
|
|
311553
|
-
} :
|
|
311957
|
+
} : CustomizeRenderEmpty
|
|
311554
311958
|
}, colSortOpen ? /*#__PURE__*/React__default['default'].createElement(DndContainer, {
|
|
311555
311959
|
move: onColSortEnd
|
|
311556
311960
|
}, /*#__PURE__*/React__default['default'].createElement(SortableBox, {
|
|
@@ -311570,7 +311974,8 @@
|
|
|
311570
311974
|
selecting: false,
|
|
311571
311975
|
forceEdit: false,
|
|
311572
311976
|
editing: {},
|
|
311573
|
-
clear: {}
|
|
311977
|
+
clear: {},
|
|
311978
|
+
commiting: {}
|
|
311574
311979
|
};
|
|
311575
311980
|
},
|
|
311576
311981
|
expandedRowKeys: expandedRowKeys,
|
|
@@ -311595,7 +312000,8 @@
|
|
|
311595
312000
|
selecting: false,
|
|
311596
312001
|
forceEdit: false,
|
|
311597
312002
|
editing: {},
|
|
311598
|
-
clear: {}
|
|
312003
|
+
clear: {},
|
|
312004
|
+
commiting: {}
|
|
311599
312005
|
};
|
|
311600
312006
|
},
|
|
311601
312007
|
expandedRowKeys: expandedRowKeys,
|
|
@@ -311651,13 +312057,13 @@
|
|
|
311651
312057
|
var _props$autoSizer = props.autoSizer,
|
|
311652
312058
|
autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer;
|
|
311653
312059
|
|
|
311654
|
-
var
|
|
312060
|
+
var _useState25 = React.useState({
|
|
311655
312061
|
width: '100%',
|
|
311656
312062
|
height: '100%'
|
|
311657
312063
|
}),
|
|
311658
|
-
|
|
311659
|
-
tableSize =
|
|
311660
|
-
setTableSize =
|
|
312064
|
+
_useState26 = _slicedToArray$1(_useState25, 2),
|
|
312065
|
+
tableSize = _useState26[0],
|
|
312066
|
+
setTableSize = _useState26[1];
|
|
311661
312067
|
|
|
311662
312068
|
var defaultRef = ref || React.useRef(null);
|
|
311663
312069
|
var tableWarpRef = React.useRef(null);
|
|
@@ -311715,11 +312121,11 @@
|
|
|
311715
312121
|
|
|
311716
312122
|
var value = props.summary ? 48 : 0;
|
|
311717
312123
|
|
|
311718
|
-
var
|
|
311719
|
-
|
|
311720
|
-
width =
|
|
311721
|
-
|
|
311722
|
-
height =
|
|
312124
|
+
var _ref6 = ((_tableWarpRef$current = tableWarpRef.current) === null || _tableWarpRef$current === void 0 ? void 0 : _tableWarpRef$current.getBoundingClientRect()) || {},
|
|
312125
|
+
_ref6$width = _ref6.width,
|
|
312126
|
+
width = _ref6$width === void 0 ? '100%' : _ref6$width,
|
|
312127
|
+
_ref6$height = _ref6.height,
|
|
312128
|
+
height = _ref6$height === void 0 ? '100%' : _ref6$height;
|
|
311723
312129
|
|
|
311724
312130
|
setTableSize({
|
|
311725
312131
|
width: width,
|
|
@@ -311894,7 +312300,7 @@
|
|
|
311894
312300
|
return !Comp ? null : isReactComponent$1(Comp) ? /*#__PURE__*/React__default['default'].createElement(Comp, _objectSpread({}, props)) : Comp;
|
|
311895
312301
|
};
|
|
311896
312302
|
|
|
311897
|
-
var _excluded$
|
|
312303
|
+
var _excluded$27 = ["item"],
|
|
311898
312304
|
_excluded2$v = ["item"],
|
|
311899
312305
|
_excluded3$9 = ["type"];
|
|
311900
312306
|
|
|
@@ -311961,7 +312367,7 @@
|
|
|
311961
312367
|
className: "filter_list"
|
|
311962
312368
|
}, function (_ref2) {
|
|
311963
312369
|
var item = _ref2.item,
|
|
311964
|
-
resetProps = _objectWithoutProperties$1(_ref2, _excluded$
|
|
312370
|
+
resetProps = _objectWithoutProperties$1(_ref2, _excluded$27);
|
|
311965
312371
|
|
|
311966
312372
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
311967
312373
|
className: classnames('filter_item', {
|
|
@@ -312392,7 +312798,7 @@
|
|
|
312392
312798
|
})))));
|
|
312393
312799
|
};
|
|
312394
312800
|
|
|
312395
|
-
var _excluded$
|
|
312801
|
+
var _excluded$28 = ["item"];
|
|
312396
312802
|
|
|
312397
312803
|
var imgEmpty$2 = require('./icon_placeholder.png');
|
|
312398
312804
|
|
|
@@ -312482,7 +312888,7 @@
|
|
|
312482
312888
|
className: "filter_list"
|
|
312483
312889
|
}, function (_ref4) {
|
|
312484
312890
|
var item = _ref4.item,
|
|
312485
|
-
resetProps = _objectWithoutProperties$1(_ref4, _excluded$
|
|
312891
|
+
resetProps = _objectWithoutProperties$1(_ref4, _excluded$28);
|
|
312486
312892
|
|
|
312487
312893
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, resetProps), {}, {
|
|
312488
312894
|
className: classnames('filter_item', {
|
|
@@ -312499,7 +312905,7 @@
|
|
|
312499
312905
|
}), !renderOptions.length && /*#__PURE__*/React__default['default'].createElement(FilterEmpty$1, null)));
|
|
312500
312906
|
};
|
|
312501
312907
|
|
|
312502
|
-
var _excluded$
|
|
312908
|
+
var _excluded$29 = ["children", "className", "dropdownClassName", "type", "options", "showSearch"];
|
|
312503
312909
|
var prefixCls$4 = 'lm_select'; // 不同类型Select, 不同的默认配置
|
|
312504
312910
|
|
|
312505
312911
|
var config = {
|
|
@@ -312523,7 +312929,7 @@
|
|
|
312523
312929
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
312524
312930
|
options = props.options,
|
|
312525
312931
|
showSearch = props.showSearch,
|
|
312526
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
312932
|
+
others = _objectWithoutProperties$1(props, _excluded$29);
|
|
312527
312933
|
|
|
312528
312934
|
var _React$useState = React__default['default'].useState(others.defaultValue || []),
|
|
312529
312935
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
@@ -312579,10 +312985,10 @@
|
|
|
312579
312985
|
}), children);
|
|
312580
312986
|
});
|
|
312581
312987
|
|
|
312582
|
-
var _excluded$
|
|
312988
|
+
var _excluded$2a = ["ghost"];
|
|
312583
312989
|
var CLMSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
312584
312990
|
var ghost = props.ghost,
|
|
312585
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
312991
|
+
others = _objectWithoutProperties$1(props, _excluded$2a);
|
|
312586
312992
|
|
|
312587
312993
|
if (ghost) {
|
|
312588
312994
|
return /*#__PURE__*/React__default['default'].createElement(Index$a, _objectSpread({}, others));
|
|
@@ -312611,7 +313017,7 @@
|
|
|
312611
313017
|
}));
|
|
312612
313018
|
};
|
|
312613
313019
|
|
|
312614
|
-
var _excluded$
|
|
313020
|
+
var _excluded$2b = ["wrapClassName", "size", "onOk", "onCancel", "okText", "cancelText"];
|
|
312615
313021
|
var prefixCls$5 = 'lm_modal';
|
|
312616
313022
|
|
|
312617
313023
|
var CLMModal = function CLMModal(props) {
|
|
@@ -312624,7 +313030,7 @@
|
|
|
312624
313030
|
okText = _props$okText === void 0 ? '确定' : _props$okText,
|
|
312625
313031
|
_props$cancelText = props.cancelText,
|
|
312626
313032
|
cancelText = _props$cancelText === void 0 ? '取消' : _props$cancelText,
|
|
312627
|
-
other = _objectWithoutProperties$1(props, _excluded$
|
|
313033
|
+
other = _objectWithoutProperties$1(props, _excluded$2b);
|
|
312628
313034
|
|
|
312629
313035
|
return /*#__PURE__*/React__default['default'].createElement(Modal$1, _objectSpread(_objectSpread({
|
|
312630
313036
|
wrapClassName: classnames(wrapClassName, prefixCls$5),
|
|
@@ -312689,14 +313095,14 @@
|
|
|
312689
313095
|
LMModal.destroyAll = Modal$1.destroyAll;
|
|
312690
313096
|
LMModal.config = Modal$1.config;
|
|
312691
313097
|
|
|
312692
|
-
var _excluded$
|
|
313098
|
+
var _excluded$2c = ["children", "className"];
|
|
312693
313099
|
var ConfigContext$3 = ConfigProvider$1.ConfigContext;
|
|
312694
313100
|
var prefixCls$6 = 'lm_pagination';
|
|
312695
313101
|
|
|
312696
313102
|
var LMPagination = function LMPagination(props) {
|
|
312697
313103
|
var children = props.children,
|
|
312698
313104
|
className = props.className,
|
|
312699
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
313105
|
+
others = _objectWithoutProperties$1(props, _excluded$2c);
|
|
312700
313106
|
|
|
312701
313107
|
var _React$useContext = React__default['default'].useContext(ConfigContext$3),
|
|
312702
313108
|
locale = _React$useContext.locale; // 更改中文语言包内容显示
|
|
@@ -312721,12 +313127,12 @@
|
|
|
312721
313127
|
}));
|
|
312722
313128
|
};
|
|
312723
313129
|
|
|
312724
|
-
var _excluded$
|
|
313130
|
+
var _excluded$2d = ["children"],
|
|
312725
313131
|
_excluded2$w = ["children", "size", "buttonStyle", "direction", "className"];
|
|
312726
313132
|
|
|
312727
313133
|
var LMRadio = function LMRadio(props) {
|
|
312728
313134
|
var children = props.children,
|
|
312729
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
313135
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2d);
|
|
312730
313136
|
|
|
312731
313137
|
return /*#__PURE__*/React__default['default'].createElement(Radio$1, _extends$2({
|
|
312732
313138
|
className: "lm-radio"
|
|
@@ -312751,7 +313157,7 @@
|
|
|
312751
313157
|
|
|
312752
313158
|
LMRadio.Button = Radio$1.Button;
|
|
312753
313159
|
|
|
312754
|
-
var _excluded$
|
|
313160
|
+
var _excluded$2e = ["children", "className", "size", "dropdownClassName"];
|
|
312755
313161
|
var prefixCls$7 = 'lm_select';
|
|
312756
313162
|
var CLMSelect$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
312757
313163
|
var children = props.children,
|
|
@@ -312759,7 +313165,7 @@
|
|
|
312759
313165
|
_props$size = props.size,
|
|
312760
313166
|
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
312761
313167
|
dropdownClassName = props.dropdownClassName,
|
|
312762
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
313168
|
+
others = _objectWithoutProperties$1(props, _excluded$2e);
|
|
312763
313169
|
|
|
312764
313170
|
return /*#__PURE__*/React__default['default'].createElement(Select$1, _objectSpread(_objectSpread({
|
|
312765
313171
|
className: classnames(className, prefixCls$7),
|
|
@@ -312842,7 +313248,7 @@
|
|
|
312842
313248
|
|
|
312843
313249
|
var build$2 = hexToRgba;
|
|
312844
313250
|
|
|
312845
|
-
var _excluded$
|
|
313251
|
+
var _excluded$2f = ["className", "color"],
|
|
312846
313252
|
_excluded2$x = ["className", "color", "checked"];
|
|
312847
313253
|
var CheckableTag$1 = Tag.CheckableTag;
|
|
312848
313254
|
var PresetColorTypes$1 = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime', 'theme'];
|
|
@@ -312850,7 +313256,7 @@
|
|
|
312850
313256
|
var LmTag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
312851
313257
|
var className = props.className,
|
|
312852
313258
|
color = props.color,
|
|
312853
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
313259
|
+
rest = _objectWithoutProperties$1(props, _excluded$2f);
|
|
312854
313260
|
|
|
312855
313261
|
return /*#__PURE__*/React__default['default'].createElement(Tag, _objectSpread(_objectSpread({
|
|
312856
313262
|
ref: ref
|
|
@@ -312906,7 +313312,7 @@
|
|
|
312906
313312
|
})));
|
|
312907
313313
|
};
|
|
312908
313314
|
|
|
312909
|
-
var _excluded$
|
|
313315
|
+
var _excluded$2g = ["className", "size", "noBorder"];
|
|
312910
313316
|
var prefixCls$9 = 'lm_tabs';
|
|
312911
313317
|
|
|
312912
313318
|
var LMTabs = function LMTabs(props) {
|
|
@@ -312915,7 +313321,7 @@
|
|
|
312915
313321
|
size = _props$size === void 0 ? "middle" : _props$size,
|
|
312916
313322
|
_props$noBorder = props.noBorder,
|
|
312917
313323
|
noBorder = _props$noBorder === void 0 ? false : _props$noBorder,
|
|
312918
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
313324
|
+
others = _objectWithoutProperties$1(props, _excluded$2g);
|
|
312919
313325
|
|
|
312920
313326
|
return /*#__PURE__*/React__default['default'].createElement(Tabs$1, _objectSpread(_objectSpread({
|
|
312921
313327
|
size: size
|
|
@@ -312926,13 +313332,13 @@
|
|
|
312926
313332
|
|
|
312927
313333
|
LMTabs.TabPane = Tabs$1.TabPane;
|
|
312928
313334
|
|
|
312929
|
-
var _excluded$
|
|
313335
|
+
var _excluded$2h = ["size", "className"];
|
|
312930
313336
|
|
|
312931
313337
|
var Switch$2 = function Switch(props) {
|
|
312932
313338
|
var _props$size = props.size,
|
|
312933
313339
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
312934
313340
|
className = props.className,
|
|
312935
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
313341
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2h);
|
|
312936
313342
|
|
|
312937
313343
|
var classs = classnames('lm-switch', className, _defineProperty({}, "lm-switch-".concat(size), size));
|
|
312938
313344
|
return /*#__PURE__*/React__default['default'].createElement(Switch$1, _objectSpread(_objectSpread({
|
|
@@ -319172,7 +319578,7 @@
|
|
|
319172
319578
|
return replaceElement$1(element, element, props);
|
|
319173
319579
|
}
|
|
319174
319580
|
|
|
319175
|
-
var _excluded$
|
|
319581
|
+
var _excluded$2i = ["getPopupContainer"];
|
|
319176
319582
|
|
|
319177
319583
|
var splitObject$1 = function splitObject(obj, keys) {
|
|
319178
319584
|
var picked = {};
|
|
@@ -319317,7 +319723,7 @@
|
|
|
319317
319723
|
};
|
|
319318
319724
|
|
|
319319
319725
|
var getPopupContainer = props.getPopupContainer,
|
|
319320
|
-
otherProps = _objectWithoutProperties$1(props, _excluded$
|
|
319726
|
+
otherProps = _objectWithoutProperties$1(props, _excluded$2i);
|
|
319321
319727
|
|
|
319322
319728
|
var customizePrefixCls = props.prefixCls,
|
|
319323
319729
|
openClassName = props.openClassName,
|
|
@@ -320129,7 +320535,7 @@
|
|
|
320129
320535
|
return list;
|
|
320130
320536
|
}
|
|
320131
320537
|
|
|
320132
|
-
var _excluded$
|
|
320538
|
+
var _excluded$2j = ["component", "children", "onVisibleChanged", "onAllRemoved"],
|
|
320133
320539
|
_excluded2$y = ["status"];
|
|
320134
320540
|
var MOTION_PROP_NAMES$2 = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
|
|
320135
320541
|
/**
|
|
@@ -320194,7 +320600,7 @@
|
|
|
320194
320600
|
children = _this$props.children,
|
|
320195
320601
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
320196
320602
|
onAllRemoved = _this$props.onAllRemoved,
|
|
320197
|
-
restProps = _objectWithoutProperties(_this$props, _excluded$
|
|
320603
|
+
restProps = _objectWithoutProperties(_this$props, _excluded$2j);
|
|
320198
320604
|
|
|
320199
320605
|
var Component = component || React.Fragment;
|
|
320200
320606
|
var motionProps = {};
|
|
@@ -320425,14 +320831,14 @@
|
|
|
320425
320831
|
return [wrapForm];
|
|
320426
320832
|
}
|
|
320427
320833
|
|
|
320428
|
-
var _excluded$
|
|
320834
|
+
var _excluded$2k = ["children", "className", "responsive"];
|
|
320429
320835
|
var prefixCls$b = 'lm_container';
|
|
320430
320836
|
|
|
320431
320837
|
var LMContainer = function LMContainer(props) {
|
|
320432
320838
|
var children = props.children,
|
|
320433
320839
|
className = props.className,
|
|
320434
320840
|
responsive = props.responsive,
|
|
320435
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
320841
|
+
others = _objectWithoutProperties$1(props, _excluded$2k);
|
|
320436
320842
|
|
|
320437
320843
|
var _useState = React.useState({
|
|
320438
320844
|
width: '100%',
|
|
@@ -320520,7 +320926,7 @@
|
|
|
320520
320926
|
}, throttleSize());
|
|
320521
320927
|
};
|
|
320522
320928
|
|
|
320523
|
-
var _excluded$
|
|
320929
|
+
var _excluded$2l = ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "responsive"];
|
|
320524
320930
|
|
|
320525
320931
|
var InternalForm$2 = function InternalForm(props, ref) {
|
|
320526
320932
|
var _classNames;
|
|
@@ -320554,7 +320960,7 @@
|
|
|
320554
320960
|
onFinishFailed = props.onFinishFailed,
|
|
320555
320961
|
name = props.name,
|
|
320556
320962
|
responsive = props.responsive,
|
|
320557
|
-
restFormProps = _objectWithoutProperties$1(props, _excluded$
|
|
320963
|
+
restFormProps = _objectWithoutProperties$1(props, _excluded$2l);
|
|
320558
320964
|
|
|
320559
320965
|
var mergedRequiredMark = React.useMemo(function () {
|
|
320560
320966
|
if (requiredMark !== undefined) {
|
|
@@ -321435,7 +321841,7 @@
|
|
|
321435
321841
|
|
|
321436
321842
|
var RowContext$1 = /*#__PURE__*/React.createContext({});
|
|
321437
321843
|
|
|
321438
|
-
var _excluded$
|
|
321844
|
+
var _excluded$2m = ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"];
|
|
321439
321845
|
|
|
321440
321846
|
function parseFlex$1(flex) {
|
|
321441
321847
|
if (typeof flex === 'number') {
|
|
@@ -321472,7 +321878,7 @@
|
|
|
321472
321878
|
children = props.children,
|
|
321473
321879
|
flex = props.flex,
|
|
321474
321880
|
style = props.style,
|
|
321475
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
321881
|
+
others = _objectWithoutProperties$1(props, _excluded$2m);
|
|
321476
321882
|
|
|
321477
321883
|
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
321478
321884
|
var sizeClassObj = {};
|
|
@@ -321705,7 +322111,7 @@
|
|
|
321705
322111
|
return flexible;
|
|
321706
322112
|
});
|
|
321707
322113
|
|
|
321708
|
-
var _excluded$
|
|
322114
|
+
var _excluded$2n = ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"];
|
|
321709
322115
|
var RowAligns$1 = tuple$2('top', 'middle', 'bottom', 'stretch');
|
|
321710
322116
|
var RowJustify$1 = tuple$2('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
|
|
321711
322117
|
var Row$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -321720,7 +322126,7 @@
|
|
|
321720
322126
|
_props$gutter = props.gutter,
|
|
321721
322127
|
gutter = _props$gutter === void 0 ? 0 : _props$gutter,
|
|
321722
322128
|
wrap = props.wrap,
|
|
321723
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
322129
|
+
others = _objectWithoutProperties$1(props, _excluded$2n);
|
|
321724
322130
|
|
|
321725
322131
|
var _React$useContext = React.useContext(ConfigContext),
|
|
321726
322132
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -322251,7 +322657,7 @@
|
|
|
322251
322657
|
|
|
322252
322658
|
var Calendar = generateCalendar(generateConfig);
|
|
322253
322659
|
|
|
322254
|
-
var initialState$
|
|
322660
|
+
var initialState$2 = {
|
|
322255
322661
|
animating: false,
|
|
322256
322662
|
autoplaying: null,
|
|
322257
322663
|
currentDirection: 0,
|
|
@@ -323571,7 +323977,7 @@
|
|
|
323571
323977
|
return NextArrow;
|
|
323572
323978
|
}(React__default['default'].PureComponent);
|
|
323573
323979
|
|
|
323574
|
-
var _excluded$
|
|
323980
|
+
var _excluded$2o = ["animating"];
|
|
323575
323981
|
var InnerSlider = /*#__PURE__*/function (_React$Component) {
|
|
323576
323982
|
_inherits(InnerSlider, _React$Component);
|
|
323577
323983
|
|
|
@@ -323987,7 +324393,7 @@
|
|
|
323987
324393
|
if (!nextState) return;
|
|
323988
324394
|
_this.animationEndCallback = setTimeout(function () {
|
|
323989
324395
|
var animating = nextState.animating,
|
|
323990
|
-
firstBatch = _objectWithoutProperties(nextState, _excluded$
|
|
324396
|
+
firstBatch = _objectWithoutProperties(nextState, _excluded$2o);
|
|
323991
324397
|
|
|
323992
324398
|
_this.setState(firstBatch, function () {
|
|
323993
324399
|
_this.callbackTimers.push(setTimeout(function () {
|
|
@@ -324344,7 +324750,7 @@
|
|
|
324344
324750
|
|
|
324345
324751
|
_this.list = null;
|
|
324346
324752
|
_this.track = null;
|
|
324347
|
-
_this.state = _objectSpread2(_objectSpread2({}, initialState$
|
|
324753
|
+
_this.state = _objectSpread2(_objectSpread2({}, initialState$2), {}, {
|
|
324348
324754
|
currentSlide: _this.props.initialSlide,
|
|
324349
324755
|
slideCount: React__default['default'].Children.count(_this.props.children)
|
|
324350
324756
|
});
|
|
@@ -327305,11 +327711,11 @@
|
|
|
327305
327711
|
});
|
|
327306
327712
|
MobilePopupInner$5.displayName = 'MobilePopupInner';
|
|
327307
327713
|
|
|
327308
|
-
var _excluded$
|
|
327714
|
+
var _excluded$2p = ["visible", "mobile"];
|
|
327309
327715
|
var Popup$7 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
327310
327716
|
var visible = _ref.visible,
|
|
327311
327717
|
mobile = _ref.mobile,
|
|
327312
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
327718
|
+
props = _objectWithoutProperties(_ref, _excluded$2p);
|
|
327313
327719
|
|
|
327314
327720
|
var _useState = React.useState(visible),
|
|
327315
327721
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -328145,7 +328551,7 @@
|
|
|
328145
328551
|
}
|
|
328146
328552
|
var Trigger$6 = generateTrigger$5(Portal);
|
|
328147
328553
|
|
|
328148
|
-
var _excluded$
|
|
328554
|
+
var _excluded$2q = ["children", "locked"];
|
|
328149
328555
|
var MenuContext$3 = /*#__PURE__*/React.createContext(null);
|
|
328150
328556
|
|
|
328151
328557
|
function mergeProps$2(origin, target) {
|
|
@@ -328164,7 +328570,7 @@
|
|
|
328164
328570
|
function InheritableContextProvider$2(_ref) {
|
|
328165
328571
|
var children = _ref.children,
|
|
328166
328572
|
locked = _ref.locked,
|
|
328167
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
328573
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2q);
|
|
328168
328574
|
|
|
328169
328575
|
var context = React.useContext(MenuContext$3);
|
|
328170
328576
|
var inheritableContext = useMemo$1(function () {
|
|
@@ -328208,7 +328614,7 @@
|
|
|
328208
328614
|
return ret;
|
|
328209
328615
|
}
|
|
328210
328616
|
|
|
328211
|
-
var _excluded$
|
|
328617
|
+
var _excluded$2r = ["item"];
|
|
328212
328618
|
/**
|
|
328213
328619
|
* `onClick` event return `info.item` which point to react node directly.
|
|
328214
328620
|
* We should warning this since it will not work on FC.
|
|
@@ -328216,7 +328622,7 @@
|
|
|
328216
328622
|
|
|
328217
328623
|
function warnItemProp$2(_ref) {
|
|
328218
328624
|
var item = _ref.item,
|
|
328219
|
-
restInfo = _objectWithoutProperties(_ref, _excluded$
|
|
328625
|
+
restInfo = _objectWithoutProperties(_ref, _excluded$2r);
|
|
328220
328626
|
|
|
328221
328627
|
Object.defineProperty(restInfo, 'item', {
|
|
328222
328628
|
get: function get() {
|
|
@@ -328295,7 +328701,7 @@
|
|
|
328295
328701
|
|
|
328296
328702
|
var PrivateContext$2 = /*#__PURE__*/React.createContext({});
|
|
328297
328703
|
|
|
328298
|
-
var _excluded$
|
|
328704
|
+
var _excluded$2s = ["title", "attribute", "elementRef"],
|
|
328299
328705
|
_excluded2$z = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"],
|
|
328300
328706
|
_excluded3$a = ["active"];
|
|
328301
328707
|
// We have to use class component here.
|
|
@@ -328319,7 +328725,7 @@
|
|
|
328319
328725
|
title = _this$props.title,
|
|
328320
328726
|
attribute = _this$props.attribute,
|
|
328321
328727
|
elementRef = _this$props.elementRef,
|
|
328322
|
-
restProps = _objectWithoutProperties(_this$props, _excluded$
|
|
328728
|
+
restProps = _objectWithoutProperties(_this$props, _excluded$2s);
|
|
328323
328729
|
|
|
328324
328730
|
var passedProps = omit(restProps, ['eventKey']);
|
|
328325
328731
|
warningOnce(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
@@ -328494,7 +328900,7 @@
|
|
|
328494
328900
|
return /*#__PURE__*/React.createElement(InternalMenuItem$2, props);
|
|
328495
328901
|
}
|
|
328496
328902
|
|
|
328497
|
-
var _excluded$
|
|
328903
|
+
var _excluded$2t = ["label", "children", "key", "type"];
|
|
328498
328904
|
function parseChildren$2(children, keyPath) {
|
|
328499
328905
|
return toArray(children).map(function (child, index) {
|
|
328500
328906
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -328531,7 +328937,7 @@
|
|
|
328531
328937
|
children = opt.children,
|
|
328532
328938
|
key = opt.key,
|
|
328533
328939
|
type = opt.type,
|
|
328534
|
-
restProps = _objectWithoutProperties(opt, _excluded$
|
|
328940
|
+
restProps = _objectWithoutProperties(opt, _excluded$2t);
|
|
328535
328941
|
|
|
328536
328942
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index); // MenuItemGroup & SubMenuItem
|
|
328537
328943
|
|
|
@@ -328601,12 +329007,12 @@
|
|
|
328601
329007
|
return func ? callback : undefined;
|
|
328602
329008
|
}
|
|
328603
329009
|
|
|
328604
|
-
var _excluded$
|
|
329010
|
+
var _excluded$2u = ["className", "children"];
|
|
328605
329011
|
|
|
328606
329012
|
var InternalSubMenuList$2 = function InternalSubMenuList(_ref, ref) {
|
|
328607
329013
|
var className = _ref.className,
|
|
328608
329014
|
children = _ref.children,
|
|
328609
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
329015
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2u);
|
|
328610
329016
|
|
|
328611
329017
|
var _React$useContext = React.useContext(MenuContext$3),
|
|
328612
329018
|
prefixCls = _React$useContext.prefixCls,
|
|
@@ -328835,7 +329241,7 @@
|
|
|
328835
329241
|
}));
|
|
328836
329242
|
}
|
|
328837
329243
|
|
|
328838
|
-
var _excluded$
|
|
329244
|
+
var _excluded$2v = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"],
|
|
328839
329245
|
_excluded2$A = ["active"];
|
|
328840
329246
|
|
|
328841
329247
|
var InternalSubMenu$2 = function InternalSubMenu(props) {
|
|
@@ -328859,7 +329265,7 @@
|
|
|
328859
329265
|
onTitleClick = props.onTitleClick,
|
|
328860
329266
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
328861
329267
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
328862
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
329268
|
+
restProps = _objectWithoutProperties(props, _excluded$2v);
|
|
328863
329269
|
|
|
328864
329270
|
var domDataId = useMenuId$2(eventKey);
|
|
328865
329271
|
|
|
@@ -329530,7 +329936,7 @@
|
|
|
329530
329936
|
};
|
|
329531
329937
|
}
|
|
329532
329938
|
|
|
329533
|
-
var _excluded$
|
|
329939
|
+
var _excluded$2w = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem"];
|
|
329534
329940
|
/**
|
|
329535
329941
|
* Menu modify after refactor:
|
|
329536
329942
|
* ## Add
|
|
@@ -329602,7 +330008,7 @@
|
|
|
329602
330008
|
openTransitionName = props.openTransitionName,
|
|
329603
330009
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
329604
330010
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
329605
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
330011
|
+
restProps = _objectWithoutProperties(props, _excluded$2w);
|
|
329606
330012
|
|
|
329607
330013
|
var childList = React.useMemo(function () {
|
|
329608
330014
|
return parseItems$2(children, items, EMPTY_LIST$6);
|
|
@@ -329952,7 +330358,7 @@
|
|
|
329952
330358
|
}, childList)))));
|
|
329953
330359
|
});
|
|
329954
330360
|
|
|
329955
|
-
var _excluded$
|
|
330361
|
+
var _excluded$2x = ["className", "title", "eventKey", "children"],
|
|
329956
330362
|
_excluded2$B = ["children"];
|
|
329957
330363
|
|
|
329958
330364
|
var InternalMenuItemGroup$2 = function InternalMenuItemGroup(_ref) {
|
|
@@ -329960,7 +330366,7 @@
|
|
|
329960
330366
|
title = _ref.title,
|
|
329961
330367
|
eventKey = _ref.eventKey,
|
|
329962
330368
|
children = _ref.children,
|
|
329963
|
-
restProps = _objectWithoutProperties(_ref, _excluded$
|
|
330369
|
+
restProps = _objectWithoutProperties(_ref, _excluded$2x);
|
|
329964
330370
|
|
|
329965
330371
|
var _React$useContext = React.useContext(MenuContext$3),
|
|
329966
330372
|
prefixCls = _React$useContext.prefixCls;
|
|
@@ -330327,7 +330733,7 @@
|
|
|
330327
330733
|
return update;
|
|
330328
330734
|
}
|
|
330329
330735
|
|
|
330330
|
-
var _excluded$
|
|
330736
|
+
var _excluded$2y = ["prefixCls", "className", "style", "prefix", "split", "notFoundContent", "value", "defaultValue", "children", "open", "validateSearch", "filterOption", "onChange", "onKeyDown", "onKeyUp", "onPressEnter", "onSearch", "onSelect", "onFocus", "onBlur", "transitionName", "placement", "direction", "getPopupContainer", "dropdownClassName"];
|
|
330331
330737
|
var Mentions = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
|
|
330332
330738
|
var prefixCls = props.prefixCls,
|
|
330333
330739
|
className = props.className,
|
|
@@ -330354,7 +330760,7 @@
|
|
|
330354
330760
|
direction = props.direction,
|
|
330355
330761
|
getPopupContainer = props.getPopupContainer,
|
|
330356
330762
|
dropdownClassName = props.dropdownClassName,
|
|
330357
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
330763
|
+
restProps = _objectWithoutProperties(props, _excluded$2y);
|
|
330358
330764
|
|
|
330359
330765
|
var mergedPrefix = Array.isArray(prefix) ? prefix : [prefix];
|
|
330360
330766
|
|
|
@@ -331592,7 +331998,7 @@
|
|
|
331592
331998
|
});
|
|
331593
331999
|
}
|
|
331594
332000
|
|
|
331595
|
-
var _excluded$
|
|
332001
|
+
var _excluded$2z = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
331596
332002
|
|
|
331597
332003
|
function getValidTitle(option) {
|
|
331598
332004
|
if (typeof option.title !== 'undefined') {
|
|
@@ -331671,7 +332077,7 @@
|
|
|
331671
332077
|
className = _props$className === void 0 ? '' : _props$className,
|
|
331672
332078
|
_props$motionName = props.motionName,
|
|
331673
332079
|
motionName = _props$motionName === void 0 ? 'thumb-motion' : _props$motionName,
|
|
331674
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
332080
|
+
restProps = _objectWithoutProperties(props, _excluded$2z);
|
|
331675
332081
|
|
|
331676
332082
|
var containerRef = React.useRef(null);
|
|
331677
332083
|
var mergedRef = React.useMemo(function () {
|
|
@@ -333278,7 +333684,7 @@
|
|
|
333278
333684
|
return [componentLocale];
|
|
333279
333685
|
}
|
|
333280
333686
|
|
|
333281
|
-
var _excluded$
|
|
333687
|
+
var _excluded$2A = ["icon"];
|
|
333282
333688
|
|
|
333283
333689
|
function toTooltipProps$1(tooltip) {
|
|
333284
333690
|
if (!tooltip) {
|
|
@@ -333339,7 +333745,7 @@
|
|
|
333339
333745
|
if (tooltipProps) {
|
|
333340
333746
|
var _tooltipProps$icon = tooltipProps.icon,
|
|
333341
333747
|
icon = _tooltipProps$icon === void 0 ? /*#__PURE__*/React.createElement(QuestionCircleOutlined$4, null) : _tooltipProps$icon,
|
|
333342
|
-
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$
|
|
333748
|
+
restTooltipProps = _objectWithoutProperties$1(tooltipProps, _excluded$2A);
|
|
333343
333749
|
|
|
333344
333750
|
var tooltipNode = /*#__PURE__*/React.createElement(Tooltip$6, _objectSpread({}, restTooltipProps), /*#__PURE__*/React.cloneElement(icon, {
|
|
333345
333751
|
className: "".concat(prefixCls, "-item-tooltip"),
|
|
@@ -333439,7 +333845,7 @@
|
|
|
333439
333845
|
}), dom));
|
|
333440
333846
|
};
|
|
333441
333847
|
|
|
333442
|
-
var _excluded$
|
|
333848
|
+
var _excluded$2B = ["prefixCls", "className", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "isRequired", "responsive", "errorPlacement", "onSubItemMetaChange"];
|
|
333443
333849
|
var iconMap$1 = {
|
|
333444
333850
|
success: CheckCircleFilled$4,
|
|
333445
333851
|
warning: ExclamationCircleFilled$4,
|
|
@@ -333466,7 +333872,7 @@
|
|
|
333466
333872
|
_props$errorPlacement = props.errorPlacement,
|
|
333467
333873
|
errorPlacement = _props$errorPlacement === void 0 ? 'default' : _props$errorPlacement,
|
|
333468
333874
|
onSubItemMetaChange = props.onSubItemMetaChange,
|
|
333469
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
333875
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2B);
|
|
333470
333876
|
|
|
333471
333877
|
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
333472
333878
|
|
|
@@ -333834,12 +334240,12 @@
|
|
|
333834
334240
|
var FormItem$1 = InternalFormItem$2;
|
|
333835
334241
|
FormItem$1.useStatus = useFormItemStatus$1;
|
|
333836
334242
|
|
|
333837
|
-
var _excluded$
|
|
334243
|
+
var _excluded$2C = ["prefixCls", "children"];
|
|
333838
334244
|
|
|
333839
334245
|
var FormList$1 = function FormList(_ref) {
|
|
333840
334246
|
var customizePrefixCls = _ref.prefixCls,
|
|
333841
334247
|
children = _ref.children,
|
|
333842
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
334248
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2C);
|
|
333843
334249
|
|
|
333844
334250
|
warning$6(!!props.name, 'Form.List', 'Miss `name` prop.');
|
|
333845
334251
|
|
|
@@ -333934,13 +334340,13 @@
|
|
|
333934
334340
|
}, children);
|
|
333935
334341
|
};
|
|
333936
334342
|
|
|
333937
|
-
var _excluded$
|
|
334343
|
+
var _excluded$2D = ["data-row-key", "children", "className"];
|
|
333938
334344
|
|
|
333939
334345
|
var SortableItem$1 = function SortableItem(props) {
|
|
333940
334346
|
var key = props['data-row-key'],
|
|
333941
334347
|
children = props.children,
|
|
333942
334348
|
className = props.className,
|
|
333943
|
-
resetField = _objectWithoutProperties$1(props, _excluded$
|
|
334349
|
+
resetField = _objectWithoutProperties$1(props, _excluded$2D);
|
|
333944
334350
|
|
|
333945
334351
|
var _useSortable = useSortable({
|
|
333946
334352
|
id: key
|
|
@@ -333961,14 +334367,16 @@
|
|
|
333961
334367
|
}, attributes), children);
|
|
333962
334368
|
};
|
|
333963
334369
|
|
|
333964
|
-
var _excluded$
|
|
334370
|
+
var _excluded$2E = ["children"];
|
|
333965
334371
|
var Item$5 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
334372
|
+
var _children$props;
|
|
334373
|
+
|
|
333966
334374
|
var children = _ref.children,
|
|
333967
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
334375
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2E);
|
|
333968
334376
|
|
|
333969
334377
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread(_objectSpread({}, props), {}, {
|
|
333970
334378
|
ref: ref
|
|
333971
|
-
}), children);
|
|
334379
|
+
}), (children === null || children === void 0 ? void 0 : (_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.children) || children);
|
|
333972
334380
|
});
|
|
333973
334381
|
function SortableItem$2(props) {
|
|
333974
334382
|
var _useSortable = useSortable({
|
|
@@ -333984,10 +334392,11 @@
|
|
|
333984
334392
|
position: 'relative',
|
|
333985
334393
|
transform: CSS.Translate.toString(transform),
|
|
333986
334394
|
transition: transition,
|
|
333987
|
-
padding: 0,
|
|
333988
334395
|
touchAction: 'none',
|
|
333989
334396
|
height: '40px',
|
|
333990
|
-
cursor: 'move'
|
|
334397
|
+
cursor: 'move',
|
|
334398
|
+
padding: '8px 10px',
|
|
334399
|
+
fontSize: '12px'
|
|
333991
334400
|
};
|
|
333992
334401
|
return /*#__PURE__*/React__default['default'].createElement(Item$5, _objectSpread(_objectSpread(_objectSpread({
|
|
333993
334402
|
ref: setNodeRef,
|
|
@@ -334015,18 +334424,24 @@
|
|
|
334015
334424
|
}));
|
|
334016
334425
|
};
|
|
334017
334426
|
|
|
334018
|
-
|
|
334427
|
+
function isObjEmpty(obj) {
|
|
334428
|
+
var _Object$keys;
|
|
334429
|
+
|
|
334430
|
+
return ((_Object$keys = Object.keys(obj || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0;
|
|
334431
|
+
}
|
|
334432
|
+
|
|
334433
|
+
var _excluded$2F = ["index"],
|
|
334019
334434
|
_excluded2$C = ["index"],
|
|
334020
334435
|
_excluded3$b = ["value", "onChange"],
|
|
334021
|
-
_excluded4$1 = ["record", "rowKey", "isEdit", "col", "handleTableRowDelete", "handleTableRowAdd", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
334436
|
+
_excluded4$1 = ["record", "rowKey", "isEdit", "col", "rowIndex", "colIndex", "handleTableRowDelete", "handleTableRowAdd", "quickOpetateClearAll", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"],
|
|
334022
334437
|
_excluded5 = ["onMouseEnter", "onMouseLeave"],
|
|
334023
|
-
_excluded6 = ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "quickOpetateClearAll", "rowSelection", "sortOpen", "colSortOpen", "filterChange", "size"];
|
|
334438
|
+
_excluded6 = ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "quickOpetateClearAll", "rowSelection", "sortOpen", "colSortOpen", "filterChange", "size", "recordCreatorProps"];
|
|
334024
334439
|
var UploadBtn$1 = UploadOss.UploadBtn;
|
|
334025
334440
|
var EditableContext$1 = /*#__PURE__*/React__default['default'].createContext(null); // 表格行
|
|
334026
334441
|
|
|
334027
334442
|
var EditableRow$1 = function EditableRow(_ref) {
|
|
334028
334443
|
var index = _ref.index,
|
|
334029
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
334444
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2F);
|
|
334030
334445
|
|
|
334031
334446
|
var _Form$useForm = Form$4.useForm(),
|
|
334032
334447
|
_Form$useForm2 = _slicedToArray$1(_Form$useForm, 1),
|
|
@@ -334139,7 +334554,9 @@
|
|
|
334139
334554
|
handleAdd = _ref4.handleAdd,
|
|
334140
334555
|
handleDelete = _ref4.handleDelete,
|
|
334141
334556
|
_ref4$options = _ref4.options,
|
|
334142
|
-
options = _ref4$options === void 0 ? ['add', 'delete'] : _ref4$options
|
|
334557
|
+
options = _ref4$options === void 0 ? ['add', 'delete'] : _ref4$options,
|
|
334558
|
+
getLength = _ref4.getLength,
|
|
334559
|
+
quickOpetateClearAll = _ref4.quickOpetateClearAll;
|
|
334143
334560
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
334144
334561
|
style: {
|
|
334145
334562
|
display: 'flex',
|
|
@@ -334149,6 +334566,7 @@
|
|
|
334149
334566
|
}, options.includes('delete') && /*#__PURE__*/React__default['default'].createElement(LMButton, {
|
|
334150
334567
|
type: "link",
|
|
334151
334568
|
size: "small",
|
|
334569
|
+
disabled: !quickOpetateClearAll && getLength < 2,
|
|
334152
334570
|
icon: /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
334153
334571
|
type: "lmweb-minus-circle",
|
|
334154
334572
|
style: {
|
|
@@ -334193,8 +334611,11 @@
|
|
|
334193
334611
|
isEdit = props.isEdit,
|
|
334194
334612
|
_props$col = props.col,
|
|
334195
334613
|
col = _props$col === void 0 ? {} : _props$col,
|
|
334614
|
+
rowIndex = props.rowIndex,
|
|
334615
|
+
colIndex = props.colIndex,
|
|
334196
334616
|
handleTableRowDelete = props.handleTableRowDelete,
|
|
334197
334617
|
handleTableRowAdd = props.handleTableRowAdd,
|
|
334618
|
+
quickOpetateClearAll = props.quickOpetateClearAll,
|
|
334198
334619
|
getLength = props.getLength,
|
|
334199
334620
|
isHoverEdit = props.isHoverEdit,
|
|
334200
334621
|
editEnum = props.editEnum,
|
|
@@ -334252,20 +334673,24 @@
|
|
|
334252
334673
|
switch (_context.prev = _context.next) {
|
|
334253
334674
|
case 0:
|
|
334254
334675
|
_context.prev = 0;
|
|
334255
|
-
_context.t0 = row;
|
|
334256
334676
|
|
|
334257
|
-
if (
|
|
334258
|
-
_context.next =
|
|
334677
|
+
if (!row) {
|
|
334678
|
+
_context.next = 5;
|
|
334259
334679
|
break;
|
|
334260
334680
|
}
|
|
334261
334681
|
|
|
334262
|
-
_context.
|
|
334263
|
-
|
|
334682
|
+
_context.t0 = lodash.omit(row, 'onChange');
|
|
334683
|
+
_context.next = 8;
|
|
334684
|
+
break;
|
|
334264
334685
|
|
|
334265
334686
|
case 5:
|
|
334687
|
+
_context.next = 7;
|
|
334688
|
+
return form.getFieldsValue();
|
|
334689
|
+
|
|
334690
|
+
case 7:
|
|
334266
334691
|
_context.t0 = _context.sent;
|
|
334267
334692
|
|
|
334268
|
-
case
|
|
334693
|
+
case 8:
|
|
334269
334694
|
values = _context.t0;
|
|
334270
334695
|
resultComponentProps = lodash.isFunction(componentProps) ? componentProps === null || componentProps === void 0 ? void 0 : componentProps(record, col) : componentProps; // console.time('testForEach');
|
|
334271
334696
|
|
|
@@ -334283,10 +334708,10 @@
|
|
|
334283
334708
|
} // console.timeEnd('testForEach');
|
|
334284
334709
|
|
|
334285
334710
|
|
|
334286
|
-
_context.next =
|
|
334711
|
+
_context.next = 13;
|
|
334287
334712
|
return form.validateFields();
|
|
334288
334713
|
|
|
334289
|
-
case
|
|
334714
|
+
case 13:
|
|
334290
334715
|
if (col === null || col === void 0 ? void 0 : col.hoverEdit) {
|
|
334291
334716
|
toggleEdit();
|
|
334292
334717
|
} // // 清空异常校验
|
|
@@ -334297,19 +334722,19 @@
|
|
|
334297
334722
|
// })
|
|
334298
334723
|
|
|
334299
334724
|
|
|
334300
|
-
_context.next =
|
|
334725
|
+
_context.next = 18;
|
|
334301
334726
|
break;
|
|
334302
334727
|
|
|
334303
|
-
case
|
|
334304
|
-
_context.prev =
|
|
334728
|
+
case 16:
|
|
334729
|
+
_context.prev = 16;
|
|
334305
334730
|
_context.t1 = _context["catch"](0);
|
|
334306
334731
|
|
|
334307
|
-
case
|
|
334732
|
+
case 18:
|
|
334308
334733
|
case "end":
|
|
334309
334734
|
return _context.stop();
|
|
334310
334735
|
}
|
|
334311
334736
|
}
|
|
334312
|
-
}, _callee, null, [[0,
|
|
334737
|
+
}, _callee, null, [[0, 16]]);
|
|
334313
334738
|
}));
|
|
334314
334739
|
|
|
334315
334740
|
return function save(_x) {
|
|
@@ -334319,13 +334744,7 @@
|
|
|
334319
334744
|
|
|
334320
334745
|
|
|
334321
334746
|
var handleFormItemChange = function handleFormItemChange(e) {
|
|
334322
|
-
save === null || save === void 0 ? void 0 : save();
|
|
334323
|
-
// if (componentProps.isOnlyValue !== undefined) {
|
|
334324
|
-
// console.log(777)
|
|
334325
|
-
// handleCopy?.(dataIndex, componentProps.isOnlyValue)
|
|
334326
|
-
// } else {
|
|
334327
|
-
// save?.()
|
|
334328
|
-
// }
|
|
334747
|
+
save === null || save === void 0 ? void 0 : save();
|
|
334329
334748
|
};
|
|
334330
334749
|
/** 快捷刷子,把当前的所有列的值,刷成当前的选中的列 */
|
|
334331
334750
|
|
|
@@ -334435,10 +334854,11 @@
|
|
|
334435
334854
|
}, resultComponentProps));
|
|
334436
334855
|
|
|
334437
334856
|
case 'switch':
|
|
334438
|
-
return /*#__PURE__*/React__default['default'].createElement(Switch$2, {
|
|
334439
|
-
size: 'small'
|
|
334857
|
+
return /*#__PURE__*/React__default['default'].createElement(Switch$2, _objectSpread(_objectSpread({
|
|
334858
|
+
size: 'small'
|
|
334859
|
+
}, resultComponentProps), {}, {
|
|
334440
334860
|
onChange: handleFormItemChange
|
|
334441
|
-
});
|
|
334861
|
+
}));
|
|
334442
334862
|
|
|
334443
334863
|
case 'upload':
|
|
334444
334864
|
return /*#__PURE__*/React__default['default'].createElement(UploadSingle$1, {
|
|
@@ -334455,13 +334875,15 @@
|
|
|
334455
334875
|
ref: inputRef,
|
|
334456
334876
|
handleAdd: handleTableRowAdd,
|
|
334457
334877
|
handleDelete: handleTableRowDelete,
|
|
334458
|
-
getLength: getLength
|
|
334878
|
+
getLength: getLength,
|
|
334879
|
+
quickOpetateClearAll: quickOpetateClearAll
|
|
334459
334880
|
}, resultComponentProps));
|
|
334460
334881
|
|
|
334461
334882
|
case 'render':
|
|
334462
334883
|
{
|
|
334463
334884
|
var render = resultComponentProps.render;
|
|
334464
|
-
|
|
334885
|
+
var fromData = form.getFieldsValue();
|
|
334886
|
+
return render === null || render === void 0 ? void 0 : render(_objectSpread(_objectSpread({}, !isObjEmpty(fromData) ? fromData : record), {}, {
|
|
334465
334887
|
onChange: save
|
|
334466
334888
|
}));
|
|
334467
334889
|
}
|
|
@@ -334516,7 +334938,7 @@
|
|
|
334516
334938
|
}
|
|
334517
334939
|
|
|
334518
334940
|
return childNode;
|
|
334519
|
-
}, [col, isEdit, editing]); // const [childNode, setChildNode] = useState(getMemoChildNode);
|
|
334941
|
+
}, [col, isEdit, editing, getLength]); // const [childNode, setChildNode] = useState(getMemoChildNode);
|
|
334520
334942
|
// 出现死循环找我
|
|
334521
334943
|
|
|
334522
334944
|
React.useEffect(function () {
|
|
@@ -334534,38 +334956,11 @@
|
|
|
334534
334956
|
// })
|
|
334535
334957
|
// }
|
|
334536
334958
|
|
|
334537
|
-
}, [record]);
|
|
334538
|
-
// const classNames = cx({
|
|
334539
|
-
// 'lm_base_editTable_cell': true,
|
|
334540
|
-
// 'lm_base_editTable_cell_edit': isOpenEdit || (isHoverEdit && !curValueIsValid),
|
|
334541
|
-
// });
|
|
334542
|
-
// const extensionConfig = {};
|
|
334543
|
-
// const mouseEnterCell = () => {
|
|
334544
|
-
// focusCapturedRef.current = true;
|
|
334545
|
-
// const newChildNode = getMemoChildNode;
|
|
334546
|
-
// setChildNode(newChildNode);
|
|
334547
|
-
// };
|
|
334548
|
-
// const mouseLeaveCell = () => {
|
|
334549
|
-
// focusCapturedRef.current = false;
|
|
334550
|
-
// const nextValue = form.getFieldValue(dataIndex);
|
|
334551
|
-
// const prevValue = get(record, dataIndex);
|
|
334552
|
-
// if (!eq(prevValue, nextValue)) {
|
|
334553
|
-
// const rowValue = get(record, rowKey);
|
|
334554
|
-
// reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue);
|
|
334555
|
-
// } else {
|
|
334556
|
-
// const newChildNode = getDefaultChildNode(false);
|
|
334557
|
-
// setChildNode(newChildNode);
|
|
334558
|
-
// }
|
|
334559
|
-
// };
|
|
334560
|
-
// if (isHoverEdit && record?.editable) {
|
|
334561
|
-
// console.log('ssssbbb')
|
|
334562
|
-
// set(extensionConfig, 'onMouseEnter', mouseEnterCell);
|
|
334563
|
-
// set(extensionConfig, 'onMouseLeave', mouseLeaveCell);
|
|
334564
|
-
// }
|
|
334565
|
-
|
|
334959
|
+
}, [record]);
|
|
334566
334960
|
return /*#__PURE__*/React__default['default'].createElement("td", _objectSpread(_objectSpread({}, clearProps), {}, {
|
|
334567
|
-
|
|
334568
|
-
|
|
334961
|
+
className: classnames(clearProps === null || clearProps === void 0 ? void 0 : clearProps.className, 'lm_custom_cell_td'),
|
|
334962
|
+
key: "r".concat(rowIndex, "_c").concat(colIndex)
|
|
334963
|
+
}), getMemoChildNode);
|
|
334569
334964
|
};
|
|
334570
334965
|
|
|
334571
334966
|
var EditTable$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -334589,6 +334984,7 @@
|
|
|
334589
334984
|
filterChange = props.filterChange,
|
|
334590
334985
|
_props$size = props.size,
|
|
334591
334986
|
size = _props$size === void 0 ? 'small' : _props$size,
|
|
334987
|
+
recordCreatorProps = props.recordCreatorProps,
|
|
334592
334988
|
resetProps = _objectWithoutProperties$1(props, _excluded6);
|
|
334593
334989
|
|
|
334594
334990
|
var _useState3 = React.useState([]),
|
|
@@ -334633,14 +335029,12 @@
|
|
|
334633
335029
|
};
|
|
334634
335030
|
|
|
334635
335031
|
var onColSortEnd = function onColSortEnd(active, over) {
|
|
334636
|
-
console.log(active, over, 2223);
|
|
334637
335032
|
var oldIndex = columns.findIndex(function (item) {
|
|
334638
335033
|
return item.dataIndex === active;
|
|
334639
335034
|
});
|
|
334640
335035
|
var newIndex = columns.findIndex(function (item) {
|
|
334641
335036
|
return item.dataIndex === over;
|
|
334642
335037
|
});
|
|
334643
|
-
console.log(arrayMove(columns, oldIndex, newIndex), 222);
|
|
334644
335038
|
filterChange === null || filterChange === void 0 ? void 0 : filterChange(arrayMove(columns, oldIndex, newIndex).map(function (item, index) {
|
|
334645
335039
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
334646
335040
|
order: index
|
|
@@ -334659,8 +335053,11 @@
|
|
|
334659
335053
|
|
|
334660
335054
|
|
|
334661
335055
|
var handleAdd = function handleAdd(row) {
|
|
335056
|
+
var _recordCreatorProps$i;
|
|
335057
|
+
|
|
335058
|
+
var addDataInfo = lodash.isFunction(recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.initData) ? recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : (_recordCreatorProps$i = recordCreatorProps.initData) === null || _recordCreatorProps$i === void 0 ? void 0 : _recordCreatorProps$i.call(recordCreatorProps) : recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.initData;
|
|
334662
335059
|
var res = fn(dataSourceRef.current, function (draft) {
|
|
334663
|
-
draft.push(_defineProperty({}, _rowKey, "".concat(Date.now())));
|
|
335060
|
+
draft.push(_objectSpread(_defineProperty({}, _rowKey, "".concat(Date.now())), addDataInfo || {}));
|
|
334664
335061
|
});
|
|
334665
335062
|
setDataSource(res);
|
|
334666
335063
|
onChange === null || onChange === void 0 ? void 0 : onChange(res);
|
|
@@ -334856,7 +335253,7 @@
|
|
|
334856
335253
|
});
|
|
334857
335254
|
var newOptions = options.map(function (o) {
|
|
334858
335255
|
return _objectSpread(_objectSpread({}, o), {}, {
|
|
334859
|
-
disabled: dataIndexData.includes(o === null || o === void 0 ? void 0 : o.value)
|
|
335256
|
+
disabled: !!dataIndexData.includes(o === null || o === void 0 ? void 0 : o.value)
|
|
334860
335257
|
});
|
|
334861
335258
|
});
|
|
334862
335259
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -334873,15 +335270,8 @@
|
|
|
334873
335270
|
var memoOptions = React.useMemo(function () {
|
|
334874
335271
|
return hasDisableOptions ? [DisableOptions] : [];
|
|
334875
335272
|
}, [hasDisableOptions, DisableOptions]);
|
|
334876
|
-
|
|
334877
|
-
var getDataSourceLen = function getDataSourceLen() {
|
|
334878
|
-
var _dataSourceRef$curren2;
|
|
334879
|
-
|
|
334880
|
-
return (_dataSourceRef$curren2 = dataSourceRef.current) === null || _dataSourceRef$curren2 === void 0 ? void 0 : _dataSourceRef$curren2.length;
|
|
334881
|
-
};
|
|
334882
335273
|
/** 组装之后的最终columns */
|
|
334883
335274
|
|
|
334884
|
-
|
|
334885
335275
|
var resultColumns = React.useMemo(function () {
|
|
334886
335276
|
var rColumns = hasDisableOptions ? DisableOptions : columns;
|
|
334887
335277
|
var localColumns = [sortOpen ? {
|
|
@@ -334927,7 +335317,7 @@
|
|
|
334927
335317
|
}
|
|
334928
335318
|
});
|
|
334929
335319
|
localColumns = [].concat(leftColumns, mainColumns, rightColumns);
|
|
334930
|
-
var res = localColumns.map(function (col) {
|
|
335320
|
+
var res = localColumns.map(function (col, index) {
|
|
334931
335321
|
if (!col.editable) {
|
|
334932
335322
|
return col;
|
|
334933
335323
|
}
|
|
@@ -334936,20 +335326,25 @@
|
|
|
334936
335326
|
shouldCellUpdate: function shouldCellUpdate(record, prevRecord) {
|
|
334937
335327
|
var _col$componentProps2;
|
|
334938
335328
|
|
|
334939
|
-
var dataIndex = col.dataIndex
|
|
335329
|
+
var dataIndex = col.dataIndex,
|
|
335330
|
+
editable = col.editable,
|
|
335331
|
+
relevanceCols = col.relevanceCols;
|
|
334940
335332
|
|
|
334941
|
-
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_col$componentProps2 = col.componentProps) === null || _col$componentProps2 === void 0 ? void 0 : _col$componentProps2.options)) {
|
|
335333
|
+
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_col$componentProps2 = col.componentProps) === null || _col$componentProps2 === void 0 ? void 0 : _col$componentProps2.options) || editable === 'render' || !!relevanceCols) {
|
|
334942
335334
|
return true;
|
|
334943
335335
|
}
|
|
334944
335336
|
|
|
334945
|
-
return record[dataIndex]
|
|
335337
|
+
return record[dataIndex] !== prevRecord[dataIndex];
|
|
334946
335338
|
},
|
|
334947
|
-
onCell: function onCell(record) {
|
|
335339
|
+
onCell: function onCell(record, rowIndex) {
|
|
334948
335340
|
return {
|
|
334949
|
-
getLength:
|
|
335341
|
+
getLength: dataSource.length,
|
|
334950
335342
|
rowKey: _rowKey,
|
|
334951
335343
|
record: record,
|
|
334952
335344
|
col: col,
|
|
335345
|
+
rowIndex: rowIndex,
|
|
335346
|
+
colIndex: index,
|
|
335347
|
+
quickOpetateClearAll: quickOpetateClearAll,
|
|
334953
335348
|
handleTableRowDelete: handleTableRowDelete,
|
|
334954
335349
|
handleTableRowAdd: handleTableRowAdd,
|
|
334955
335350
|
editable: col.editable,
|
|
@@ -334972,14 +335367,14 @@
|
|
|
334972
335367
|
return res;
|
|
334973
335368
|
}, [columns, isAdd, sortOpen, useQuickOpetate, sortEditTable, dataSource, _toConsumableArray$1(memoOptions)]);
|
|
334974
335369
|
var DraggableContainer = React.useCallback(function (_ref7) {
|
|
334975
|
-
var _dataSourceRef$
|
|
335370
|
+
var _dataSourceRef$curren2;
|
|
334976
335371
|
|
|
334977
335372
|
var props = _extends$2({}, _ref7);
|
|
334978
335373
|
|
|
334979
335374
|
return /*#__PURE__*/React__default['default'].createElement(DndContainer$1, {
|
|
334980
335375
|
move: onSortEnd
|
|
334981
335376
|
}, /*#__PURE__*/React__default['default'].createElement(SortableBox$1, {
|
|
334982
|
-
items: (_dataSourceRef$
|
|
335377
|
+
items: (_dataSourceRef$curren2 = dataSourceRef.current) === null || _dataSourceRef$curren2 === void 0 ? void 0 : _dataSourceRef$curren2.map(function (item) {
|
|
334983
335378
|
return item[_rowKey];
|
|
334984
335379
|
})
|
|
334985
335380
|
}, /*#__PURE__*/React__default['default'].createElement("tbody", _objectSpread({}, props))));
|
|
@@ -335110,12 +335505,12 @@
|
|
|
335110
335505
|
className: "lm_editTable_add_bar",
|
|
335111
335506
|
type: "dashed",
|
|
335112
335507
|
onClick: handleAdd,
|
|
335113
|
-
style: {
|
|
335508
|
+
style: _objectSpread({
|
|
335114
335509
|
marginTop: 8
|
|
335115
|
-
}
|
|
335510
|
+
}, (recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.style) || {})
|
|
335116
335511
|
}, /*#__PURE__*/React__default['default'].createElement(IconFont, {
|
|
335117
335512
|
type: "lmweb-plus"
|
|
335118
|
-
}),
|
|
335513
|
+
}), (recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.creatorButtonText) || '新增'));
|
|
335119
335514
|
});
|
|
335120
335515
|
var LmEditTable = /*#__PURE__*/React.memo(EditTable$1);
|
|
335121
335516
|
|
|
@@ -335788,7 +336183,7 @@
|
|
|
335788
336183
|
}
|
|
335789
336184
|
}
|
|
335790
336185
|
|
|
335791
|
-
var _excluded$
|
|
336186
|
+
var _excluded$2G = ["prefixCls", "getPopupContainer", "className", "placement", "size", "disabled", "bordered", "placeholder", "status"];
|
|
335792
336187
|
function generateRangePicker$1(generateConfig) {
|
|
335793
336188
|
var RangePicker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
335794
336189
|
var customizePrefixCls = props.prefixCls,
|
|
@@ -335801,7 +336196,7 @@
|
|
|
335801
336196
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
335802
336197
|
placeholder = props.placeholder,
|
|
335803
336198
|
customStatus = props.status,
|
|
335804
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
336199
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2G);
|
|
335805
336200
|
|
|
335806
336201
|
var innerRef = React.useRef(null);
|
|
335807
336202
|
|
|
@@ -335901,7 +336296,7 @@
|
|
|
335901
336296
|
return RangePicker$1;
|
|
335902
336297
|
}
|
|
335903
336298
|
|
|
335904
|
-
var _excluded$
|
|
336299
|
+
var _excluded$2H = ["prefixCls", "getPopupContainer", "className", "size", "bordered", "placement", "placeholder", "disabled", "status"];
|
|
335905
336300
|
function generatePicker$2(generateConfig) {
|
|
335906
336301
|
function getPicker(picker, displayName) {
|
|
335907
336302
|
var Picker$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -335915,7 +336310,7 @@
|
|
|
335915
336310
|
placeholder = props.placeholder,
|
|
335916
336311
|
customDisabled = props.disabled,
|
|
335917
336312
|
customStatus = props.status,
|
|
335918
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
336313
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2H);
|
|
335919
336314
|
|
|
335920
336315
|
console.log(restProps, '---restProps');
|
|
335921
336316
|
warning$6(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly."));
|
|
@@ -336138,13 +336533,13 @@
|
|
|
336138
336533
|
return propValue;
|
|
336139
336534
|
};
|
|
336140
336535
|
|
|
336141
|
-
var _excluded$
|
|
336536
|
+
var _excluded$2I = ["prefixCls", "title", "content", "_overlay"];
|
|
336142
336537
|
var Popover$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
336143
336538
|
var customizePrefixCls = _ref.prefixCls,
|
|
336144
336539
|
title = _ref.title,
|
|
336145
336540
|
content = _ref.content,
|
|
336146
336541
|
_overlay = _ref._overlay,
|
|
336147
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
336542
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$2I);
|
|
336148
336543
|
|
|
336149
336544
|
var _React$useContext = React.useContext(ConfigContext),
|
|
336150
336545
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -337030,7 +337425,7 @@
|
|
|
337030
337425
|
|
|
337031
337426
|
var KeyCode$1 = /*@__PURE__*/getDefaultExportFromCjs(KeyCode_1);
|
|
337032
337427
|
|
|
337033
|
-
var _excluded$
|
|
337428
|
+
var _excluded$2J = ["style", "noStyle", "disabled"];
|
|
337034
337429
|
var inlineStyle$1 = {
|
|
337035
337430
|
border: 0,
|
|
337036
337431
|
background: 'transparent',
|
|
@@ -337059,7 +337454,7 @@
|
|
|
337059
337454
|
var style = props.style,
|
|
337060
337455
|
noStyle = props.noStyle,
|
|
337061
337456
|
disabled = props.disabled,
|
|
337062
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
337457
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2J);
|
|
337063
337458
|
|
|
337064
337459
|
var mergedStyle = {};
|
|
337065
337460
|
|
|
@@ -337270,7 +337665,7 @@
|
|
|
337270
337665
|
}, conditions);
|
|
337271
337666
|
});
|
|
337272
337667
|
|
|
337273
|
-
var _excluded$
|
|
337668
|
+
var _excluded$2K = ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"];
|
|
337274
337669
|
|
|
337275
337670
|
var Typography$2 = function Typography(_ref, ref) {
|
|
337276
337671
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -337280,7 +337675,7 @@
|
|
|
337280
337675
|
ariaLabel = _ref['aria-label'],
|
|
337281
337676
|
setContentRef = _ref.setContentRef,
|
|
337282
337677
|
children = _ref.children,
|
|
337283
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
337678
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2K);
|
|
337284
337679
|
|
|
337285
337680
|
var _React$useContext = React.useContext(ConfigContext),
|
|
337286
337681
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -337523,7 +337918,7 @@
|
|
|
337523
337918
|
EllipsisTooltip$1.displayName = 'EllipsisTooltip';
|
|
337524
337919
|
}
|
|
337525
337920
|
|
|
337526
|
-
var _excluded$
|
|
337921
|
+
var _excluded$2L = ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"];
|
|
337527
337922
|
|
|
337528
337923
|
function wrapperDecorations$1(_ref, content) {
|
|
337529
337924
|
var mark = _ref.mark,
|
|
@@ -337575,7 +337970,7 @@
|
|
|
337575
337970
|
copyable = props.copyable,
|
|
337576
337971
|
component = props.component,
|
|
337577
337972
|
title = props.title,
|
|
337578
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
337973
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2L);
|
|
337579
337974
|
|
|
337580
337975
|
var _React$useContext = React.useContext(ConfigContext),
|
|
337581
337976
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -337993,12 +338388,12 @@
|
|
|
337993
338388
|
});
|
|
337994
338389
|
});
|
|
337995
338390
|
|
|
337996
|
-
var _excluded$
|
|
338391
|
+
var _excluded$2M = ["ellipsis", "rel"];
|
|
337997
338392
|
|
|
337998
338393
|
var Link$2 = function Link(_ref, ref) {
|
|
337999
338394
|
var ellipsis = _ref.ellipsis,
|
|
338000
338395
|
rel = _ref.rel,
|
|
338001
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
338396
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2M);
|
|
338002
338397
|
|
|
338003
338398
|
warning$6(_typeof$1(ellipsis) !== 'object', 'Typography.Link', '`ellipsis` only supports boolean value.');
|
|
338004
338399
|
var baseRef = React.useRef(null);
|
|
@@ -338032,11 +338427,11 @@
|
|
|
338032
338427
|
|
|
338033
338428
|
var Paragraph$7 = /*#__PURE__*/React.forwardRef(Paragraph$6);
|
|
338034
338429
|
|
|
338035
|
-
var _excluded$
|
|
338430
|
+
var _excluded$2N = ["ellipsis"];
|
|
338036
338431
|
|
|
338037
338432
|
var Text$4 = function Text(_ref, ref) {
|
|
338038
338433
|
var ellipsis = _ref.ellipsis,
|
|
338039
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
338434
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2N);
|
|
338040
338435
|
|
|
338041
338436
|
var mergedEllipsis = React.useMemo(function () {
|
|
338042
338437
|
if (ellipsis && _typeof$1(ellipsis) === 'object') {
|
|
@@ -338056,13 +338451,13 @@
|
|
|
338056
338451
|
|
|
338057
338452
|
var Text$5 = /*#__PURE__*/React.forwardRef(Text$4);
|
|
338058
338453
|
|
|
338059
|
-
var _excluded$
|
|
338454
|
+
var _excluded$2O = ["level"];
|
|
338060
338455
|
var TITLE_ELE_LIST$1 = tupleNum$1(1, 2, 3, 4, 5);
|
|
338061
338456
|
|
|
338062
338457
|
var Title$3 = function Title(props, ref) {
|
|
338063
338458
|
var _props$level = props.level,
|
|
338064
338459
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
338065
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
338460
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2O);
|
|
338066
338461
|
|
|
338067
338462
|
var component;
|
|
338068
338463
|
|
|
@@ -338240,7 +338635,7 @@
|
|
|
338240
338635
|
return ErrorBoundary;
|
|
338241
338636
|
}(React.Component);
|
|
338242
338637
|
|
|
338243
|
-
var _excluded$
|
|
338638
|
+
var _excluded$2P = ["description", "prefixCls", "message", "banner", "className", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "duration"];
|
|
338244
338639
|
var iconMapFilled$1 = {
|
|
338245
338640
|
success: CheckCircleFilled$2,
|
|
338246
338641
|
info: InfoCircleFilled$2,
|
|
@@ -338313,7 +338708,7 @@
|
|
|
338313
338708
|
closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/React.createElement(CloseOutlined$2, null) : _ref$closeIcon,
|
|
338314
338709
|
action = _ref.action,
|
|
338315
338710
|
duration = _ref.duration,
|
|
338316
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
338711
|
+
props = _objectWithoutProperties$1(_ref, _excluded$2P);
|
|
338317
338712
|
|
|
338318
338713
|
var _React$useState = React.useState(false),
|
|
338319
338714
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
@@ -338743,7 +339138,7 @@
|
|
|
338743
339138
|
};
|
|
338744
339139
|
};
|
|
338745
339140
|
|
|
338746
|
-
var _excluded$
|
|
339141
|
+
var _excluded$2Q = ["className", "onUrge", "onDeleteComment"];
|
|
338747
339142
|
var prefixCls$d = 'lm_approval';
|
|
338748
339143
|
var colors = ['#36BCF1', '#AE86DC', '#8BD248', '#F5A173'];
|
|
338749
339144
|
var cacheColorMap = new Map();
|
|
@@ -339151,7 +339546,7 @@
|
|
|
339151
339546
|
onUrge = _props$onUrge === void 0 ? function () {} : _props$onUrge,
|
|
339152
339547
|
_props$onDeleteCommen2 = props.onDeleteComment,
|
|
339153
339548
|
onDeleteComment = _props$onDeleteCommen2 === void 0 ? function () {} : _props$onDeleteCommen2,
|
|
339154
|
-
others = _objectWithoutProperties$1(props, _excluded$
|
|
339549
|
+
others = _objectWithoutProperties$1(props, _excluded$2Q);
|
|
339155
339550
|
|
|
339156
339551
|
var _useState = React.useState(false),
|
|
339157
339552
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -340942,7 +341337,7 @@
|
|
|
340942
341337
|
return nodes;
|
|
340943
341338
|
}
|
|
340944
341339
|
|
|
340945
|
-
var _excluded$
|
|
341340
|
+
var _excluded$2R = ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"],
|
|
340946
341341
|
_excluded2$D = ["prefixCls", "className"];
|
|
340947
341342
|
var ConfigContext$4 = ConfigProvider$1.ConfigContext;
|
|
340948
341343
|
|
|
@@ -340967,7 +341362,7 @@
|
|
|
340967
341362
|
var defaultExpandAll = _ref2.defaultExpandAll,
|
|
340968
341363
|
defaultExpandParent = _ref2.defaultExpandParent,
|
|
340969
341364
|
defaultExpandedKeys = _ref2.defaultExpandedKeys,
|
|
340970
|
-
props = _objectWithoutProperties$1(_ref2, _excluded$
|
|
341365
|
+
props = _objectWithoutProperties$1(_ref2, _excluded$2R);
|
|
340971
341366
|
|
|
340972
341367
|
// Shift click usage
|
|
340973
341368
|
var lastSelectedKey = React.useRef();
|
|
@@ -341465,11 +341860,11 @@
|
|
|
341465
341860
|
blockNode: false
|
|
341466
341861
|
};
|
|
341467
341862
|
|
|
341468
|
-
var _excluded$
|
|
341863
|
+
var _excluded$2S = ["className"];
|
|
341469
341864
|
var prefixCls$e = 'lm_tree';
|
|
341470
341865
|
var LmTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
341471
341866
|
var className = props.className,
|
|
341472
|
-
rest = _objectWithoutProperties$1(props, _excluded$
|
|
341867
|
+
rest = _objectWithoutProperties$1(props, _excluded$2S);
|
|
341473
341868
|
|
|
341474
341869
|
return /*#__PURE__*/React__default['default'].createElement(Tree$3, _objectSpread(_objectSpread({
|
|
341475
341870
|
ref: ref
|
|
@@ -342528,7 +342923,7 @@
|
|
|
342528
342923
|
}, unitNodes);
|
|
342529
342924
|
}
|
|
342530
342925
|
|
|
342531
|
-
var _excluded$
|
|
342926
|
+
var _excluded$2T = ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"];
|
|
342532
342927
|
|
|
342533
342928
|
var ScrollNumber$1 = function ScrollNumber(_ref) {
|
|
342534
342929
|
var customizePrefixCls = _ref.prefixCls,
|
|
@@ -342541,7 +342936,7 @@
|
|
|
342541
342936
|
_ref$component = _ref.component,
|
|
342542
342937
|
component = _ref$component === void 0 ? 'sup' : _ref$component,
|
|
342543
342938
|
children = _ref.children,
|
|
342544
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
342939
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2T);
|
|
342545
342940
|
|
|
342546
342941
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
342547
342942
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
@@ -342591,7 +342986,7 @@
|
|
|
342591
342986
|
return /*#__PURE__*/React.createElement(component, newProps, numberNodes);
|
|
342592
342987
|
};
|
|
342593
342988
|
|
|
342594
|
-
var _excluded$
|
|
342989
|
+
var _excluded$2U = ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "showZero"];
|
|
342595
342990
|
|
|
342596
342991
|
var Badge$1 = function Badge(_ref) {
|
|
342597
342992
|
var _classNames, _classNames2;
|
|
@@ -342616,7 +343011,7 @@
|
|
|
342616
343011
|
className = _ref.className,
|
|
342617
343012
|
_ref$showZero = _ref.showZero,
|
|
342618
343013
|
showZero = _ref$showZero === void 0 ? false : _ref$showZero,
|
|
342619
|
-
restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
343014
|
+
restProps = _objectWithoutProperties$1(_ref, _excluded$2U);
|
|
342620
343015
|
|
|
342621
343016
|
var _React$useContext = React.useContext(ConfigContext$1),
|
|
342622
343017
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -342751,7 +343146,7 @@
|
|
|
342751
343146
|
|
|
342752
343147
|
Badge$1.Ribbon = Ribbon$1;
|
|
342753
343148
|
|
|
342754
|
-
var _excluded$
|
|
343149
|
+
var _excluded$2V = ["prefixCls", "type", "orientation", "orientationMargin", "className", "children", "dashed", "plain"];
|
|
342755
343150
|
|
|
342756
343151
|
var Divider$4 = function Divider(props) {
|
|
342757
343152
|
var _classNames;
|
|
@@ -342770,7 +343165,7 @@
|
|
|
342770
343165
|
children = props.children,
|
|
342771
343166
|
dashed = props.dashed,
|
|
342772
343167
|
plain = props.plain,
|
|
342773
|
-
restProps = _objectWithoutProperties$1(props, _excluded$
|
|
343168
|
+
restProps = _objectWithoutProperties$1(props, _excluded$2V);
|
|
342774
343169
|
|
|
342775
343170
|
var prefixCls = getPrefixCls('divider', customizePrefixCls);
|
|
342776
343171
|
var orientationPrefix = orientation.length > 0 ? "-".concat(orientation) : orientation;
|