Skip to content

szhua/ElementDragMessageBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElementDragMessageBox

ElementMessageBox重写使其能够进行拖动

创建Element项目

import MessageBox from '@/components/MessageBox'

MessageBox.confirm('检测到未保存的内容,是否在离开页面前保存修改?', '确认信息', {
        distinguishCancelAndClose: true,
        confirmButtonText: '保存',
        cancelButtonText: '放弃修改'
      })
        .then(() => {
          this.$message({
            type: 'info',
            message: '保存修改'
          })
        })
        .catch(action => {
          this.$message({
            type: 'info',
            message: action === 'cancel'
              ? '放弃保存并离开页面'
              : '停留在当前页面'
          })
        })

About

ElementMessageBox重写使其能够进行拖动

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •