* zin: refactor colorpicker.

This commit is contained in:
dingyongliang
2023-07-05 19:41:46 +08:00
parent 92fe62c00d
commit f3dac1aae6
2 changed files with 12 additions and 15 deletions
+7 -9
View File
@@ -369,15 +369,13 @@ function radioList(): radioList
/**
* Color picker widget which extends input.
*
* string name
* ?string id
* ?string class
* ?string value
* ?bool required
* ?string placeholder
* ?bool autofocus
* ?bool disabled
* ?bool autocomplete=false
* ?string heading
* ?string icon
* ?bool closeBtn=true
* ?string syncText
* ?string syncColor
* ?string syncBackground
* ?string syncBorder
*/
function colorPicker(): colorPicker
{
+5 -6
View File
@@ -1,11 +1,10 @@
<?php
namespace zin;
require_once dirname(__DIR__) . DS . 'input' . DS . 'v1.php';
class colorPicker extends input
class colorPicker extends wg
{
static $defaultProps = array(
'type' => 'color'
);
protected function build()
{
return zui::colorPicker(inherit($this));
}
}