摘要: 需求为data数据中,多个数组,数组中的项对应一个盒子,盒子需要有逐个开启的动画。如下例子为 Vue3 const itemArr = Array(15).fill(1) const itemArr2 = Array(10).fill(2) const dataArr = [ { title: 'C 阅读全文
posted @ 2022-08-30 14:55 生命在于折腾Up 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 单行省略号 .demo{ white-space:nowrap; /* 不换行 */ overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden; 阅读全文
posted @ 2022-08-07 18:25 生命在于折腾Up 阅读(744) 评论(0) 推荐(0) 编辑
摘要: <div class="create-btn-wrap"> <div class='border-bg'></div> <el-button class="create-button"> <el-image :src="require('@/assets/images/icons/plus.svg' 阅读全文
posted @ 2022-08-04 14:55 生命在于折腾Up 阅读(834) 评论(0) 推荐(0) 编辑
摘要: 因为项目中引入了 @vue/composition-api ,因此以下代码为 vue3 + vue2 写法(因为vue-router 3版本不能在 steup 中使用),有好的建议可以提一下~~ import {onActivated, getCurrentInstance } from '@vue 阅读全文
posted @ 2022-07-27 18:36 生命在于折腾Up 阅读(447) 评论(0) 推荐(0) 编辑
摘要: const filterItem = arr1.filter(item=>!arr2.some(ele=>ele.id item.id)) 阅读全文
posted @ 2022-07-18 18:46 生命在于折腾Up 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 在 module.exports 中加入以下代码,@ 代表 src 目录 module.exports = { css: { loaderOptions: { sass: { // 全局sass变量 additionalData: `@import "@/style/scss/common.scss 阅读全文
posted @ 2022-06-23 20:01 生命在于折腾Up 阅读(761) 评论(0) 推荐(0) 编辑
摘要: watch( () => [tokenDialogState.tokenDialogForm.withdrawFeeMinUsdt, tokenDialogState.tokenDialogForm.coinPriceUsdt], ([withdrawFeeMinUsdt, coinPriceUsd 阅读全文
posted @ 2022-06-22 17:18 生命在于折腾Up 阅读(1979) 评论(0) 推荐(0) 编辑
摘要: filePreview (file) { var self = this; //定义一个文件阅读器 var reader = new FileReader() //文件装载后将其显示在图片预览里 reader.onload = function (e) { //将bade64位图片保存供图片显示 s 阅读全文
posted @ 2022-06-22 11:17 生命在于折腾Up 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 打开 设置 - 目录 - 将 node_modules 设置为资源根即可 阅读全文
posted @ 2022-06-20 11:38 生命在于折腾Up 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 直接上代码!!!以下写法为 vue3 <el-select v-model="columnContentList" placeholder="请输入关键词" ref="columnContentSelect" class="column-content-list"> <el-option v-for 阅读全文
posted @ 2022-06-17 11:20 生命在于折腾Up 阅读(2143) 评论(0) 推荐(0) 编辑