* zin: add data-block attribute to blockPanel element.

This commit is contained in:
sunhao
2023-07-15 20:48:23 +08:00
parent 7b676f0756
commit 8ef6ae514d
+8
View File
@@ -55,4 +55,12 @@ class blockPanel extends panel
$this->setDefaultProps($defaultProps);
}
protected function buildProps(): array
{
$props = parent::buildProps();
$name = $this->prop('name');
if(!empty($name)) $props[] = setData('block', $name);
return $props;
}
}