mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
22 lines
468 B
PHP
22 lines
468 B
PHP
<?php
|
|
|
|
namespace base\common\scheme\attribute;
|
|
|
|
use Attribute;
|
|
|
|
#[Attribute(Attribute::TARGET_PROPERTY)]
|
|
class Component
|
|
{
|
|
/**
|
|
* @param string $type 组件类型 (e.g. radio, image, editor)
|
|
* @param array $options 选项数据 (e.g. ['1'=>'男', '2'=>'女'])
|
|
* @param array $extra 额外参数
|
|
*/
|
|
public function __construct(
|
|
public string $type,
|
|
public array $options = [],
|
|
public array $extra = []
|
|
) {
|
|
}
|
|
}
|