* zin: refactor textarea wg.

This commit is contained in:
dingyongliang
2023-06-01 15:15:54 +08:00
parent a046dd7639
commit 1fdb187446
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -46,7 +46,6 @@ function input(): input
* int cols
* ?string id
* ?string class='form-control'
* ?string value
* ?bool required
* ?string placeholder
*/
+1 -2
View File
@@ -7,7 +7,6 @@ class textarea extends wg
'name: string',
'id?: string',
'class?: string',
'value?: string',
'required?: bool',
'placeholder?: string',
'rows?: int',
@@ -21,6 +20,6 @@ class textarea extends wg
protected function build()
{
return h::textarea(set($this->props));
return h::textarea(set($this->props), $this->children());
}
}