摘要: 1.安装 vue-esignnpm install vue-esign --save 2.全局引用 3.代码 4.将生成的base64转成文件 handleGenerate() { this.$refs.esign .generate() .then(res => { let randnum = M 阅读全文
posted @ 2023-03-25 09:48 CodeAma 阅读(2104) 评论(0) 推荐(0)
摘要: vue项目中 —— rem布局适配方案 Vant 中的样式默认使用 px 作为单位,如果需要使用 rem 单位,推荐使用以下两个工具: lib-flexible 用于设置 rem 基准值 postcss-pxtorem 是一款 postcss 插件,用于将单位转化为 rem 下面我们分别将这两个工具 阅读全文
posted @ 2023-03-23 11:43 CodeAma 阅读(309) 评论(0) 推荐(0)
摘要: // el-cascader回显 Deptsearch(object, value, param, children) { for (var key in object) { if (object[key][param] == value) return [object[key][param]] i 阅读全文
posted @ 2023-03-07 13:52 CodeAma 阅读(1377) 评论(0) 推荐(0)
摘要: 1,2正常现象如下: 2,点击折叠图标 再点折叠 无图标了 解决:flex:1,width:0 就可以了 阅读全文
posted @ 2023-02-22 14:45 CodeAma 阅读(940) 评论(0) 推荐(0)
摘要: 首先下载react-redux插件 yarn add react-redux 或 npm add react-redux 然后创建一个容器组件Container connect(mapStateToProps, mapDispatchToProps)(CountUI) 固定写法 mapStateTo 阅读全文
posted @ 2021-12-17 09:32 CodeAma 阅读(81) 评论(0) 推荐(0)
摘要: react快速创建组件 安装ES7插件 组件页面输入rcc 阅读全文
posted @ 2021-12-11 15:28 CodeAma 阅读(69) 评论(0) 推荐(0)
摘要: 防抖与节流 防抖:短时间内大量触发同一事件,只会执行一次函数。 // 防抖 function debounce(fn, delay) { let timer = null; if (timer) { clearTimeout(timer); } timer = setTimeout(() => { 阅读全文
posted @ 2021-12-06 15:10 CodeAma 阅读(37) 评论(0) 推荐(0)