上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 升级依赖: 1、安装业务依赖 yarn add $package 或者npm install $package --save 2、安装工具包 yarn add $package -D 或者 npm install $package --save-dev 全面升级依赖,参考:https://blog. 阅读全文
posted @ 2021-08-18 10:32 衔石 阅读(1005) 评论(0) 推荐(0)
摘要: 获取token的方式,请阅读https://blog.csdn.net/weixin_41010198/article/details/119698015 设置提交仓库地址的方式参考: git remote set-url origin https://<your_token>@github.com 阅读全文
posted @ 2021-08-16 20:29 衔石 阅读(1358) 评论(0) 推荐(0)
摘要: js 将用连接符连接的英文字符串转换成驼峰命名 1 // transformStr3('edsp-log-ui-test') // "edspLogUiTest" 2 function transformStr3(str) { 3 var re = /-(\w)/g; 4 return str.re 阅读全文
posted @ 2021-08-11 14:11 衔石 阅读(450) 评论(0) 推荐(0)
摘要: // Scrollbars .no-overlay-scrollbar { ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar:hover { height: 8px; } ::-webkit-scrollbar- 阅读全文
posted @ 2021-07-26 11:32 衔石 阅读(1081) 评论(0) 推荐(0)
摘要: // Slightly modified, but without dependancies: // https://raw.githubusercontent.com/malte-wessel/react-custom-scrollbars/master/src/utils/getScrollba 阅读全文
posted @ 2021-07-26 11:28 衔石 阅读(93) 评论(0) 推荐(0)
摘要: 参考原文:https://segmentfault.com/a/1190000014301657 找到 your-project/package.json下关于webpack-dev-server的配置: 比如: "dev": "webpack-dev-server --inline --progr 阅读全文
posted @ 2021-07-23 10:51 衔石 阅读(613) 评论(0) 推荐(0)
摘要: let scrollbarWidth: number | null = null; export function getScrollbarWidth() { if (scrollbarWidth !== null) { return scrollbarWidth; } if (typeof doc 阅读全文
posted @ 2021-07-07 15:56 衔石 阅读(619) 评论(0) 推荐(0)
摘要: /** * [camelCaseToHyphen 将驼峰命名转换为连字符] * @param {[string]} str [驼峰命名的字符串] * @return {[string]} [连字符的字符串] */ export function camelCaseToHyphen (str) { r 阅读全文
posted @ 2021-07-06 15:40 衔石 阅读(256) 评论(0) 推荐(0)
摘要: 方法一:使用new Set()的方法 const arr= Array.from(new Set([1,2,3,4,2,1])) // [1,2,3,4] 方法二:使用filter的方法 const arrFilter= [1,2,4,2,1] .filter(function onlyUnique 阅读全文
posted @ 2021-07-05 11:19 衔石 阅读(49) 评论(0) 推荐(0)
摘要: // 将数字转化成kw单位 export function formatNumber(num) { return num >= 1e3 && num < 1e4 ? (num / 1e3).toFixed(1) + 'k' : num >= 1e4 ? (num / 1e4).toFixed(1) 阅读全文
posted @ 2021-06-23 17:25 衔石 阅读(655) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页