Files
xk-api-yii/admin/components/UI/Form/Email.php
2024-09-19 11:32:39 +08:00

37 lines
741 B
PHP

<?php
namespace admin\components\UI\Form;
/**
* 邮箱输入
* @package backend\components\UI\Form
*/
class Email extends Element implements Component
{
protected Text $object;
/**
* Text constructor.
* @param string $name
* @param string $field
* @param string $has
*/
public function __construct(string $name, string $field, string $has = '')
{
$this->name = $name;
$this->field = $field;
$this->has = $has;
$this->object = new Text($this->name, $this->field, $this->has);
$this->object->afterIcon('email');
}
/**
* @return array
*/
public function render(): array
{
return $this->object->getRender();
}
}