招标
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
530 B

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