vue-confirm-conponent

0.1.3 • Public • Published

使用方法

npm install vue-confirm-component --save

main.js

import 'vue-confirm-component/lib/vue-confirm-component.css'
import vueConfirm from 'vue-confirm-component'
Vue.use(vueConfirm)

vue页面中使用

 <vue-confirm :show="showConfirm" :content="content" @confirm="confirm" :showCancel="true" confirmText="知道了"></vue-confirm>

API

名称 类型 默认值
show Boolean false
content 显示内容 ‘内容’
showCancel 是否显示 取消按钮 false
cancelText 取消按钮文案 取消
confirmText 确定按钮文案 确定

方法

方法名 返回值
confirm {confirm: false} true:确定 false:取消

Readme

Keywords

Package Sidebar

Install

npm i vue-confirm-conponent

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

155 kB

Total Files

23

Last publish

Collaborators

  • john-gao