Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 262216 | pFad | http://github.com/vuejs/rfcs/discussions/753
72Fetched URL: http://github.com/vuejs/rfcs/discussions/753
Alternative Proxies:
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
setElementText
method is marked as necessary. However, it's quite common for desktop ui that cannot performsetText
on widget. Instead, text would be a dedicate widget. As this method could be emulated via other methods, allowing it be optional would be helpful.will results createElement, setElementText(abc)
will results createElement, createText(abc), insert, createText(1), insert
The latter one tries to add children to a text, while text is supposed to be the leaf. If I do want to properly implement the custom render options, I'll have to create a dedicate text node, and each element shall manage a possible text node. It is quite complex. Currently, I've hacked the
jsxs
in jsx-runtime to manually join the children if type istext
, which isn't really a good choice.Beta Was this translation helpful? Give feedback.
All reactions