123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- Component({
-
- properties: {
- friendsData: {
- type: Array,
- value: []
- },
- friendsThreeData: {
- type: Array,
- value: []
- },
- myData: {
- type: Object,
- value: {}
- },
- str: {
- type: String,
- value: ''
- },
- title: {
- type: String,
- value: ''
- },
- height: {
- type: String,
- value: ''
- }
- },
-
- data: {
- animationData: {},
- },
-
- methods: {
- more (e) {
- let height = this.properties.friendsData.length * 80;
- this.util(height+'rpx')
- },
-
- util (height) {
-
- var animation = wx.createAnimation({
- duration: 200,
- timingFunction: "linear",
- delay: 0
- });
-
- this.animation = animation;
- animation.height(height).step();
- this.setData({
- animationData: animation.export()
- })
- },
- }
- })
|