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

view 组件和 taro-view-core 映射对不上 #3222

Open
qq1037305420 opened this issue Nov 4, 2024 · 2 comments
Open

view 组件和 taro-view-core 映射对不上 #3222

qq1037305420 opened this issue Nov 4, 2024 · 2 comments

Comments

@qq1037305420
Copy link

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.13

平台

h5

重现链接

https://nutui.jd.com/playground/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cCBsYW5nPVwidHNcIj5cbmltcG9ydCB7IHNob3dUb2FzdCB9IGZyb20gJ0BudXR1aS9udXR1aSdcbmltcG9ydCB7IERvbmdkb25nIH0gZnJvbSAnQG51dHVpL2ljb25zLXZ1ZSdcbmNvbnN0IHNob3cgPSAoKSA9PiB7XG4gIHNob3dUb2FzdC50ZXh0KCdIZWxsbywgTnV0VUkhJylcbn07XG48L3NjcmlwdD5cbjx0ZW1wbGF0ZT5cbiAgPG51dC10YWJiYXIgYm90dG9tIHBsYWNlaG9sZGVyPlxuICAgICAgPERvbmdkb25nIC8+XG4gIDwvbnV0LXRhYmJhcj5cbjwvdGVtcGxhdGU+In0=

重现步骤

随便写一个组件

期望的结果是什么?

view组件被编译为 taro-view-core 而不是 view 组件

实际的结果是什么?

view 为行内元素
taro-view-core 为正确元素

环境信息

No response

其他补充信息

No response

@qq1037305420
Copy link
Author

qq1037305420 commented Nov 4, 2024

image
这个直接createElementBlock和taro对不上
image
一个 div 一个 view,这个有点理解不了 @taro/plugin-html 看源码也没做这个处理

@qq1037305420
Copy link
Author

如果编译 h5 平台难道要 alias 对应的包哦。
好像有点搞明白了

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