v1.php 785 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * The inputGroupAddon widget class file of zin module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author sunhao<sunhao@easycorp.ltd>
  8. * @package zin
  9. * @link http://www.zentao.net
  10. */
  11. namespace zin;
  12. /**
  13. * 输入框附加部分(inputGroupAddon)部件类。
  14. * The inputGroupAddon widget class.
  15. *
  16. * @author Hao Sun
  17. */
  18. class inputGroupAddon extends wg
  19. {
  20. protected function build()
  21. {
  22. $class = $this->prop('class');
  23. return h::span(setClass("input-group-addon {$class}"), set($this->props), $this->children());
  24. }
  25. }