ant-design-vue/components/input/demo/search-input.vue
2017-12-07 12:31:12 +08:00

22 lines
310 B
Vue

<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>