Builder.php 435 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace form\hr;
  3. class Builder
  4. {
  5. /**
  6. * 分割
  7. * @param string $name 表单项名
  8. * @param string $title 标题
  9. * @return mixed
  10. */
  11. public function item($name = '', $title = '')
  12. {
  13. return [
  14. 'name' => $name,
  15. 'title' => $title,
  16. ];
  17. }
  18. /**
  19. * @var array 需要加载的css
  20. */
  21. public $css = [
  22. 'hr.css'
  23. ];
  24. }