上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: ##一、安装react+ts npx create-react-app my-app --template typescript ##二、安装eslint代码检测 yarn eslint npx eslint --init eslint初始化后会出现三个项目,根据项目而定 1、使用什么样的eslin 阅读全文
posted @ 2022-11-11 16:01 ZerlinM 阅读(147) 评论(0) 推荐(0)
摘要: 在开发的过程中,常常会遇到头部高度是40px,而内容页是除去头部,占满视窗的整个高度,有时候是用js来处理,现在用css的calc是非常方便的: .container{ height: calc(100% - 40px); // 注:减号前后要有空格,否则很可能不生效!! } 注意:如果用了CSS预 阅读全文
posted @ 2022-11-10 13:50 ZerlinM 阅读(120) 评论(0) 推荐(0)
摘要: react-rnd 是一个React 组件库,可以提供一个可调整大小与可拖拽的组件。 ![](https://img2022.cnblogs.com/blog/1950214/202211/1950214-20221108091238204-1993259575.webp) ###一、安装 使用 n 阅读全文
posted @ 2022-11-08 09:23 ZerlinM 阅读(5366) 评论(3) 推荐(0)
摘要: cursor:hand;手型 cursor:pointer;手型 cursor:auto;由系统自动给出 cursor:crosshair;十字型 cursor:text;I字形 cursor:wait;等待 cursor:default;默认 cursor:e-resize;向右的箭头 curso 阅读全文
posted @ 2022-11-08 09:06 ZerlinM 阅读(302) 评论(0) 推荐(0)
摘要: dataZoom 组件 用于区域缩放,先上手柄效果图:长方形和圆形的效果: 先将 handleIcon 的具体数值贴出来: dataZoom: [ { id: "dataZoomX", type: "slider", backgroundColor: "#F2F5F9", fillerColor: 阅读全文
posted @ 2022-10-25 09:31 ZerlinM 阅读(1307) 评论(0) 推荐(0)
摘要: 如图 将Y轴 设置为固定的0% 20% 100% yAxis: { type: 'value', max: 100,//最大值 min: 0,//最小值 interval:20,//间隔 axisLine:{ show: false, lineStyle:{ color:'#d9e1e4' }, } 阅读全文
posted @ 2022-10-19 14:09 ZerlinM 阅读(1909) 评论(0) 推荐(0)
摘要: ####去掉video播放自带的“播放速度,下载”按钮 给video设置属性 controlsList=‘nodownload noplaybackrate’ <video controls src="1.mp4" controlsList="nodownload noplaybackrate">< 阅读全文
posted @ 2022-10-19 14:00 ZerlinM 阅读(2097) 评论(0) 推荐(0)
摘要: 使用npm安装任何包,安装半天进度条一动不动最后超时错误。 npm install nrm -g npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! network request to 阅读全文
posted @ 2022-10-10 14:13 ZerlinM 阅读(1816) 评论(0) 推荐(0)
摘要: Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, ca 阅读全文
posted @ 2022-08-22 16:37 ZerlinM 阅读(563) 评论(0) 推荐(0)
摘要: {list.map((item: any) => { const index: number = item.name.indexOf(searchValue); const beforeStr = item.name.substr(0, index); const afterStr = item.n 阅读全文
posted @ 2022-08-22 13:46 ZerlinM 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页