opentiny / opentiny/tiny-engine

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

Open
#754 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement
Dominant language
Vue
Stars
2.8k
Forks
476
Avg merge
17h 35m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by configuring a tiny-grid cell slot with a text component, then compare preview behavior with the generated render JSX. Trace the slot rendering and scoped-style handling described in the issue; done means the text component’s color is preserved in preview and generated code.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.