wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
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>