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

@nut/nutui-taro view 组件和 taro-view-core 映射对不上 #16808

Open
qq1037305420 opened this issue Nov 4, 2024 · 1 comment
Open

@nut/nutui-taro view 组件和 taro-view-core 映射对不上 #16808

qq1037305420 opened this issue Nov 4, 2024 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-4 Version - 4.x

Comments

@qq1037305420
Copy link

相关平台

H5

复现仓库

https://github.com/jdf2e/nutui.git
浏览器版本: Microsoft Edge 版本 130.0.2849.56 (正式版本) (64 位)
使用框架: Vue 3

复现步骤

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

期望结果

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

实际结果

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

环境信息

👽 Taro v4.0.7


  Taro CLI 4.0.7 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 20.12.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
      npm: 7.9.0 - C:\Program Files\nodejs\npm.CMD
 

补充信息

jdf2e/nutui#3222

@qq1037305420
Copy link
Author

qq1037305420 commented Nov 4, 2024

image
taro-view-core != view
是基于 playground 截图的,和实际有出入
但是源码里面确实是直接写的view
image

@TheKonka TheKonka added F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-4 Version - 4.x labels Nov 5, 2024
This was referenced Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-4 Version - 4.x
Projects
Status: Padding
Development

No branches or pull requests

2 participants