ant-design-vue/components/date-picker/demo/size.vue

42 lines
978 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<docs>
---
order: 8
title:
zh-CN: 三种大小
en-US: Three Sizes
---
## zh-CN
三种大小的输入框若不设置则为 `default`
## en-US
The input box comes in three sizes. `default` will be used if `size` is omitted.
</docs>
<template>
<a-space direction="vertical" :size="12">
<a-radio-group v-model:value="size">
<a-radio-button value="large">Large</a-radio-button>
<a-radio-button value="default">Default</a-radio-button>
<a-radio-button value="small">Small</a-radio-button>
</a-radio-group>
<a-date-picker :size="size" />
<a-date-picker :size="size" placeholder="Select Month" picker="month" />
<a-range-picker :size="size" />
<a-date-picker :size="size" placeholder="Select Week" picker="week" />
</a-space>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
export default defineComponent({
setup() {
return {
size: ref<string>('default'),
};
},
});
</script>