ant-design-vue/components/time-picker/demo/suffix.md

29 lines
584 B
Markdown
Raw Normal View History

2018-12-09 04:50:26 +00:00
<cn>
#### 后缀图标
点击 TimePicker然后可以在浮层中选择或者输入某一时间。
</cn>
<us>
#### Suffix
Click `TimePicker`, and then we could select or input a time in panel.
</us>
```html
<template>
<a-time-picker @change="onChange" :defaultOpenValue="moment('00:00:00', 'HH:mm:ss')">
2019-09-28 12:45:07 +00:00
<a-icon type="smile" slot="suffixIcon" />
2018-12-09 04:50:26 +00:00
</a-time-picker>
</template>
<script>
2019-09-28 12:45:07 +00:00
import moment from 'moment';
export default {
methods: {
moment,
onChange(time, timeString) {
console.log(time, timeString);
},
},
};
2018-12-09 04:50:26 +00:00
</script>
```