console
new Vue({
el: '#app',
watch:{
radio2:function(val){
this.type = val
}
},
data() {
return {
type:'date',
radio2: 'date',
pickerOptions1: {
disabledDate(time) {
return time.getTime() < Date.now();
},
shortcuts: [{
text: '今天',
onClick(picker) {
picker.$emit('pick', new Date());
}
}, {
text: '昨天',
onClick(picker) {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24);
picker.$emit('pick', date);
}
}, {
text: '一周前',
onClick(picker) {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', date);
}
}]
},
value1: '',
value2: '',
};
}
})
<div id="app">
<template>
<el-pagination
background
layout="prev, pager, next"
:total="1000"
prev-text="上一页"
next-text="下一页"
>
</el-pagination>
</template>
</div>
.demonstration {
color:white
}