this.$prompt('抬头', '内容', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputType: 'textarea',
row: 4,
inputPattern: /^.{1,255}$/, // 检验正则
inputErrorMessage: '输入内容不能超过255个字符长度!', // 错误提醒
inputValue: data // 回显值
}).then(({ value }) => {
// 获取到值
})只需要一个输入框时候 prompt 能够快速实现功能

参与讨论
(Participate in the discussion)
参与讨论