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] {} 渲染异常 #682

Open
wanchun opened this issue Nov 20, 2023 · 0 comments
Open

[BUG] {} 渲染异常 #682

wanchun opened this issue Nov 20, 2023 · 0 comments

Comments

@wanchun
Copy link

wanchun commented Nov 20, 2023

🐛 Bug description

组件:

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);

📝 Steps to reproduce

Reproduction Link (required):

https://github.com/wanchun/jsx-bug

🏞 Desired result

企业微信截图_2f97ab77-0ddd-499c-9812-e462b316d909

🚑 Other information

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

No branches or pull requests

1 participant