招标
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
554 B

<?php
/**
* Date: 2020/9/26 10:34
* User: chenlong <vip_chenlong@163.com>
*/
namespace sdModule\layui\defaultForm\formUnit;
class Password extends UnitBase
{
/**
* @param string $attr
* @return mixed|string
*/
public function getHtml(string $attr)
{
$placeholder = $this->placeholder ?: $this->lang('please enter');
return <<<HTML
<input type="password" name="{$this->name}" {$attr} placeholder="{$placeholder}" value='{$this->preset}' autocomplete="off" class="layui-input">
HTML;
}
}