摘要: @at-root [dir='rtl'] & .hide-types-icon { transform: rotateY(180deg); } 阅读全文
posted @ 2022-09-21 17:59 生命在于折腾Up 阅读(59) 评论(0) 推荐(0)
摘要: { path: '/:pathMatch(.*)', redirect: '/home', }, 阅读全文
posted @ 2022-09-02 10:11 生命在于折腾Up 阅读(422) 评论(0) 推荐(0)
摘要: <div class="box-item-num white"> <span class="num">x <b>12</b></span> </div> &-num { width: 46px; height: 26px; font-size: 12px; position: absolute; l 阅读全文
posted @ 2022-09-01 10:56 生命在于折腾Up 阅读(3128) 评论(0) 推荐(0)
摘要: 需求为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 阅读(100) 评论(0) 推荐(0)
摘要: 单行省略号 .demo{ white-space:nowrap; /* 不换行 */ overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden; 阅读全文
posted @ 2022-08-07 18:25 生命在于折腾Up 阅读(776) 评论(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 阅读(1067) 评论(0) 推荐(0)
摘要: 因为项目中引入了 @vue/composition-api ,因此以下代码为 vue3 + vue2 写法(因为vue-router 3版本不能在 steup 中使用),有好的建议可以提一下~~ import {onActivated, getCurrentInstance } from '@vue 阅读全文
posted @ 2022-07-27 18:36 生命在于折腾Up 阅读(508) 评论(0) 推荐(0)
摘要: const filterItem = arr1.filter(item=>!arr2.some(ele=>ele.id item.id)) 阅读全文
posted @ 2022-07-18 18:46 生命在于折腾Up 阅读(75) 评论(0) 推荐(0)
摘要: 在 module.exports 中加入以下代码,@ 代表 src 目录 module.exports = { css: { loaderOptions: { sass: { // 全局sass变量 additionalData: `@import "@/style/scss/common.scss 阅读全文
posted @ 2022-06-23 20:01 生命在于折腾Up 阅读(844) 评论(0) 推荐(0)
摘要: watch( () => [tokenDialogState.tokenDialogForm.withdrawFeeMinUsdt, tokenDialogState.tokenDialogForm.coinPriceUsdt], ([withdrawFeeMinUsdt, coinPriceUsd 阅读全文
posted @ 2022-06-22 17:18 生命在于折腾Up 阅读(2056) 评论(0) 推荐(0)