初始化仓库
This commit is contained in:
36
admin/components/UI/Form/Email.php
Normal file
36
admin/components/UI/Form/Email.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user