1.1.0 • Published 7 years ago

touch-left v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 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

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago