wangrong
2026-08-30 4c949c0dc9bcae785c281c9d8125295f09810b15
1
2
3
4
5
6
7
8
9
10
11
12
13
<script lang="ts" setup>
import { type DateModelType } from 'element-plus-secondary'
import { ref } from 'vue'
const selectValue = ref<[DateModelType, DateModelType]>([new Date(), new Date()])
</script>
 
<template>
  <div>
    <el-date-picker v-model="selectValue" type="yearrange" format="YYYY" />
  </div>
</template>
 
<style lang="less" scoped></style>