摘要: 1.安装hls.js和flv.js npm i hls.js flv.js <template> <div> <video controls autoplay loop muted preload="auto" width="550" ref="videoEl" ></video> <el-butt 阅读全文
posted @ 2024-04-26 17:55 崛起崛起 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 功能展示: el-table可以整列勾选,整行勾选,整行和整列勾选,全选取消,单个勾选 主要应用了el-table-column中的render-header方法,手动控制勾选状态 其中每行中的itemCheck${type},checked,isIndeterminate,以及 data中的 is 阅读全文
posted @ 2024-03-29 13:40 崛起崛起 阅读(41) 评论(0) 推荐(0) 编辑
摘要: bug: 数据为0时,el-progress的color还是有颜色,应该是没有颜色的 第一步解决: 设置动态color <el-progress :show-text="false" :percentage="(oilCarOccupationNum / totalNum) * 100" :colo 阅读全文
posted @ 2024-02-22 11:40 崛起崛起 阅读(17) 评论(0) 推荐(0) 编辑
摘要: /deep/ .el-select__tags { flex-wrap: nowrap; } /deep/ .el-select__tags-text { max-width: 45px; overflow: hidden; text-overflow: ellipsis; display: inl 阅读全文
posted @ 2024-01-17 17:01 崛起崛起 阅读(88) 评论(0) 推荐(0) 编辑
摘要: let a = { name: '111', age: 222 }; let b = {}; // Iterate over the properties of a for (let prop in a) { if (a.hasOwnProperty(prop)) { // Assign an em 阅读全文
posted @ 2023-12-20 10:10 崛起崛起 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 使用Vue的provide和inject来实现跨层级的组件通信。 provide允许一个祖先组件(爷爷组件)提供数据, 而inject允许子孙组件(孙子组件)在任意层级注入这个数据。 通过这种方式,你可以在孙子组件中访问到爷爷组件提供的方法。 以下是一个简单的例子: // 在爷爷组件中提供方法 ex 阅读全文
posted @ 2023-12-07 16:06 崛起崛起 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 原生项目在nginx下如何启动 原生项目目录 打开html页面,页面路径为 2.调接口接口请求地址为 这是不对的。 3.正确的应该是,参考nginx配置,把路径修改 file:///E:/sso/html-gov-js/html/index.html变成https://localhost/index 阅读全文
posted @ 2023-12-01 13:16 崛起崛起 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 文章目的: 看到一段代码不理解什么意思,查了一下是为了解决,重复跳转相同的路由,控制台报错。 重写了方法后,能catch异常,不会在控制台报错了。 代码: Router.prototype.push = function push(location) { console.log(location, 阅读全文
posted @ 2023-11-07 10:27 崛起崛起 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 组件一、基础多选 <template> <el-select v-model="value1" multiple placeholder="请选择"> <el-option v-for="item in options" :key="item.value" :label="item.label" : 阅读全文
posted @ 2023-11-06 15:46 崛起崛起 阅读(588) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div v-for="(item, index) in list" :key="index" class="box"> <img :src="item" alt="" @click="onPreview(item)" /> </div> <el-image-vie 阅读全文
posted @ 2023-11-03 13:27 崛起崛起 阅读(302) 评论(0) 推荐(0) 编辑