elementui相关

更改按钮默认样式

<el-button type="info">主要按钮</el-button>

.el-button--info{
  color: #fff;
  background-color: #FF69B4;
  border-color: #FF69B4;
}
.el-button--info:disabled {
  background-color: #999999;
  border-color: #999999;
}
.el-button--primary:hover{
  background-color: #FF69B4;
  border-color: #FF69B4;  
}

input里添加 如单位

  1. input更改宽度可以使用el-col
  2. 高度可使用autosize
  3. 输入框里增加icon可以使用prefix-icon、suffix-icon和slot
<el-form-item label="返佣系数"
   <el-input v-model="form.price"><i slot="suffix" style="font-style:normal;margin-right: 10px;"></i></el-input>
</el-form-item>

在这里插入图片描述


cell-style和cell-class-name

  • cell-style:单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style。Function({row, column, rowIndex, columnIndex})/Object
    函数写法:

    <el-table :cell-style="cellStyle"></el-table>
    
    //在method里面写上方法
    cellStyle({row, column, rowIndex, columnIndex}){
        if(rowIndex === 1 && columnIndex === 2){ //指定坐标
            return 'background:pink'
        }else{
            return ''
        }
    }
    

    对象写法: 直接返回对象

  • cell-class-name:单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className(CSS中定义类名)。Function({row, column, rowIndex, columnIndex})/String

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值