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 Report]The table component column render function can not be rendered if it returns a string directly #3199
Comments
Translation of this issue: EnvironmentVue^2.5.14 vue-template-compiler^2.5.14 chrome@64.0.3282.186 node@8.2.1 win7 iview^2.11.0 webpack^3.8.1 Reproduction linkhttps://github.com/Hishengs/iview-bug-report Steps to reproduce
What is expected?The original value can be rendered correctly What is actually happening?Unable to renderThe guess is that the vue@2.5.14 version has led to the update of functional component, but I can't make it back. |
I met the same problem. |
have to set a node after using Vue.js 2.5.14 |
@icarusion is it vue's bug or just intended, can not return primitive values in the new version(^2.5.14)? is that means I have to change all the places I return primitive values in the table column render function if I use vue^2.5.14? thx |
The correct way to use the |
@icarusion I know that's the correct way, but your answer is not for my question. Sometimes in the render function u just got a computed result which is primitive value, and u just want a text node. If u are not clear if primitive value is not supported any more after vue^2.5.14, just admit it. that will also be helpful. |
@Hishengs Maybe you can find something here vuejs/vue#7282 |
Environment
vue^2.5.14 vue-template-compiler^2.5.14 chrome@64.0.3282.186 node@8.2.1 win7 iview^2.11.0 webpack^3.8.1
Reproduction link
https://github.com/Hishengs/iview-bug-report
Steps to reproduce
aim file:https://github.com/Hishengs/iview-bug-report/blob/master/App.vue
What is expected?
can render primitive values
What is actually happening?
can not render
I guessis vue@2.5.14 's changs for functional component cause,but I can not reappear
The text was updated successfully, but these errors were encountered: