芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/livewire/livewire/src/Macros/ViewMacros.php
livewireLayout = [ 'type' => 'extends', 'slotOrSection' => 'content', 'view' => $view, 'params' => $params, ]; return $this; }; } public function layout() { return function ($view, $params = []) { $attributes = $params['attributes'] ?? []; unset($params['attributes']); if (is_subclass_of($view, \Illuminate\View\Component::class)) { $layout = app()->makeWith($view, $params); $view = $layout->resolveView()->name(); } else { $layout = new AnonymousComponent($view, $params); } $layout->withAttributes($attributes); $this->livewireLayout = [ 'type' => 'component', 'slotOrSection' => 'slot', 'view' => $view, 'params' => array_merge($params, $layout->data()), ]; return $this; }; } public function layoutData() { return function ($data = []) { $this->livewireLayout['params'] = $data; return $this; }; } public function section() { return function ($section) { $this->livewireLayout['slotOrSection'] = $section; return $this; }; } public function slot() { return function ($slot) { $this->livewireLayout['slotOrSection'] = $slot; return $this; }; } }