九月 2022

1、全局配置在global.less文件添加如下配置。/*定义滚动条高宽及背景高宽分别对应横竖滚动条的尺寸*/::-webkit-scrollbar{width:5px;height:10px;}/*定义滑块内阴影+圆角*/::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.2);border-radius:10px;}/*定义滚动条轨道内阴影+圆角*/::-webkit-scrollbar-track{border-radius:10px;}2、局部配置.sectionLeft&#12...
快捷键描述shift+alt+↓快速复制当前行到下一行ctrl+enter新起一行ctrl+shift+k删除当前行
本文介绍如何将ant-design-pro的版本由react16升级到react17。1、升级react版本npminstall--savereact@17.0.22、升级react-dom版本npminstall--savereact-dom@17.0.23、升级types/react版本npminstall--save-dev@types/react@17.0.374、升级types/react-dom版本npminstall--save-dev@types/react-dom@17.0.11
1、错误提示​Warning:ReactdoesnotrecognizethedisableValueproponaDOMelement.IfyouintentionallywantittoappearintheDOMasacustomattribute,spellitaslowercasedisablevalueinstead.Ifyouaccidentallypasseditfromaparentcomponent,removeitfromtheDOMelement。2、原因分析​这是React不能识别dom元素上的非标准attribute报出的警告,最终的渲染结果中React会移除这些非...