vue-fxr-alert

1.0.5 • Public • Published

github地址:

https://github.com/fuXiangRong/fxr-alert

使用方法

  • npm i vue-fxr-alert -S
  • 或 cnpm i vue-fxr-alert -S
  • import vueFxrAlert from 'vue-fxr-alert'
  • Vue.use(vueFxrAlert);
 
<script>
  export default {
    name: 'app',
    created(){
      //显示
      this.fxrAlert.show({
        title: '友情提示',
        content: '用户名不正确',
        onShow () {
          console.log('显示')
        },
        onHide () {
          console.log('确定按钮点击回调')
        }
      })
 
      // 隐藏
      this.fxrAlert.hide()
    }
  }
</script>
 

Readme

Keywords

none

Package Sidebar

Install

npm i vue-fxr-alert

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • fxr