import { MessageBox } from 'element-ui'MessageBox('請(qǐng)輸入郵箱', '提示', {
showInput: true,
inputValue: 'haha',
confirmButtonText: '確定',
cancelButtonText: '取消',
inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
inputErrorMessage: '郵箱格式不正確'
}).then(({ value }) => { console.log(value)
}).catch(() => {
})
}input框出不來怎么辦啊
1 回答

幕布斯7119047
TA貢獻(xiàn)1794條經(jīng)驗(yàn) 獲得超8個(gè)贊
this.$alert('這是一段內(nèi)容', '標(biāo)題名稱', { confirmButtonText: '確定', callback: action => { this.$message({ type: 'info', message: `action: ${ action }` }); }
添加回答
舉報(bào)
0/150
提交
取消