opentiny / opentiny/tiny-engine
🐛 [Bug]: 自定义渲染函数中的组件,如果页面没有引入,预览页面和出码页面会存在问题
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Vue
- Stars
- 2.8k
- Forks
- 476
- Avg merge
- 17h 35m
- Merged PRs (30d)
- 1
Description
Environment
mac 12
Version
node 18.18.0
Version
baranch develop
Link to minimal reproduction
编辑器页面,编辑表格列选项 -> 自定义渲染函数 -> 使用未引入的组件
预览页面,vue因为找不到组件导致渲染报错,因为页面没有import导入
Step to reproduce
拖入表格, 表格列自定义渲染函数, 使用页面未使用过的组件, 预览渲染出错,出码出错,组件未导入
What is expected
渲染函数中组件页面没有导入,正常渲染
What is actually happening
渲染出错, 预览,出码均有问题
What is your project name
项目二开
Any additional comments (optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue from the editor's table-column custom-render-function flow using a component that the page has not imported. Trace the preview rendering and generated-code paths mentioned in the report, then verify that both render successfully and include the needed component import or resolution.
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
- Needs clarification
- Newbie friendliness
- 35/100