复制直接可用
ElMessageBox({
title: '请输入不通过的原因',
message: h('div', {}, [
h('textarea', {
value: inputValue.value,
onInput: (e) => (inputValue.value = e.target.value),
style: 'width:380px; height:80px;border: 1px solid #dcdfe6;padding:10px;'
})
]),
showCancelButton: true,
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
if (!inputValue.value) {
message.error(' 请填写内容')
return
}
console.log('内容:', inputValue.value)
submitForm(2, inputValue.value)
}
done()
}
})