ronds-metadata 1.1.1 → 1.1.2
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.
@@ -10,7 +10,7 @@ import _Input from "antd/es/input";
|
|
10
10
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
11
11
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
12
12
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
13
|
-
var _excluded = ["title", "dataIndex", "isAddColumn", "children", "className"];
|
13
|
+
var _excluded = ["title", "dataIndex", "isAddColumn", "children", "className", "style"];
|
14
14
|
import { PlusSquareOutlined, DeleteOutlined } from '@ant-design/icons';
|
15
15
|
import React from 'react';
|
16
16
|
import { EditableContext } from '../interface';
|
@@ -24,6 +24,7 @@ var EditableHeardCell = function EditableHeardCell(props) {
|
|
24
24
|
isAddColumn = props.isAddColumn,
|
25
25
|
children = props.children,
|
26
26
|
className = props.className,
|
27
|
+
style = props.style,
|
27
28
|
restProps = _objectWithoutProperties(props, _excluded);
|
28
29
|
|
29
30
|
var _ref = React.useContext(EditableContext) || undefined,
|
@@ -46,6 +47,18 @@ var EditableHeardCell = function EditableHeardCell(props) {
|
|
46
47
|
visible = _React$useState4[0],
|
47
48
|
setVisible = _React$useState4[1];
|
48
49
|
|
50
|
+
var myStyle = React.useMemo(function () {
|
51
|
+
var res = {};
|
52
|
+
|
53
|
+
if (style) {
|
54
|
+
res = _objectSpread(_objectSpread({}, style), {}, {
|
55
|
+
right: style.right - 4
|
56
|
+
});
|
57
|
+
}
|
58
|
+
|
59
|
+
return res;
|
60
|
+
}, [style]);
|
61
|
+
|
49
62
|
var onMouseOver = function onMouseOver() {
|
50
63
|
editableStream.next({
|
51
64
|
type: 'editHeardCellKey',
|
@@ -112,8 +125,10 @@ var EditableHeardCell = function EditableHeardCell(props) {
|
|
112
125
|
setVisible(b);
|
113
126
|
};
|
114
127
|
|
115
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("th", _extends({
|
128
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("th", _extends({
|
116
129
|
className: "".concat(className, " ant-table-th font-bold ").concat(isAddColumn && editConfig.editHeardCellKey === dataIndex ? 'border-right ' : '', " ")
|
130
|
+
}, restProps, {
|
131
|
+
style: _objectSpread({}, myStyle)
|
117
132
|
}), isAddColumn && /*#__PURE__*/React.createElement(_Popover, {
|
118
133
|
placement: "rightTop",
|
119
134
|
content: content,
|
@@ -2,8 +2,38 @@
|
|
2
2
|
width: 100%;
|
3
3
|
height: 100%;
|
4
4
|
}
|
5
|
-
.ronds-edit-table table {
|
6
|
-
|
5
|
+
.ronds-edit-table .ant-table-body {
|
6
|
+
overflow: auto !important;
|
7
|
+
}
|
8
|
+
.ronds-edit-table .ant-table-header::-webkit-scrollbar {
|
9
|
+
width: 4px;
|
10
|
+
background: transparent !important;
|
11
|
+
}
|
12
|
+
.ronds-edit-table .ant-table-body::-webkit-scrollbar,
|
13
|
+
.ronds-edit-table .ant-table-body-inner::-webkit-scrollbar {
|
14
|
+
width: 4px;
|
15
|
+
height: 4px;
|
16
|
+
}
|
17
|
+
.ronds-edit-table .ant-table-body::-webkit-scrollbar-thumb,
|
18
|
+
.ronds-edit-table .ant-table-body-inner::-webkit-scrollbar-thumb {
|
19
|
+
border-radius: 4px;
|
20
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
21
|
+
background: #909090;
|
22
|
+
}
|
23
|
+
.ronds-edit-table .ant-table-body::-webkit-scrollbar-track,
|
24
|
+
.ronds-edit-table .ant-table-body-inner::-webkit-scrollbar-track {
|
25
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
26
|
+
border-radius: 4px;
|
27
|
+
background: #ededed;
|
28
|
+
}
|
29
|
+
.ronds-edit-table .ant-table-fixed-left .ant-table-body-outer,
|
30
|
+
.ronds-edit-table .ant-table-fixed-right .ant-table-body-outer {
|
31
|
+
margin-bottom: 0 !important;
|
32
|
+
}
|
33
|
+
.ronds-edit-table .ant-table-fixed-left .ant-table-cell-scrollbar,
|
34
|
+
.ronds-edit-table .ant-table-fixed-right .ant-table-cell-scrollbar {
|
35
|
+
margin: 0 !important;
|
36
|
+
padding: 0 !important;
|
7
37
|
}
|
8
38
|
.ronds-edit-table .ant-spin-nested-loading,
|
9
39
|
.ronds-edit-table .ant-spin-container,
|