@xpf0000/vue-element-dialog

1.0.9 • Public • Published

vue elementu-ui dialog扩展

安装

npm install @xpf0000/vue-element-dialog

使用

// 引用
import Vue from 'vue'
import VueBaseDialog from '@xpf0000/vue-element-dialog'
Vue.use(VueBaseDialog, {
size: 'sizeClass'
})

// 弹出组件中

methods: {
// 弹窗底部确定按钮触发
      onSubmit() {
// 触发回调 返回(数据, 是否关闭弹窗 默认true 关闭)
        this.callBack && this.callBack('454545')
      }
}

// 使用
import DialogView from '...'
this.$baseDialog(DialogView)
.data({ a: 0 })
.title('弹窗标题')
.width('600px')
.className('class-name')
.noFooter()
.global('router', this.$router)
.show()
.then(res => {
})

Package Sidebar

Install

npm i @xpf0000/vue-element-dialog

Weekly Downloads

2

Version

1.0.9

License

none

Unpacked Size

9.28 kB

Total Files

6

Last publish

Collaborators

  • xpf0000