【Vue阻止点击其他DOM节点失去输入框焦点】

<view @mousedown.capture.prevent.stop="comfirm">
    <u-button size="medium" type="primary">确定u-button>
    <input ref="inputRef" />
view>
this.$refs.inputRef.focus()
this.$refs.inputRef.blur()

你可能感兴趣的:(记录项目中遇到的问题,vue.js,javascript,前端)