You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/time-picker/demo/12hours.md

29 lines
563 B

<cn>
#### 12 小时制
12 小时制的时间选择器,默认的 format 为 `h:mm:ss a`
</cn>
<us>
#### 12 hours
TimePicker of 12 hours format, with default format `h:mm:ss a`.
</us>
```html
<template>
<div>
<a-time-picker use12Hours @change="onChange" />
<a-time-picker use12Hours format="h:mm:ss A" @change="onChange" />
<a-time-picker use12Hours format="h:mm a" @change="onChange" />
</div>
</template>
<script>
export default {
methods: {
onChange(time, timeString){
console.log(time, timeString);
}
},
}
</script>
```