* zin: fix id property not work in dashboard.
This commit is contained in:
@@ -46,7 +46,7 @@ class dashboard extends wg
|
||||
|
||||
protected function created()
|
||||
{
|
||||
$this->setDefaultProps(['id' => static::$dashboardID ? static::$dashboardID : 'dashboard']);
|
||||
$this->setDefaultProps(array('id' => static::$dashboardID ? static::$dashboardID : 'dashboard'));
|
||||
static::$dashboardID++;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,6 @@ class dashboard extends wg
|
||||
*/
|
||||
protected function build(): wg
|
||||
{
|
||||
return zui::dashboard(inherit($this));
|
||||
return zui::dashboard(set($this->props->skip(array('id'))), set('_id', $this->prop('id')));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user