1.0.5 • Published 4 years ago

ali-miniapp-gao v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

ali-miniapp-gao

1. draggable

page/index.json

{
  "defaultTitle": "",
  "usingComponents": {
     "draggable": "ali-miniapp-gao/draggable/draggable" 
  },
  "pullRefresh": false
}

page/index.axml

<view style="height:100vw;width:100vh;">
  <draggable
    startDrag={{caller}}
    endDrag={{caller}}
    width="100px"
    height="100px"
    styleObj="{{}}"
  >
    <view class="ccc"></view>
  </draggable>
</view>

page/index.js

import dragCaller from "ali-miniapp-gao/draggable/dragCaller"
Page({
  data: {
    caller: {}
  },
  onLoad(query) {
    let caller = dragCaller(e => { console.log(e) }, (e) => { console.log(e) });
    this.setData({ caller });
  },
});

npm.io npm.io

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago