form-create动态生成input 失焦事件
一、代码块
<form-create v-model="fApi" :rule="rule" :option="option" @input-field-blur="blur"></form-create>
export default {
data() {
return {
rule:[{
type: 'input',
field: 'inputField',
title: '商品名称',
emit:['blur'],
col: {
md: {
span: 12
}
}
}]
}
}
}
methods:{
blur(){
alert('失焦')
},
},