0.2.2 • Published 5 years ago

jeft-vue-confirm v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jeft-vue-confirm

Installation

npm install jeft-vue-confirm --save

Usage

适用于移动端

引入

  • opts参数:
import confirm from 'jeft-vue-confirm'

Vue.use(confirm, {
    title: '标题',
    bg: '...'
})

confirm参数

| 参数 | 描述 |
|-------- | :-----: |
| title | string |
| msg   | string
| type  | alert or confirm |
| alertBtnText | string |
| yesBtnText   | string |
| noBtnText    | string |
| hasMark      | string |
| bg           | imgUrl(可以在opts里面配置也可以传进来) |
this.$confirm({
    title: '确认退出登录',
    msg: '',
    type: 'confirm',
    yesBtnText: '确定',
    noBtnText: '取消'
}).then(() => {
    // 确定操作
    this.userLogoutAsync()
}).catch(() => {
    // 取消操作
})

confirm参数会覆盖opts参数

Object.assign(ConfirmInstance, opts, options)
0.2.2

5 years ago

0.2.0

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago