0.1.1 • Published 5 years ago

@miniu/wxcomponent v0.1.1

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

@miniu/wxcomponent

让微信自定义组件在支付宝里运行

使用

  1. 安装依赖
$ npm install @miniu/wxcomponent --save
// or
$ yarn add @miniu/wxcomponent
  1. 在支付宝自定义组件里使用
import WXComponent from '@miniu/wxcomponent'

WXComponent({
  ...微信自定义自己用法
})

支持的功能

  • properties 跟 data 关联
  • properties 里属性侦听 observer
  • behaviors 及嵌套
  • created
  • attached
  • ready
  • detached
  • error
  • triggerEvent
  • 支付宝生态周期兼容

不支持需要手动修改:

  • move
  • relations
  • observers