Cascader.php 1.2 KB

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * FormBuilder表单生成器
  4. * Author: xaboy
  5. * Github: https://github.com/xaboy/form-builder
  6. */
  7. /**
  8. * Cascader组件方法说明
  9. * 方法 返回值 方法名(参数) 注释
  10. * @method $this disabled(Boolean $bool) 是否禁用选择器
  11. * @method $this clearable(Boolean $bool) 是否支持清除
  12. * @method $this placeholder(String $placeholder)
  13. * @method $this trigger(String $trigger) 次级菜单展开方式,可选值为 click 或 hover
  14. * @method $this changeOnSelect(Boolean $bool) 当此项为 true 时,点选每级菜单选项值都会发生变化, 默认为 false
  15. * @method $this size(String $size) 输入框大小,可选值为large和small或者不填
  16. * @method $this filterable(Boolean $bool) 是否支持搜索
  17. * @method $this notFoundText(String $text)
  18. * @method $this transfer(Boolean $bool) /是否将弹层放置于 body 内,在 Tabs、带有 fixed 的 Table 列内使用时,建议添加此属性,它将不受父级样式影响,从而达到更好的效果
  19. * @method $this required($message = null, $trigger = 'change') 设置为必选项
  20. * @method $this value($value) 设置value
  21. */
  22. $cascader = \FormBuilder\Form::cityArea('address','省市区三级联动','陕西省','西安市','新城区')->clearable(true);