纯js页面
纯js页面
纯js页面
http://element-cn.eleme.io/#/...
在纯js页面使用这个组件,弹出两个input输入框,获取输入的值
我的代码
import { MessageBox } from 'element-ui'
MessageBox('请输入邮箱', '提示', {
showInput: true,
inputValue: 'haha',
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /[\w!#$%&'* /=?^_{|}~-] (?:\.[\w!#$%&'* /=?^_{|}~-] )*@(?:\w?.) \w?/,
inputErrorMessage: '邮箱格式不正确'
}).then(({ value }) => {
console.log(value)
}).catch(() => {
})
}
但这样input框出不来,
我的钱给出去了
https://github.com/ElemeFE/el...