Skip to content

winfrise/messagebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Message.js

(1) messageBox

  messageBox('default Msg')
    .then(() => {})

  messageBox({
      message: 'hello world', 
      btns: [
        {label: '确定', className: 'green'}
      ]
  })
    .then((index) => {
        console.log(index)
    })

(2) Loading

// 显示loading
loading(true)

// 隐藏loading
loading(false)

(3) toast

  toast('hello world')

  toast({message: 'hello world', duration: '1000})

About

messagebox 插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published