fix: table child not render

This commit is contained in:
yanmao 2022-01-12 13:44:19 +08:00
parent c4b7c80930
commit c8ee3ea6b7
2 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,7 @@ import {
DATA_TRANSIENT_ATTRIBUTES,
EDITABLE,
UI,
transformCustomTags,
} from '@aomao/engine';
import {
TableValue,
@ -172,9 +173,9 @@ class Template implements TemplateInterface {
if (html) {
const hasColGroup = html.indexOf('<colgroup') > -1;
html = transformCustomTags(html);
if (!hasColGroup) {
html = html.replace(/^(<table[^>]+>)/, function (match) {
html = replace(/^(<table[^>]+>)/, function (match) {
return match + colgroup;
});
}
@ -204,7 +205,7 @@ class Template implements TemplateInterface {
overflow !== false ? TABLE_OVERFLOW_CLASS_NAME : ''
}"><div class="${VIEWPORT_READER}"${
noBorder === true ? " data-table-no-border='true'" : ''
}>${html}</div></div>`;
}>${transformCustomTags(html)}</div></div>`;
}
}

View File

@ -145,7 +145,6 @@ div[data-card-key="table"].card-selected .data-table, div[data-card-key="table"]
background: #f2f3f5;
cursor: pointer;
border-right: 0 none;
z-index: 1;
}
.table-wrapper .table-cols-header .table-cols-header-item:hover{