会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
生命在于折腾Up
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年9月21日
给某个类自定义反转样式
摘要: @at-root [dir='rtl'] & .hide-types-icon { transform: rotateY(180deg); }
阅读全文
posted @ 2022-09-21 17:59 生命在于折腾Up
阅读(59)
评论(0)
推荐(0)
2022年9月2日
vue3 匹配没有的路由跳转到404或者首页
摘要: { path: '/:pathMatch(.*)', redirect: '/home', },
阅读全文
posted @ 2022-09-02 10:11 生命在于折腾Up
阅读(422)
评论(0)
推荐(0)
2022年9月1日
css实现带圆角梯形
摘要: <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)
2022年8月30日
双层数组异步处理
摘要: 需求为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)
2022年8月7日
css 设置单行省略号;css设置多行省略号
摘要: 单行省略号 .demo{ white-space:nowrap; /* 不换行 */ overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */ text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;
阅读全文
posted @ 2022-08-07 18:25 生命在于折腾Up
阅读(776)
评论(0)
推荐(0)
2022年8月4日
el-button 实现渐变边框 + 渐变文字
摘要: <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)
2022年7月27日
vue-element-admin 页签切换保留滚动位置
摘要: 因为项目中引入了 @vue/composition-api ,因此以下代码为 vue3 + vue2 写法(因为vue-router 3版本不能在 steup 中使用),有好的建议可以提一下~~ import {onActivated, getCurrentInstance } from '@vue
阅读全文
posted @ 2022-07-27 18:36 生命在于折腾Up
阅读(508)
评论(0)
推荐(0)
2022年7月18日
双数组过滤
摘要: const filterItem = arr1.filter(item=>!arr2.some(ele=>ele.id item.id))
阅读全文
posted @ 2022-07-18 18:46 生命在于折腾Up
阅读(75)
评论(0)
推荐(0)
2022年6月23日
vue.config.js 配置全局 sass变量
摘要: 在 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)
2022年6月22日
vue3 watch监听多个属性
摘要: watch( () => [tokenDialogState.tokenDialogForm.withdrawFeeMinUsdt, tokenDialogState.tokenDialogForm.coinPriceUsdt], ([withdrawFeeMinUsdt, coinPriceUsd
阅读全文
posted @ 2022-06-22 17:18 生命在于折腾Up
阅读(2056)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告