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,