zoukankan      html  css  js  c++  java
  • vxe-table的render写法中添加element ui的组件

    使用的是vxe-table的表格组件,但是项目中主要还是使用element ui的组件,如下要在vxe-table表格中添加评分组件:

    this.columns = [
                    {
                        title: '序号',
                        type: 'seq',  
                         80
                    }
                    {
                        title: '满意度评价',
                        field: 'rateVal',   
                        minWidth: 200,
                        maxWidth: 200,
                        cellRender: {
                            name: 'rateVal_1' 
                        }
                    }
                ]

    let _this = this; VXETable.renderer.mixin({ "rateVal_1": { renderDefault(h, renderOpts, params) { let { row, column } = params; return [ h('el-rate', { attrs: { value: row.rateVal, disabled: true, "disabled-void-color": "rgb(205, 205, 205)", colors: { 1: 'rgb(229, 92, 92)', 3: { value: 'rgb(255, 152, 0)', excluded: true }, 5: 'rgb(42, 139, 253)' } } }, row.rateVal ), ] } } })
  • 相关阅读:
    ASP.Net 反射显示
    ASP.Net 反射简单工厂模式
    ASP.Net MVC生成验证码
    ASP.Net EF架构
    ASP.Net 邮箱发送
    ASP.Net 反射简单
    ASP.Net 显示
    新年快乐
    测试开发比
    Linkbot介绍
  • 原文地址:https://www.cnblogs.com/stella1024/p/12936802.html
Copyright © 2011-2022 走看看