1.1.2 • Published 7 years ago
vue-swipebtn v1.1.2
vue-slidebtn
A Vue.js project
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
引入包 import { SwipeDel, SwipeDelList } from 'vue-swipebtn';
使用: 最原始的
修改内容区块
<swipe-del>
<div slot="body" class="card">你的快递到了,请到楼下签收</div>
</swipe-del>
修改内容和按钮内容区块并添加方法.
<swipe-del>
<div slot="body" class="card">你的快递到了,请到楼下签收</div>
<div slot="rightview" class="btn" @click="del">
删除
</div>
</swipe-del>
For detailed explanation on how things work, checkout the guide and docs for vue-loader.