update DatePicker

update DatePicker
This commit is contained in:
梁灏 2016-12-16 15:00:20 +08:00
parent 2533a192dd
commit e55f00ff7e
2 changed files with 16 additions and 7 deletions

View file

@ -183,11 +183,19 @@
position: absolute;
top: 0;
bottom: 0;
background: @border-color-split;
background: @table-thead-bg;
border-right: 1px solid @border-color-split;
border-radius: @border-radius-small 0 0 @border-radius-small;
overflow: auto;
}
&-shortcut{
padding: @btn-padding-large;
transition: all @transition-time @ease-in-out;
cursor: pointer;
&:hover{
background: @border-color-split;
}
}
&-body{
float: left;

View file

@ -27,7 +27,7 @@
data () {
return {
// value: new Date(),
value: '',
value: '2016-12-25',
options: {
disabledDate(time) {
// console.log(time)
@ -39,9 +39,10 @@
{
text: '今天',
value () {
return new Date();
// return new Date();
return '1/2/19'
},
onClick () {
onClick (picker) {
console.log('点击了今天');
}
},
@ -63,9 +64,9 @@
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
return date;
},
// onClick () {
// console.log('');
// }
onClick () {
console.log('点击了一周前');
}
}
]
},