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; position: absolute;
top: 0; top: 0;
bottom: 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; border-radius: @border-radius-small 0 0 @border-radius-small;
overflow: auto;
} }
&-shortcut{ &-shortcut{
padding: @btn-padding-large;
transition: all @transition-time @ease-in-out;
cursor: pointer;
&:hover{
background: @border-color-split;
}
} }
&-body{ &-body{
float: left; float: left;

View file

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