We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
组件:
import { defineComponent } from 'vue' export default defineComponent({ props: { title: String }, setup(props){ return ()=>{ return <div>{props.title}</div> } } })
当传入的title从对象变成字符串,就会报错
const title = ref({a: 1}) setTimeout(() => { title.value = 1; }, 1000);
Reproduction Link (required):
https://github.com/wanchun/jsx-bug
The text was updated successfully, but these errors were encountered:
在JSX中,不能直接渲染一个对象,不会转换为 JSON。
Sorry, something went wrong.
No branches or pull requests
🐛 Bug description
组件:
当传入的title从对象变成字符串,就会报错
📝 Steps to reproduce
Reproduction Link (required):
https://github.com/wanchun/jsx-bug
🏞 Desired result
🚑 Other information
The text was updated successfully, but these errors were encountered: