<el-date-picker
v-model="ruleForm.publishDate"
type="date"
value-format="timestamp"
size="normal"
placeholder="请选择发布时间"
:picker-options="pickerOption"
></el-date-picker>
data() {
return {
pickerOption: {//时间选择器选择七天
disabledDate(time) {
return time.getTime() > Date.now()+ 6 * 86400000 ||time.getTime()+86400000 < Date.now();
}
},
}
}
从当前日向下七天
版权声明:本文为yuan5211215原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。