🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### addHtml 添加自定义html内容 ~~~ $html = <<<str <div class="panel" id="pchart1"> <div class="panel-heading"> <span class="panel-icon"> <i class="fa fa-pencil"></i> </span> <span class="panel-title"> 区域A</span> </div> <div class="panel-body bg-light dark"> <div style="width: 100%; height: 430px; margin: 0 auto">区域A</div> </div> </div> str; return TBuilder('custom',$this) ->layoutView('layout_simple') ->row() ->col(12)->addHtml($html) ->fetch(); ~~~ ![](https://box.kancloud.cn/d01ba8de05a292345f916e77650dc348_1712x661.png)