webceoboy

Results 6 comments of webceoboy

```php protected static function boot() { parent::boot(); self::creating(function (self $model) { if ($model->parent) { $model->depth = $model->parent->depth + 1; } }); } ``` 自己实现吧

#解决方法 通过看源码,发现动态生成的新行,没有绑定checkbox的点击事件, 而checkbox的点击事件是在table:loaded后才执行 因此添加一下代码即可 ```php Grid::make(new TreeTable,function(Grid $grid){ $grid->id('ID')->bold()->sortable(); $grid->name->tree(); // 开启树状表格功能; $id=$grid->getTableId(); $script =

Looks like chrome bug, when i use origin canvas also get error https://jsfiddle.net/fydm9e2s/10/

https://bugs.chromium.org/p/chromium/issues/detail?id=1472230&no_tracker_redirect=1