Offer a reward of 20 yuan to find someone to solve the problem of using elementUI to pop up two input boxes on pure js pages.

pure js page

pure js page

pure js page

http://element-cn.eleme.io/-sharp/.

using this component in a pure js page, pop up two input input boxes to get the input value

my code

import { MessageBox } from "element-ui"

MessageBox("", "", {
showInput: true,
inputValue: "haha",
confirmButtonText: "",
cancelButtonText: "",
inputPattern: /[\w!-sharp$%&"* /=?^_{|}~-] (?:\.[\w!-sharp$%&"* /=?^_{|}~-] )*@(?:\w?.) \w?/,
inputErrorMessage: ""
}).then(({ value }) => {
console.log(value)
}).catch(() => {
})
}

but the input box won"t come out in this way,




https://github.com/ElemeFE/el...



JSFiddle,

confirm prompt MessageBox.confirmMessageBox.prompt

clipboard.png

Menu