小七来了

2024年4月11日

富文本内容在el-table中回显并且带省略号

摘要: html部分 <el-table> <el-table-column label="茶园介绍" width="100"> <template slot-scope="{ row }"> <div class="show-ellipsis" v-html="row.profile" @click="v 阅读全文

posted @ 2024-04-11 15:48 小七来了 阅读(6) 评论(0) 推荐(0) 编辑

2024年3月27日

elementui组件el-input 类型为number时,去掉上下箭头,并且解决输入中文后光标上移问题

摘要: //去掉number输入框的上下箭头 .def-input-number input::-webkit-outer-spin-button, .def-input-number input::-webkit-inner-spin-button { -webkit-appearance: none; 阅读全文

posted @ 2024-03-27 14:51 小七来了 阅读(59) 评论(0) 推荐(0) 编辑

2024年3月20日

postcss-px2rem 的使用

摘要: 两种方法: 1、不改变第三方组件的样式 第一步 先卸载安装的postcss-px2rem npm uninstall postcss-px2rem 安装postcss-px2rem-exclude npm i postcss-px2rem-exclude --save 第二步 在项目根目录下面建立p 阅读全文

posted @ 2024-03-20 11:03 小七来了 阅读(73) 评论(0) 推荐(0) 编辑

2024年3月7日

对于core-js相关的报错 core-js/modules/es.array.push.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpers/construct.js

摘要: These dependencies were not found: * core-js/modules/es.array.push.js in ./node_modules/.store/@babel+runtime@7.24.0/node_modules/@babel/runtime/helpe 阅读全文

posted @ 2024-03-07 15:33 小七来了 阅读(242) 评论(0) 推荐(0) 编辑

2024年2月28日

菜鸟工具

摘要: 菜鸟工具链接:https://www.jyshare.com/ 阅读全文

posted @ 2024-02-28 15:41 小七来了 阅读(4) 评论(0) 推荐(0) 编辑
vue+element 表单拖拉拽生成器

摘要: https://jakhuang.github.io/form-generator/#/ 阅读全文

posted @ 2024-02-28 13:34 小七来了 阅读(36) 评论(0) 推荐(0) 编辑
downloadjs 下载文件,vue项目使用方法

摘要: 1.安装downloadjs npm install downloadjs -D 2. 在需要使用得页面引入 import download from 'downloadjs' 3.使用方法 如果是url下载直接:download(url) 如果是文件流下载:download(blobData,"测 阅读全文

posted @ 2024-02-28 11:40 小七来了 阅读(28) 评论(0) 推荐(0) 编辑

2024年2月22日

多个form表单同时校验

摘要: 1.新建mulitipleFormValid.js /** * 多个表单同时校验 * @param {*} formRefs * @returns */ const validateForms = (formRefs) => { let objectList = []; let results = 阅读全文

posted @ 2024-02-22 15:15 小七来了 阅读(16) 评论(0) 推荐(0) 编辑
el-form表单使用pattern自定义校验规则

摘要: //正则校验的正则表达式,这里注意正则表达式中的‘\’要使用‘\\’转义 const patterns = { "name":"^[a-zA-Z_][0-9a-zA-Z_]{0,}$", "tel":"^1[2-9]\\d{0,}$", "email":"^\\w+([-+.]\\w+)*@\\w+ 阅读全文

posted @ 2024-02-22 14:51 小七来了 阅读(54) 评论(0) 推荐(0) 编辑
el-input全局实现去除输入时前后空格功能更

摘要: 1.首先创建el-input.js 本人是在utils目录下创建el-input.js文件 import Vue from 'vue' import ElementUI from 'element-ui'; /** * @description 统一格式化去除input首尾空格 * @date 20 阅读全文

posted @ 2024-02-22 14:40 小七来了 阅读(89) 评论(0) 推荐(0) 编辑