px2rem

npm i postcss-px2rem postcss.config.js module.exports = { plugins: { autoprefixer: { overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'] }, "postcss-px2rem": { remUnit: 36, // 50px = 1rem remPrecision: 2 // rem的小数点后位数 } } }

read more..

vue-print-nb 打印

npm i vue-print-nb import Print from 'vue-print-nb' use(Print) <a-button :style="{ marginLeft: '6px' }" v-print="'#printTest'">导出PDF</a-button> #printTest 是打印的容器 printSetting:{ id:"printTest", // 打印的容器ID popTitle:"得膜率图表", // 顶部标签 preview:false, // 是否开启预览 }, 打印的时候可以表格线...

read more..

echarts 悬浮框内容

tooltip 下 formatter: function (params) { console.log(params); var result = params[0].axisValue + "<br/>"; params.forEach(function (item) { var suffix = '' if(item.seriesName.indexOf('率') != -1){ suffix = '%' }else { suffix = 'KG' ...

read more..

Vue2 动态插槽名称透传

<div class="tablesing"> <vxe-grid ref="xGrid" border show-overflow :data="dataSource" :columns="cloneColumns" height="700" :row-config="{ isHover: true, isCurrent: true,height:28 }" :column-config="{ isHover: true }" > <template v-for="(index,name) in $slots" v-slot:[name]> ...

read more..

Mac 虚拟机UTM

https://mac.getutm.app/ https://mac.getutm.app/support/ Shift + F10 打开CMD 命令视窗(要同时按FN键,Shift + F10+ FN) OOBE\BYPASSNRO

read more..

随机图片API

https://s.file.itsse.cn/tool/api/v1/bg 每次请求都是随机图片, 如下是预览图. 图片包地址: https://www.aliyundrive.com/s/P7Ad98uXWRh

read more..

UnixBench工具跑分测试(一)

wget https://cdn.jsdelivr.net/gh/WishMelz/file/2022/UnixBench5.1.3.tgz tar -xf UnixBench5.1.3.tgz cd UnixBench5.1.3 make ./Run 等待即可 问题 make: gcc: Command not found make: *** [pgms/arithoh] Error 127 yum -y install gcc Can't locate Time/HiRes.pm or Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/loc...

read more..