Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: 自定义渲染函数中的组件,如果页面没有引入,预览页面和出码页面会存在问题 #1127

Open
1degrees opened this issue Feb 17, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@1degrees
Copy link

1degrees commented Feb 17, 2025

Environment

mac 12

Version

node 18.18.0

Version

baranch develop

Link to minimal reproduction

编辑器页面,编辑表格列选项 -> 自定义渲染函数 -> 使用未引入的组件

Image

预览页面,vue因为找不到组件导致渲染报错,因为页面没有import导入

Image

Step to reproduce

拖入表格, 表格列自定义渲染函数, 使用页面未使用过的组件, 预览渲染出错,出码出错,组件未导入

What is expected

渲染函数中组件页面没有导入,正常渲染

What is actually happening

渲染出错, 预览,出码均有问题

What is your project name

项目二开

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

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


Title: 🐛 [Bug]: Components in custom rendering functions. If the page is not introduced, there will be problems with the preview page and the code output page.

@chilingling chilingling added the enhancement New feature or request label Feb 24, 2025
@chilingling
Copy link
Member

chilingling commented Feb 24, 2025

当前出码还不支持检测自定义渲染函数中使用到的组件并生成对应的 import 语句,需要后续进一步的支持方案
建议通过插槽实现:

Image

@Issues-translate-bot
Copy link

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


The current code output does not support detecting components used in custom rendering functions and generating corresponding import statements.
It is recommended to implement it through slots:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants