@zat-design/sisyphus-react 3.9.6-beta.4 → 3.9.6-beta.5
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/.vscode/extensions.json +5 -0
- package/dist/index.esm.css +2 -1
- package/dist/less.esm.css +2 -1
- package/es/ProEditTable/utils/tools.js +15 -0
- package/es/ProLayout/components/ProHeader/style/index.less +2 -1
- package/lib/ProEditTable/utils/tools.js +15 -0
- package/lib/ProLayout/components/ProHeader/style/index.less +2 -1
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
@@ -913,10 +913,11 @@
|
|
913
913
|
position: absolute;
|
914
914
|
right: 0;
|
915
915
|
background: #fff;
|
916
|
+
letter-spacing: 2px;
|
916
917
|
}
|
917
918
|
.pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items.pro-header-describe-items-more .pro-header-tag {
|
918
919
|
padding: 0;
|
919
|
-
background:
|
920
|
+
background: transparent;
|
920
921
|
color: #333;
|
921
922
|
}
|
922
923
|
.pro-header .pro-header-copy {
|
package/dist/less.esm.css
CHANGED
@@ -913,10 +913,11 @@
|
|
913
913
|
position: absolute;
|
914
914
|
right: 0;
|
915
915
|
background: #fff;
|
916
|
+
letter-spacing: 2px;
|
916
917
|
}
|
917
918
|
.pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items.pro-header-describe-items-more .pro-header-tag {
|
918
919
|
padding: 0;
|
919
|
-
background:
|
920
|
+
background: transparent;
|
920
921
|
color: #333;
|
921
922
|
}
|
922
923
|
.pro-header .pro-header-copy {
|
@@ -159,10 +159,12 @@ export var handleScrollToError = function handleScrollToError() {
|
|
159
159
|
if (errorDom) {
|
160
160
|
var tableBody = errorDom.closest('.ant-table-content') || errorDom.closest('.ant-table-body');
|
161
161
|
var tableCell = errorDom.closest('.ant-table-cell');
|
162
|
+
var tableRow = errorDom.closest('.ant-table-row');
|
162
163
|
if (tableBody && tableCell) {
|
163
164
|
var previousSibling = tableCell.previousElementSibling;
|
164
165
|
var childOffsetLeft = 0;
|
165
166
|
var childFixedLeft = 0;
|
167
|
+
var childOffsetTop = 0;
|
166
168
|
while (previousSibling) {
|
167
169
|
if (previousSibling.nodeType === 1) {
|
168
170
|
var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
|
@@ -176,7 +178,20 @@ export var handleScrollToError = function handleScrollToError() {
|
|
176
178
|
}
|
177
179
|
previousSibling = previousSibling.previousElementSibling;
|
178
180
|
}
|
181
|
+
if (tableRow) {
|
182
|
+
var _previousSibling2 = tableRow.previousElementSibling;
|
183
|
+
while (_previousSibling2) {
|
184
|
+
if (_previousSibling2.nodeType === 1) {
|
185
|
+
var _ref5 = _previousSibling2.getBoundingClientRect() || {},
|
186
|
+
_ref5$height = _ref5.height,
|
187
|
+
height = _ref5$height === void 0 ? 0 : _ref5$height;
|
188
|
+
childOffsetTop += height;
|
189
|
+
}
|
190
|
+
_previousSibling2 = _previousSibling2.previousElementSibling;
|
191
|
+
}
|
192
|
+
}
|
179
193
|
tableBody.scrollTo({
|
194
|
+
top: childOffsetTop,
|
180
195
|
left: childOffsetLeft - childFixedLeft,
|
181
196
|
behavior: 'smooth'
|
182
197
|
});
|
@@ -167,10 +167,12 @@ var handleScrollToError = exports.handleScrollToError = function handleScrollToE
|
|
167
167
|
if (errorDom) {
|
168
168
|
var tableBody = errorDom.closest('.ant-table-content') || errorDom.closest('.ant-table-body');
|
169
169
|
var tableCell = errorDom.closest('.ant-table-cell');
|
170
|
+
var tableRow = errorDom.closest('.ant-table-row');
|
170
171
|
if (tableBody && tableCell) {
|
171
172
|
var previousSibling = tableCell.previousElementSibling;
|
172
173
|
var childOffsetLeft = 0;
|
173
174
|
var childFixedLeft = 0;
|
175
|
+
var childOffsetTop = 0;
|
174
176
|
while (previousSibling) {
|
175
177
|
if (previousSibling.nodeType === 1) {
|
176
178
|
var _previousSibling, _previousSibling$clas, _previousSibling$clas2, _previousSibling$clas3;
|
@@ -184,7 +186,20 @@ var handleScrollToError = exports.handleScrollToError = function handleScrollToE
|
|
184
186
|
}
|
185
187
|
previousSibling = previousSibling.previousElementSibling;
|
186
188
|
}
|
189
|
+
if (tableRow) {
|
190
|
+
var _previousSibling2 = tableRow.previousElementSibling;
|
191
|
+
while (_previousSibling2) {
|
192
|
+
if (_previousSibling2.nodeType === 1) {
|
193
|
+
var _ref5 = _previousSibling2.getBoundingClientRect() || {},
|
194
|
+
_ref5$height = _ref5.height,
|
195
|
+
height = _ref5$height === void 0 ? 0 : _ref5$height;
|
196
|
+
childOffsetTop += height;
|
197
|
+
}
|
198
|
+
_previousSibling2 = _previousSibling2.previousElementSibling;
|
199
|
+
}
|
200
|
+
}
|
187
201
|
tableBody.scrollTo({
|
202
|
+
top: childOffsetTop,
|
188
203
|
left: childOffsetLeft - childFixedLeft,
|
189
204
|
behavior: 'smooth'
|
190
205
|
});
|