fastadmin设置表格鼠标指上显示所有内容

                        {
                            field: 'question',
                            title: __('Question'),
                            operate: false,
                            formatter : function(value, row, index, field){
                                return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.question + "'>" + value + "</span>";
                            },
                            cellStyle : function(value, row, index, field){
                                return {
                                    css: {
                                        "white-space": "nowrap",
                                        "text-overflow": "ellipsis",
                                        "overflow": "hidden",
                                        "max-width":"150px"
                                    }
                                };
                            }
                        }

 

posted @ 2021-07-28 10:51  一颗糊涂淡  阅读(655)  评论(0编辑  收藏  举报