Input add @on-search event

This commit is contained in:
梁灏 2018-06-27 15:40:03 +08:00
parent e2a877c46a
commit 1e17564989
2 changed files with 11 additions and 4 deletions

View file

@ -129,11 +129,11 @@
<Icon type="ios-aperture" slot="prefix" />
</Input>
<br><br><br><br>
<Input v-model="value" search enter-button style="width: 300px" />
<Input v-model="value" search enter-button style="width: 300px" @on-search="hs" />
<br><br>
<Input v-model="value" search style="width: 300px" />
<Input v-model="value" search style="width: 300px" @on-search="hs" />
<br><br>
<Input v-model="value" search enter-button="搜索" style="width: 300px" />
<Input v-model="value" search enter-button="Search" style="width: 300px" @on-search="hs" />
</div>
</template>
<script>
@ -148,6 +148,11 @@
select2: 'com',
select3: 'day'
}
},
methods: {
hs (val) {
console.log(val);
}
}
}
</script>