ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 纯Table ~~~ {:TWidget($contObj)->table([ 'list' => $analysis_data['topic_category_analysis'], 'columns' => [ ['title','类名'], ['get_score','得分'], ['group_total_score','总分'], ['group_score_proportion_format','得分占比'], ] ],false)} ~~~ ![](https://box.kancloud.cn/0a26bcdc82c1ef2dd312c7b405865562_834x413.png) list为格式类似下面的数组 ~~~ array (size=3) array (size=7) 'key_id' => int 16 'title' => string '缓存技术' (length=12) 'get_score' => int 10 'group_total_score' => int 10 'group_score_proportion' => int 1 'group_score_proportion_format' => string '100%' (length=4) array (size=7) 'key_id' => int 15 'title' => string 'MVC' (length=3) 'get_score' => int 0 'group_total_score' => int 5 'group_score_proportion' => int 0 'group_score_proportion_format' => string '0%' (length=2) array (size=7) 'key_id' => int 0 'title' => string '未分类' (length=9) 'get_score' => int 3 'group_total_score' => int 8 'group_score_proportion' => float 0.375 'group_score_proportion_format' => string '37.5%' (length=5) ~~~ ### panle包含table形式 在table方法中传入panle名称字段panel_title即可 ~~~ {:TWidget($contObj)->table([ 'list' => $contact_settings_data, 'panel_title' => '答卷者信息', 'columns' => [ ['1','名称'], ['3','值'], ] ])} ~~~