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

32 lines
429 B
Markdown
Raw Normal View History

<cn>
#### 搜索框
带有搜索按钮的输入框。
</cn>
<us>
#### Search box
Example of creating a search box by grouping a standard input with a search button.
</us>
```html
2017-12-07 04:31:12 +00:00
<template>
<a-input-search
2017-12-07 04:31:12 +00:00
placeholder="input search text"
style="width: 200px"
@search="onSearch"
/>
</template>
<script>
2017-12-07 04:31:12 +00:00
export default {
methods: {
onSearch (value) {
console.log(value)
},
},
}
</script>
```