mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
9be58078d2
* feat(demo): A-B * feat(demo): update B-checkbox * feat(demo): update CheckBox -DatePicker * feat(demo): update DatePicker - Form * feat(demo): update Form - List * feat(demo): update List-pagination * feat(demo): update List - skeleton * feat(demo): update skeleton - switch * feat(demo): update skeleton - switch * feat(demo): update switch - upload * feat(demo): update watermark * fix(demo): del hashId
27 lines
544 B
Vue
27 lines
544 B
Vue
<docs>
|
||
---
|
||
order: 4
|
||
title:
|
||
zh-CN: 选择时分
|
||
en-US: Hour and minute
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
TimePicker 浮层中的列会随着 `format` 变化,当略去 `format` 中的某部分时,浮层中对应的列也会消失。
|
||
|
||
## en-US
|
||
|
||
While part of `format` is omitted, the corresponding column in panel will disappear, too.
|
||
|
||
</docs>
|
||
|
||
<template>
|
||
<a-time-picker v-model:value="value" format="HH:mm" />
|
||
</template>
|
||
<script lang="ts" setup>
|
||
import { ref } from 'vue';
|
||
import dayjs from 'dayjs';
|
||
const value = ref(dayjs('12:08', 'HH:mm'));
|
||
</script>
|