摘要: /** *格式化时间 *yyyy-MM-dd hh:mm:ss */ export function formatDate(time, fmt) { if (time undefined || "") { return; } // 兼容ios if ((time + "").indexOf("-") 阅读全文
posted @ 2020-11-10 16:49 写最骚的代码 阅读(169) 评论(0) 推荐(0) 编辑
  2024年5月30日
摘要: // 在columns中使用customHeaderCell设置style { title: '设置customHeaderCell', dataIndex: 'id', width: 100, customHeaderCell: () => ({ style: { 'min-width': '10 阅读全文
posted @ 2024-05-30 15:50 写最骚的代码 阅读(44) 评论(0) 推荐(0) 编辑
  2024年3月25日
摘要: <a-select :placeholder="placeholder" mode="multiple" show-arrow show-search class="y_select" > .y_select { width: 100%; ::v-deep .ant-select-selection 阅读全文
posted @ 2024-03-25 17:33 写最骚的代码 阅读(174) 评论(0) 推荐(0) 编辑
  2023年12月11日
摘要: 解决方法:vue版本使用3.3.11 ant版本使用4.0.6就可以了 阅读全文
posted @ 2023-12-11 18:23 写最骚的代码 阅读(60) 评论(0) 推荐(0) 编辑
摘要: const files = import.meta.glob('./*.js',{eager:true}) //会得到一个对象 注意引入路径里绝对不能带有变量,会报错 //{eager:true}是定义是否同步引入的参数,去掉会得到几个异步函数,根据自己的需求写就行了 console.log(fil 阅读全文
posted @ 2023-12-11 16:44 写最骚的代码 阅读(325) 评论(0) 推荐(0) 编辑
  2023年12月6日
摘要: <template> <svg class="load" viewBox="25 25 50 50" :style="{ width: loadWidth, height: loadWidth }" > <circle class="loading_bg" cx="50" cy="50" r="20 阅读全文
posted @ 2023-12-06 10:36 写最骚的代码 阅读(115) 评论(0) 推荐(0) 编辑
  2023年11月2日
摘要: 依赖关系如图: 如果报如题这个错误,并且按照上面node-sass官网的依赖关系依赖对了node版本还不行,那么,请删除node-sass npm uninstall node-sass 然后执行 npm i sass --save-dev 然后运行项目,如果出现类似图片中的错误时,别慌,把所有的/ 阅读全文
posted @ 2023-11-02 16:18 写最骚的代码 阅读(472) 评论(0) 推荐(0) 编辑
  2023年7月21日
摘要: // hex转rgba第一种 const hex2Rgb = (hexValue, alpha = 1) => { const rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; const hex = hexValue.replace(rgx, (m, r, g, 阅读全文
posted @ 2023-07-21 10:04 写最骚的代码 阅读(987) 评论(0) 推荐(0) 编辑
  2023年7月13日
摘要: 一、Yarn 设置淘宝镜像 1.查询当前配置的镜像 yarn config get registry // 默认:https://registry.yarnpkg.com 2.设置成淘宝镜像 yarn config set registry http://registry.npm.taobao.or 阅读全文
posted @ 2023-07-13 13:15 写最骚的代码 阅读(572) 评论(0) 推荐(0) 编辑
  2023年7月3日
摘要: 1.结构目录 2.新建request目录 type.ts import type { AxiosRequestConfig, AxiosResponse } from 'axios'; // 拦截器的类型 export interface InRequestInterceptors<T = Axio 阅读全文
posted @ 2023-07-03 16:51 写最骚的代码 阅读(657) 评论(0) 推荐(0) 编辑
  2023年6月1日
摘要: https://chat.plexpt.com/i/634465 阅读全文
posted @ 2023-06-01 11:04 写最骚的代码 阅读(186) 评论(0) 推荐(0) 编辑