b2nil / taro-ui-vue3

采用 Vue 3.0 重写的 Taro UI 组件库
https://b2nil.github.io/taro-ui-vue3/
MIT License
160 stars 51 forks source link

h5 support #17

Closed b2nil closed 4 years ago

b2nil commented 4 years ago

This PR is inteneded to:

  1. add a util file to export all taro-xxx-core tags to be used in all components for h5 build

  2. add a custom webpack loader to fix h5 issues:

    • make sure all component import taro-xxx-core components from @/utils/components, instead of @tarojs/components
    • change onTap to onClick in all component render functions

This is a temporary workaround to Vue3 H5 中使用 render 函数渲染节点时, onTap 不能触发点击事件 .

Further efforts are needed to explore how to directly using @tarojs/components/dist-h5/vue3.