el-date-picker-v2
v1.0.0
Published
el-date-picker组件支持yearrange
Downloads
9
Maintainers
Readme
el-date-picker-v2 日期选择组件
运行环境:vue2.x + element-ui2.15.x
优化
- 增加年份范围选择type='yearrange'
Usage
pnpm i el-date-picker-v2
main.js
import ElDatePickerV2 from 'el-date-picker-v2'
Vue.component('ElDatePickerV2', ElDatePickerV2)
template
<el-date-picker-v2
v-model="timeRange"
type="yearrange"
range-separator="至"
start-placeholder="开始年份"
end-placeholder="结束年份"
/>
因是在原来的el-date-picker基础上修改,所以支持el-date-picker的所有属性