ElementUI table的设置成Excel表格效果

实现效果代码最重要的部分

javascript 复制代码
 <el-table
                :data="Commision"
                border
                :row-style="{height: '0'}"
                :cell-style="{padding: '0' ,lineHeight: '0'}"
                :header-cell-style="{
                padding: '0',
		        height: '0',
		        ineHeight: '0'

        }"
        >
javascript 复制代码
<el-col :span="11">
            <el-table
                :data="Commision"
                border
                :row-style="{height: '0'}"
                :cell-style="{padding: '0' ,lineHeight: '0'}"
                :header-cell-style="{
                padding: '0',
		        height: '0',
		        ineHeight: '0'

        }"

                style="width: 70%;">
                 <el-table-column
                  label="FOB or LANDED"
                  width="180"
                  height="50px"
              >
                <template slot-scope="scope">

                  <el-radio v-model="radio" :label="scope.row.type" style="font-size: 8px"></el-radio>

                </template>

              </el-table-column>
                </el-table>
相关推荐
烛阴7 分钟前
Python装饰器解除:如何让被装饰的函数重获自由?
前端·python
千鼎数字孪生-可视化21 分钟前
Web技术栈重塑HMI开发:HTML5+WebGL的轻量化实践路径
前端·html5·webgl
凌辰揽月21 分钟前
7月10号总结 (1)
前端·css·css3
天天扭码44 分钟前
很全面的前端面试——CSS篇(上)
前端·css·面试
EndingCoder1 小时前
搜索算法在前端的实践
前端·算法·性能优化·状态模式·搜索算法
sunbyte1 小时前
50天50个小项目 (Vue3 + Tailwindcss V4) ✨ | DoubleVerticalSlider(双垂直滑块)
前端·javascript·css·vue.js·vue
Favor_Yang1 小时前
SQL Server通过存储过程实现HTML页面生成
前端·信息可视化·sqlserver·存储过程
中微子2 小时前
JavaScript事件循环机制:面试官最爱问的10个问题详解
前端
Eighteen Z2 小时前
CSS揭秘:10.平行四边形
前端·css·css3
拾光拾趣录2 小时前
虚拟DOM
前端·vue.js·dom