随笔分类 -  杂七杂八

摘要:react版本 按1920/1080的比例进行缩放比例的换算,本地屏幕的宽高取innerWidth和innerHeight 在需要进行大屏适配的页面添加如下代码,大屏内部的计算单位直接使用px就可以了 //1、计算scale值,并存储在state中 getScale = () => { const 阅读全文
posted @ 2021-07-22 14:41 she_will 阅读(788) 评论(0) 推荐(0)
摘要:tooltip是一个DOM,并不是在config中配置的。。。。。。 :global(.g2-tooltip) { background: #717bb8 !important; box-shadow: #fff 0px 0px 0px !important; opacity: 1 !importa 阅读全文
posted @ 2021-07-09 10:44 she_will 阅读(2203) 评论(0) 推荐(0)
摘要:git add .git commit -m '备注'git remote add origin git@gitee.com:siwill/test.git(如果报错)上面报错就执行下面的git remote rm origingit remote add origin git@gitee.com: 阅读全文
posted @ 2020-07-30 14:45 she_will 阅读(410) 评论(0) 推荐(0)