mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-21 16:34:21 +08:00
🐛 fix(data-grid): 修复单元格编辑框重复边框 (#837)
This commit is contained in:
@@ -481,6 +481,19 @@ describe('DataGrid layout', () => {
|
||||
expect(css).not.toContain('.react-resizable-handle:hover::after');
|
||||
});
|
||||
|
||||
it('uses the table cell as the only V2 inline edit frame', () => {
|
||||
const css = readV2ThemeCss();
|
||||
const inlineEditorCss = css.slice(
|
||||
css.indexOf('body[data-ui-version="v2"] .gn-v2-data-grid .data-grid-virtual-inline-editing .ant-input,'),
|
||||
css.indexOf('body[data-ui-version="v2"] .gn-v2-data-grid-statusbar'),
|
||||
);
|
||||
|
||||
expect(inlineEditorCss).toContain('border: 0 !important;');
|
||||
expect(inlineEditorCss).toContain('border-radius: 0 !important;');
|
||||
expect(inlineEditorCss).toContain('background: transparent !important;');
|
||||
expect(inlineEditorCss).toContain('box-shadow: none !important;');
|
||||
});
|
||||
|
||||
it('avoids duplicating legacy pagination page text beside the pager', () => {
|
||||
const markup = renderToStaticMarkup(
|
||||
<DataGridPaginationBar
|
||||
|
||||
@@ -4752,6 +4752,10 @@ body[data-ui-version="v2"] .gn-v2-data-grid .data-grid-virtual-inline-editing .a
|
||||
min-height: 24px !important;
|
||||
line-height: 24px !important;
|
||||
margin: 0 !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
box-sizing: border-box !important;
|
||||
position: static !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user