fix: table child not render
This commit is contained in:
parent
c4b7c80930
commit
c8ee3ea6b7
|
@ -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>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue