![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS
晒黑的小神仙
这个作者很懒,什么都没留下…
展开
-
element的el-input出现无法输入的bug
在某位传说级大佬 的指点下,解决了该bug问题 :在 el-table 中使用了 el-input , el-table 外层还嵌套了多层 el- 组件原因 : 嵌套的 el- 组件太多解决 :1. 在el-table的el-table-column中,使用template slot-scope="scope"插槽,再将el-input放入其中2.将el-input绑定的数据,存放在el-table的 :data数据中<el-...原创 2022-04-26 17:54:09 · 2300 阅读 · 0 评论 -
element中dialog里放tree增加滚动条
样式层 less : /deep/ .el-dialog { width: 20% !important; ::-webkit-scrollbar { width: 3px; height: 1px; } ::-webkit-scrollbar-thumb { //滑块部分 border-radius: 5px; background-color: #c1c1c1; } ::-webkit-scrollbar-track { ...原创 2022-04-22 18:58:51 · 503 阅读 · 0 评论 -
uni-app实现滚动区域
效果 :子组件 children 结构层 :// 给父级标签使用 scroll-view , 添加 scroll-y 属性<scroll-view scroll-y> <view class="list" v-for="(item, index) in list" :key="index" > {{ item }} </view></scroll-view>父组件 parents 结构层 :<v.原创 2022-03-31 10:18:46 · 1427 阅读 · 0 评论 -
Vue节点动态添加样式类
<template> <view class="context"> <block v-for="(item,index) in List" :key="index"> <view :class="['depot', index !== 0 ? 'canChose' : '']"> <view>{{ item.name }}</view> </view> </block> <.原创 2022-03-28 19:06:35 · 552 阅读 · 0 评论 -
vue导航选中切换样式及默认选中样式
结构层 :<block v-for="(item, i) in titleTxt" :key="i"> <view :class="[{ active:title == item }]" @click="checked(item)">{{ item }}</view></block>行为层 :data() { return { titleTxt: ['采购','仓库','出库','入库'], title: '...原创 2022-03-28 11:31:55 · 1154 阅读 · 0 评论 -
Vue PC 项目中, 使用公共样式, 出现不同组件样式失效解决方法
问题 :在多个组件中使用的公共样式,切换组件时,部分组件出现没有公共样式的效果解决 :在 public / index.html 中, 引入公共样式<link rel="stylesheet" href="/reset.css" scope/>样式路径, 使用绝对路径即可...原创 2022-03-04 11:35:09 · 689 阅读 · 0 评论