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.
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 : 1.1
title :
zh - CN : 切换不同的选择器
en - US : Switchable picker
-- -
# # zh - CN
提供选择器 , 自由切换不同类型的日期选择器 , 常用于日期筛选场合 。
# # en - US
Switch in different types of pickers by Select .
< / docs >
< template >
< a -space direction = "vertical" :size ="12" >
< a -select v -model :value ="type" >
< a -select -option value = "time" > Time < / a - s e l e c t - o p t i o n >
< a -select -option value = "date" > Date < / a - s e l e c t - o p t i o n >
< a -select -option value = "week" > Week < / a - s e l e c t - o p t i o n >
< a -select -option value = "month" > Month < / a - s e l e c t - o p t i o n >
< a -select -option value = "quarter" > Quarter < / a - s e l e c t - o p t i o n >
< a -select -option value = "year" > Year < / a - s e l e c t - o p t i o n >
< / a - s e l e c t >
< template v-if ="type === 'time'">
<a-time-picker />
</template>
<template v-else>
<a-date-picker :picker="type" />
</template>
</a-space>
</template>
<script lang="ts" >
import { defineComponent , ref } from ' vue ' ;
export default defineComponent ( {
setup ( ) {
return {
type : ref ( ' time ' ) ,
} ;
} ,
} ) ;
< / script >