DatePicker.php 1.0 KB

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * FormBuilder表单生成器
  4. * Author: xaboy
  5. * Github: https://github.com/xaboy/form-builder
  6. */
  7. /**
  8. * ColorPicker 颜色选择器组件方法说明
  9. * 方法 返回值 方法名(参数) 注释
  10. * @method $this disabled(Boolean $bool) 是否禁用
  11. * @method $this alpha(Boolean $bool) 是否支持透明度选择, 默认为false
  12. * @method $this hue(Boolean $bool) 是否支持色彩选择, 默认为true
  13. * @method $this recommend(Boolean $bool) 是否显示推荐的颜色预设, 默认为false
  14. * @method $this size(String $size) 尺寸,可选值为large、small、default或者不设置
  15. * @method $this format(String $format) 颜色的格式,可选值为 hsl、hsv、hex、rgb String 开启 alpha 时为 rgb,其它为 hex
  16. * @method $this colors(array $colors) 自定义颜色预设
  17. * @method $this required($message = null, $trigger = 'change') 设置为必选项
  18. * @method $this value($value) 设置value
  19. */
  20. //颜色选择器组件
  21. $colorPicker = \FormBuilder\Form::color('color','选择颜色','#FF7271');