on>
</Button.Group>
</Col>
<Col span={4}>
<Button value='day'
type={buttonType === 'day' ? 'primary' : 'default'}
onClick={handleChangeButton}>今天</Button>
</Col>
<Col span={11}>
<Button.Group onClick={handleChangeButton}>
<Button value='day' type={buttonType === 'day' ? 'primary' : 'default'}>日</Button>
<Button value='week' type={buttonType === 'week' ? 'primary' : 'default'}>周</Button>
<Button value='month' type={buttonType === 'month' ? 'primary' : 'default'}>月</Button>
</Button.Group>
</Col>
</Row>
</Fragment>
);
5、总结
哇,这人贼懒,写个东西都不好好写,代码也就贴一丢丢。
emmm。。
等我把项目代码传到github上后给个链接吧。
写完这个其实收获挺多的,但是要我说出来,又一时语塞。
有很多想要表达的东西,通篇写下来发现并没有表达到,自己第一次写博客,也是太菜了。。
嗯。。如果有人一不小心浪费时间翻到这里,给你说个抱歉,哈哈哈。
以后尽量提高自己的博客质量。
诺~链接:https://github.com/Lighter1187/todo