0.0.3 • Published 7 years ago

plugin-notifybox-wegin v0.0.3

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

/** *参数说明

  • title: '' String 标题
  • message: '' String 消息
  • visible: false Boolean 是否显示弹框
  • closable: false Boolean 是否显示关闭按钮
  • visibleInput: false Boolean 是否显示input输入框
  • inputPlaceholder: '' String 输入框placeholder
  • showCancelButton: true Boolean 显示取消按钮
  • showConfirmButton: true Boolean 显示确定按钮
  • cancelButtonTxt: CANCEL_TEXT String 取消按钮文字
  • confirmButtonTxt: CONFIRM_TEXT String 确定按钮文字
  • cancelCallback: null function 取消按钮回调函数
  • confirmCallback: null function 确定按钮回调函数 */

    方法调用: 1、自定义弹框 this.$notifybox.Custom(params) example: params = { title: '标题', message: '这是一条消息', callback: () => { console.log('cancel') } } 2、alert alert (title, message, callback, confirmButtonTxt) this.$notifybox.alert('提示', '操作成功')

    3、confirm confirm (title, message, callback, cancelButtonTxt, confirmButtonTxt) this.$notifybox.confirm('提示', '是否要提交?')

    4、prompt prompt (title, inputPlaceholder, callback, cancelButtonTxt, confirmButtonTxt) this.$notifybox.prompt('请输入你的名字', '请输入你的名字')