1.1.0 • Published 6 years ago

touch-left v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

touch-left

模拟app左滑动删除组件

使用教程

# 安装插件
npm install --save touch-left

# 全局组件使用(按自己的需求,也可以局部组件使用)
import touchLeft from 'touch-left';
Vue.component(touchLeft.name, touchLeft);

使用demo

<touchLeft :callfun="fun" :k="id">
    <div>
        我是列表内容
    </div>
</touchLeft>
<script>
export default {
    data() {
        return {
            id:1
        }
    },
    methods:{
        fun(key){
            console.log(key);
        }
    }
}
</script>

callfun 删除按钮触发的回调函数

k 当前组件的key(需要删除的key,你懂得!)

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago