jqhph / dcat-admin

🔥 基于 Laravel 的后台系统构建工具 (Laravel Admin),使用很少的代码快速构建一个功能完善的高颜值后台系统,内置丰富的后台常用组件,开箱即用,让开发者告别冗杂的HTML代码
http://www.dcatadmin.com
MIT License
3.9k stars 712 forks source link

表格行高改变,固定列页面错乱 #596

Open LampStudy opened 4 years ago

LampStudy commented 4 years ago

Description:

protected function grid()
{
    return Grid::make(Product::with(['photographer']), function (Grid $grid) {
        $grid->column('name');
        $grid->column('photographer.name', "摄影师");
        $grid->column('description')->limit(50);
        $grid->column('avatar')->image();
        $grid->column('disable')->switch();
        $grid->column('营销')->switchGroup([
            'is_hot',
            'is_new',
            'is_recommend'
        ], true);
        $grid->column('price');
        $grid->column('views');
        $grid->column('sales');
        $grid->column('store');

        $grid->fixColumns(2);

        $grid->quickSearch(['name', 'photographer.name']);
    });

类似这种,表格里面包含图片或者 开关组 行高改变后, 固定列会页面错乱

jqhph commented 4 years ago

确实有这个问题,我想想有没有什么办法能优化一下