this.$prompt("请输入数量", "修改商品数量", {
confirmButtonText: "确定",
cancelButtonText: "取消",
inputPattern: this.inputPattern,
inputErrorMessage: "请输入正确的数量",
inputValue: item.goodsNum // 设置初始值
}).then(({ value }) => {
console.log(value)
})
https://cloud.tencent.com/developer/section/1489894