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

25 lines
386 B
Markdown
Raw Normal View History

2019-04-07 17:19:18 +08:00
<cn>
#### 带移除图标
带移除图标的输入框,点击图标删除所有内容。
</cn>
<us>
#### With clear icon
Input type of password.
</us>
2019-10-09 18:32:23 +08:00
```tpl
2019-04-07 17:19:18 +08:00
<template>
<a-input placeholder="input with clear icon" allowClear @change="onChange" />
</template>
<script>
2019-09-28 20:45:07 +08:00
export default {
methods: {
onChange(e) {
console.log(e);
},
},
};
2019-04-07 17:19:18 +08:00
</script>
```