tiny-engine icon indicating copy to clipboard operation
tiny-engine copied to clipboard

🐛 [Bug]: 表格组件(tiny-grid)预览/出码时,单元格插槽样式丢失问题

Open langyjn opened this issue 1 year ago • 3 comments

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

none

Step to reproduce

  1. 画布配置一个表格(tiny-grid),选择一列添加插槽,拖入一个text组件,更改text组件的文字颜色 1
  2. 点击预览,如截图,text组件颜色样式丢失 2
  3. 查看出码,插槽使用render jsx方式渲染,页面样式有scoped属性,这里因该为slots手动增加scopeId 3
  4. 否则样式不生效 4

What is expected

No response

What is actually happening

No response

What is your project name

tiny-engine develop

Any additional comments (optional)

No response

langyjn avatar Aug 22 '24 10:08 langyjn

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: When previewing/exporting the table component (tiny-grid), the cell slot style is lost.

Issues-translate-bot avatar Aug 22 '24 10:08 Issues-translate-bot

@langyjn 感谢反馈,这里 jsx 的出码方式的确不支持 scope css。官方研究一下能不能直接出码到 template。

chilingling avatar Aug 26 '24 06:08 chilingling

Bot detected the issue body's language is not English, translate it automatically.


@langyjn Thanks for the feedback. The jsx coding method here does not support scope css. The official will study whether the code can be directly exported to the template.

Issues-translate-bot avatar Aug 26 '24 06:08 Issues-translate-bot