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: vue函数组件不能编辑class #2230

Open
agileago opened this issue Nov 27, 2024 · 5 comments
Open

bug: vue函数组件不能编辑class #2230

agileago opened this issue Nov 27, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@agileago
Copy link

Version

latest

OS Version

14

Node.js Version

22

Browser Version

118

Link to minimal reproduction

https://github.com/umijs/dumi/blob/master/examples/vue/src/functional.tsx#L33

Steps to reproduce

添加 class, 然后编辑,就报错了 读取 exposed失败

What is expected?

正常编辑

What is actually happening?

报错了

Any additional comments? (optional)

No response

@agileago
Copy link
Author

@jeffwcx

@jeffwcx
Copy link
Collaborator

jeffwcx commented Dec 3, 2024

我本地添加了class

image

添加API
image

显示出来没啥问题啊

image

@agileago
Copy link
Author

agileago commented Dec 3, 2024

live demo报错

@agileago
Copy link
Author

agileago commented Dec 3, 2024

你编辑live demo的代码

@jeffwcx
Copy link
Collaborator

jeffwcx commented Dec 3, 2024

我试了下,确实会报错,functional组件问题比较大,不仅仅是不能编辑class,不过普通组件好像没有这问题。

等我找时间发个pr吧

@jeffwcx jeffwcx added bug Something isn't working and removed unconfirmed labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants