阿酱innocces

Results 61 comments of 阿酱innocces

_(:з」∠)_ 少装一个插件让自己浪费好久. Vue 中需要安装 `@tarojs/plugin-html`. 并在配置中增加: ```js { plugins: ['@tarojs/plugin-html'] } ``` 不然类似`click`这样的事件就只能写成`tap`了. 此外。发现比如一些微信组件中的 `onGetPhoneNumber` 在 Vue 中就需要写成 `@getphonenumber` 才能正常触发

开启`plugin-html`会自动启用`post-css-html-transform`。 但是通配匹配有点问题。会丢掉一些样式: https://github.com/NervJS/taro/blob/next/packages/postcss-html-transform/src/index.ts#L11

发现,一些组件貌似没有官方标注的事件。 但是也没特别标明。比如很多元素计算属性根本算不出来。像text 就算你写了inline-block. 他依然也算不出来rect。也没有transitionend这些事件。略坑。 [事件](https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxml/event.html#%E4%BA%8B%E4%BB%B6%E8%AF%A6%E8%A7%A3)

确实是的。下个版本的这种固定信息类的接口会直接产出。可以等待一下下个版本。

> 因为之前跨端都是用**env**来判断的. 下个版本会走file的模式. **xxx.${env}.ts**. 这样会减少大部分的**env**使用

=。- 只要是不带平台后缀的最后都会兜底会**xx.ts**. 不过这次更新要限制**taro.version >= 330**了

[进群来讨论吧](https://github.com/innocces/taro-hooks/issues/12#issuecomment-1189761552)

新版本已经发布. 暂未宣发. 可以开始尝鲜了 [传送门](https://next-version-taro-hooks.vercel.app)