Hidden.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * FormBuilder表单生成器
  4. * Author: xaboy
  5. * Github: https://github.com/xaboy/form-builder
  6. */
  7. /**
  8. * Frame 框架组件方法说明
  9. * 方法 返回值 方法名(参数) 注释
  10. * @method $this type(String $type) frame类型, 有input, file, image, 默认为input
  11. * @method $this src(String $src) iframe地址
  12. * @method $this maxLength(int $length) value的最大数量, 默认无限制
  13. * @method $this icon(String $icon) 打开弹出框的按钮图标
  14. * @method $this height(String $height) 弹出框高度
  15. * @method $this width(String $width) 弹出框宽度
  16. * @method $this spin(Boolean $bool) 是否显示加载动画, 默认为 true
  17. * @method $this frameTitle(String $title) 弹出框标题
  18. * @method $this handleIcon(Boolean $bool) 操作按钮的图标, 设置为false将不显示, 设置为true为默认的预览图标, 类型为file时默认为false, image类型默认为true
  19. * @method $this allowRemove(Boolean $bool) 是否可删除, 设置为false是不显示删除按钮
  20. * @method $this value($value) 设置value
  21. */
  22. //多个图片选择
  23. $frameImages = \FormBuilder\Form::frameImages('images','图片选择',[]);
  24. //多个文件选择
  25. $frameFiles = \FormBuilder\Form::frameFiles('files','文件选择',[]);
  26. //多个图标选择,用','隔开
  27. $frameInputs = \FormBuilder\Form::frameInputs('inputs','图标选择',[]);
  28. //单个图片选择
  29. $frameFileOne = \FormBuilder\Form::frameFileOne('images','图片选择','');
  30. //单个文件选择
  31. $frameFileOne = \FormBuilder\Form::frameFileOne('files','文件选择','');
  32. //单个图标选择
  33. $frameFileOne = \FormBuilder\Form::frameFileOne('inputs','图标选择','');