摘要: table嵌套去除重复框的关键代码: <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;"> <table border="1" cellspacing="0" cellpadding 阅读全文
posted @ 2022-08-10 09:57 itmacy 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 语法格式 创建类: class 类名 {} 创建实例: var xx = new 类名() 类的构造函数:constructor class 类名 { constructor (xx) { this.xx = xx } // 只要new实例,就会自动调用这个函数,this指实例对象 } 类的方法: 阅读全文
posted @ 2022-07-14 15:22 itmacy 阅读(61) 评论(0) 推荐(0) 编辑
摘要: js根据年月获取当月最后一天,或者根据年月获取最大的天数,其代码如下: const input = "2020-06" const arr = input.split('-') const maxDay = new Date(arr[0], arr[1], 0).getDate() // 获取当月最 阅读全文
posted @ 2022-06-09 16:03 itmacy 阅读(875) 评论(0) 推荐(0) 编辑
摘要: 很久没有创建vue整合element-ui的项目,这次在整合过程中,想要自定义主题,以前是直接使用在线主题编辑器,但是这次却发现使用不了了 所以决定使用命令行主题工具的方式。 首先安装开发依赖: npm i element-theme -D -S npm i element-theme-chalk 阅读全文
posted @ 2022-05-23 14:57 itmacy 阅读(442) 评论(0) 推荐(0) 编辑
摘要: /* Element Chalk Variables */ // Special comment for theme configurator // type|skipAutoTranslation|Category|Order // skipAutoTranslation 1 /* Transit 阅读全文
posted @ 2022-05-23 14:39 itmacy 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 在项目下运行npm install,发现node-sass一直安装不成功,并且报一堆错误 gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: 阅读全文
posted @ 2022-05-19 12:29 itmacy 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 我们都知道,element提供的参考图标是有限的,有时候项目用到的很多都是element不存在的图标,这个时候,可以使用icon font中的图标 登录icon font官网 官网地址为:https://www.iconfont.cn/ 搜索自己想要的图标 加入到购物车 添加到项目 点击购物车 选择 阅读全文
posted @ 2022-05-18 16:43 itmacy 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 如果给父元素固定了宽高,子元素设置overflow:auto时,就会出现滚动条,而浏览器默认的滚动条样式并不是很美观,如下图所示 为了让显示的滚动条更好看些,可以对滚动条样式进行设置,关键css代码如下: // 滚动条 .box-card::-webkit-scrollbar {/*滚动条整体样式* 阅读全文
posted @ 2022-05-18 15:11 itmacy 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 动态合并表格行的代码主要由 :span-method="objectSpanMethod"中objectSpanMethod方法来实现跨行或跨列合并,其代码如下: <template> <div> <el-table :data="tableData" :span-method="objectSpa 阅读全文
posted @ 2022-05-16 20:06 itmacy 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 打开 点击 选择 应用与确定 查看 阅读全文
posted @ 2022-05-16 10:38 itmacy 阅读(390) 评论(0) 推荐(0) 编辑