周选择器 vxe-date-picker 自定义一周开始日
周一开始
<template>
<div>
<vxe-date-picker v-model="val1" placeholder="周选择,周一开始" type="week" :start-day="1"></vxe-date-picker>
</div>
</template>
<script>
export default {
data () {
return {
val1: ''
}
}
}
</script>
周日开始
<template>
<div>
<vxe-date-picker v-model="val1" placeholder="周选择,周天开始" type="week" :start-day="0"></vxe-date-picker>
</div>
</template>
<script>
export default {
data () {
return {
val1: ''
}
}
}
</script>
周六开始
<template>
<div>
<vxe-date-picker v-model="val1" placeholder="周选择,周六开始" type="week" :start-day="6" clearable></vxe-date-picker>
</div>
</template>
<script>
export default {
data () {
return {
val1: ''
}
}
}
</script>
https://gitee.com/x-extends/vxe-pc-ui
标签:picker,自定义,vxe,export,val1,选择器 From: https://www.cnblogs.com/qaz666/p/18651947