2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-19 16:50:36 +03:00

refactor: remove date-fns && optimize code

This commit is contained in:
mengxiong10
2020-11-16 11:30:42 +08:00
parent a9b7900f39
commit a5a41096dc
37 changed files with 1908 additions and 1963 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ describe('TableMonth', () => {
it('correct render', () => {
wrapper = mount(TableMonth, {
propsData: {
getClasses: month => {
calendar: new Date(2019, 9, 1, 0, 0, 0),
getCellClasses: month => {
if (month === 9) {
return 'active';
}