forked from AsherSun/VisionUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viMotion.js
39 lines (38 loc) · 1.25 KB
/
viMotion.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const maskNotHide = require('./templates/maskNotHide/maskNotHide.js');
const hideNotAnimate = require('./templates/hideNotAnimate/hideNotAnimate.js');
const changeMaskColor = require('./templates/changeMaskColor/changeMaskColor.js');
const hideMask = require('./templates/hideMask/hideMask.js');
const animateDuration = require('./templates/animateDuration/animateDuration.js');
const selectAnimate = require('./templates/selectAnimate/selectAnimate.js');
const getMarkDown = require('../../mixins/getMarkDown');
const app = getApp()
Page({
...maskNotHide.methods,
...hideNotAnimate.methods,
...changeMaskColor.methods,
...hideMask.methods,
...animateDuration.methods,
...selectAnimate.methods,
...getMarkDown.methods,
data: {
maskNotHideData: maskNotHide.data,
hideNotAnimateData: hideNotAnimate.data,
animateDurationData: animateDuration.data,
selectAnimateData: selectAnimate.data,
changeMaskColorData: changeMaskColor.data,
hideMaskData: hideMask.data,
...getMarkDown.data,
},
onLoad() {
this.getMarkDown(this, 'viMotion')
},
onShareAppMessage: function () {
return {
title: "viMotion定制化运动组件"
}
},
triggerToLongpress(e) {
console.log(e.detail)
app.copyTxt('asdfklasdjfl')
}
})