Taro框架---模仿微信的滑动删除操作
发布时间
阅读量:
阅读量
1、索引文件.js
import React, { Component } from 'react'
import { ScrollView , View} from '@tarojs/components'
import Taro from '@tarojs/taro'
import './index.less'
export default class Index extends Component {
state = {
animation: '',
startX: 0, // 开始坐标
startY: 0,
}
componentDidMount() {
// 页面渲染完成
// 实例化一个动画
const animation = Taro.createAnimation({
duration: 400,
timingFunction: 'linear',
delay: 100,
transformOrigin: 'lef
全部评论 (0)
还没有任何评论哟~
