vue-directive-map
v1.0.1
Published
drag-dom for vue
Downloads
2
Maintainers
Readme
install
npm install vue-directive-map -S
Usage
main.js
import Vue from 'vue'
import App from './App.vue'
import vueDirective from 'vue-directive-map'
Vue.use(vueDirective)
use drag 弹出框拖拽
<el-dialog
title="提示"
:visible.sync="dialogVisible"
v-drag
width="30%">
</el-dialog>
use countdown
<el-button type="primary" @click="handleClick" v-countdown>获取验证码</el-button>
| key | 类型 | 默认值 | |---- |----- |----- | | time | number | 60 | | text | string | s重新发送| | Object | | | | | time | number | | | text | string |