diff --git a/packages/vue-vtable/demo/src/App.vue b/packages/vue-vtable/demo/src/App.vue index da28d5432f..3722650d69 100644 --- a/packages/vue-vtable/demo/src/App.vue +++ b/packages/vue-vtable/demo/src/App.vue @@ -21,6 +21,7 @@ import ListTableCustom from './table/gramatical/composition/ListTable-custom.vue import ListTableCustomHover from './table/gramatical/composition/ListTable-custom-hover.vue'; import Issue5150CustomLayoutSort from './table/gramatical/composition/Issue5150CustomLayoutSort.vue'; import Issue5157CustomLayoutScrollbar from './table/gramatical/composition/Issue5157CustomLayoutScrollbar.vue'; +import Issue4884SlotEditorBackground from './table/gramatical/composition/Issue4884SlotEditorBackground.vue'; import ListTableVFor from './table/gramatical/options/ListTable-v-for.vue'; import PivotTable from './table/gramatical/options/PivotTable.vue'; @@ -54,7 +55,7 @@ import singleRadio from './table/single/single-radio.vue'; - + diff --git a/packages/vue-vtable/demo/src/table/gramatical/composition/Issue4884SlotEditorBackground.vue b/packages/vue-vtable/demo/src/table/gramatical/composition/Issue4884SlotEditorBackground.vue new file mode 100644 index 0000000000..c7a95003a7 --- /dev/null +++ b/packages/vue-vtable/demo/src/table/gramatical/composition/Issue4884SlotEditorBackground.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/packages/vue-vtable/src/edit/editor.ts b/packages/vue-vtable/src/edit/editor.ts index ce41464259..256ec9805e 100644 --- a/packages/vue-vtable/src/edit/editor.ts +++ b/packages/vue-vtable/src/edit/editor.ts @@ -182,8 +182,6 @@ export class DynamicRenderEditor { wrapContainer.style.position = 'absolute'; wrapContainer.style.width = '100%'; wrapContainer.style.boxSizing = 'border-box'; - const { bgColor } = table.getCellStyle(col, row) || {}; - wrapContainer.style.backgroundColor = bgColor || '#FFFFFF'; this.wrapContainer = wrapContainer; this.tableContainer = container; this.tableContainer.appendChild(wrapContainer);