Skip to content

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

@qq1037305420

Description

@qq1037305420

相关平台

H5

复现仓库

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

复现步骤

jd-opensource/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
 

补充信息

jd-opensource/nutui#3222

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-vue3Framework - Vue 3T-h5Target - 编译到 H5V-4Version - 4.x

    Type

    No type

    Projects

    Status

    Padding

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions