Update HeaderItem.php

表格类新增对齐方式
This commit is contained in:
Talent.Miao 2021-05-11 22:27:48 +08:00 committed by GitHub
parent 67363e6478
commit 1b18403c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,13 @@ class HeaderItem
return $this; return $this;
} }
public function align(string $align): HeaderItem
{
$this->attributes['align'] = $align;
return $this;
}
public function actions(array $actions): HeaderItem public function actions(array $actions): HeaderItem
{ {
@ -143,4 +150,4 @@ class HeaderItem
{ {
return $this->{$key}; return $this->{$key};
} }
} }