当前博客:lay动态表格 行高怎么设置,没找到这个属性

107 次浏览【转载需注明来源】

博客作者:【1774****0066】

个性签名:寒窗苦读十年,一朝凤舞九天

lay动态表格 行高怎么设置,没找到这个属性

表格.配置 和 表头配置   里面都没有看到

默认排序
Generic placeholder image
Generic placeholder image
已采纳
qiang Time: 2024-01-19 13:37:29

css

Generic placeholder image
1219 Time: 2024-01-19 18:25:53

// 渲染表格

            table.render({

                elem: '#demo',

                data: data,

                cols: [[

                    {field: 'id', title: 'ID'},

                    {field: 'name', title: '姓名'},

                    {field: 'age', title: '年龄'}

                ]],

                height: 'auto' // 设置行高为自动,根据内容自动调整行高,你也可以设置为具体的数值,例如height: 50px;。

            });

        });

 

Generic placeholder image
1774****0066 回复 2楼 1219 Time: 2024-01-19 20:32:39

你这是静态表格还是???

 


lay动态表格 行高怎么设置,没找到这个属性