摘要:
在工作中经常遇到需要把带有pId的的list数据转换为children格式的树形结构,一直都没有找到太好的工具函数。偶然间看到了这个函数,研究了下,感觉这个函数很强大,所以记录下来,作为备用,同时也贴出来,供大家使用;/** * json格式转树状结构 * @param {json} json数据 * @param {String} id的字符串 * @p... 阅读全文
摘要:
设置 margin-bottom:0 !important; overflow-x: hidden!important; 阅读全文
摘要:
.el-scrollbar{ .el-scrollbar__bar.is-vertical { opacity: 1;//改为0不显示滚动条 width:5; } } 阅读全文
摘要:
<el-tree v-if="orgDrawer" :data="orgTree" size="medium" ref="orgTree" highlight-current :props="defaultProps" :expand-on-click-node="false" @current-c 阅读全文
摘要:
formData.append('file', file) // 必须放最后拼接,不然OSS会报 The bucket POST must contain the specified 'key'. If it is specified, please check the order of the f 阅读全文
摘要:
之前接手了老的项目,不知道项目中的Icon图标在哪里维护。项目中只有一份svg文件,这份svg文件中包含多个svg图标,由于阿里iconfont网站不支持这种svg文件的上传,所以使用 iconMoon网站上传此svg文件,然后下载包含的单个svg文件,再全部上传到iconfont网站新建项目进行维 阅读全文
摘要:
.el-tree>.el-tree-node { display: inline-block; min-width: 100%; } 阅读全文
摘要:
async getCode() { try { const res = await this.getCodeAsync() } catch (err) { console.log(err) } } 阅读全文