el-input禁止剪切複製粘貼
<el-form-item :prop="item.prop" :label="item.label" v-for="(item, index) in form" :key="index">
<el-input v-model="formData[item.prop]" :placeholder="item.placeholder"
@paste.native.capture="handleFalse($event, item.prop)"
@copy.native.capture="handleFalse($event, item.prop)"
@cut.native.capture="handleFalse($event, item.prop)" />
</el-form-item>
handleFalse(e, prop) {
if (prop.includes('email')) {
e.preventDefault()
}
},