* zin: fix id property not work in dashboard.

This commit is contained in:
sunhao
2023-06-29 10:04:18 +08:00
parent 4c71d88a1b
commit 0d77e4f1f0
+2 -2
View File
@@ -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')));
}
}