Files
EasySoft-ZenTaoPMS/lib/zin/wg/col/v1.php
T
2023-07-10 15:47:35 +08:00

27 lines
603 B
PHP

<?php
declare(strict_types=1);
namespace zin;
class col extends wg
{
protected static array $defineProps = array(
'justify?:string',
'align?:string'
);
protected function build(): wg
{
$classList = 'col';
list($justify, $align) = $this->prop(array('justify', 'align'));
if(!empty($justify)) $classList .= ' justify-' . $justify;
if(!empty($align)) $classList .= ' items-' . $align;
return div
(
setClass($classList),
set($this->getRestProps()),
$this->children()
);
}
}