🎨 add eslint
This commit is contained in:
parent
829a2e4cfc
commit
b0893113b3
88 changed files with 376 additions and 370 deletions
|
@ -157,7 +157,7 @@
|
|||
selectionMode: 'range',
|
||||
leftTableYear: null,
|
||||
rightTableYear: null
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
|
@ -167,7 +167,7 @@
|
|||
{
|
||||
[`${prefixCls}-with-sidebar`]: this.shortcuts.length
|
||||
}
|
||||
]
|
||||
];
|
||||
},
|
||||
leftYear () {
|
||||
return this.date.getFullYear();
|
||||
|
@ -353,5 +353,5 @@
|
|||
this.rangeState = val.rangeState;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -73,7 +73,6 @@
|
|||
import YearTable from '../base/year-table.vue';
|
||||
import MonthTable from '../base/month-table.vue';
|
||||
import Confirm from '../base/confirm.vue';
|
||||
import { formatDate, parseDate } from '../util';
|
||||
|
||||
import Mixin from './mixin';
|
||||
|
||||
|
@ -97,7 +96,7 @@
|
|||
year: null,
|
||||
month: null,
|
||||
confirm: false
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
|
@ -106,7 +105,7 @@
|
|||
{
|
||||
[`${prefixCls}-with-sidebar`]: this.shortcuts.length
|
||||
}
|
||||
]
|
||||
];
|
||||
},
|
||||
yearLabel () {
|
||||
const year = this.year;
|
||||
|
@ -238,5 +237,5 @@
|
|||
this.month = this.date.getMonth();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
|||
`${prefixCls}-icon-btn`,
|
||||
`${datePrefixCls}-${direction}-btn`,
|
||||
`${datePrefixCls}-${direction}-btn-arrow${type}`,
|
||||
]
|
||||
];
|
||||
},
|
||||
handleShortcutClick (shortcut) {
|
||||
if (shortcut.value) this.$emit('on-pick', shortcut.value());
|
||||
|
@ -24,4 +24,4 @@ export default {
|
|||
this.$emit('on-pick-click');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue