ant-design-vue/components/input/demo/search-input.vue

22 lines
310 B
Vue
Raw Normal View History

2017-12-07 12:31:12 +08:00
<template>
<Search
placeholder="input search text"
style="width: 200px"
@search="onSearch"
/>
</template>
<script>
import { Input } from 'antd'
export default {
methods: {
onSearch (value) {
console.log(value)
},
},
components: {
Search: Input.Search,
},
}
</script>