129 Star 899 Fork 190

剑走偏锋 / dcat-admin

 / 详情

$row->column 使用闭包函数时,用return render 无法增加HTML内容

Backlog
Opened this issue  
2021-08-31 15:19

输入图片说明

LayOut/Column.php 中 35行代码 call_user_func($content, $this);
修改为 $this->append(call_user_func($content, $this));

或者

   if ($content instanceof \Closure) {
            call_user_func($content, $this);
        }
        $this->append($content);

发现两个都行

Comments (1)

听说名 created任务
听说名 set related repository to 剑走偏锋/dcat-admin
听说名 changed description
Expand operation logs

这个 Dcat\Admin\Widgets\Tree;

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
PHP
1
https://gitee.com/jqhph/dcat-admin.git
git@gitee.com:jqhph/dcat-admin.git
jqhph
dcat-admin
dcat-admin

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385