IFrameGrid.php 700 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Dcat\Admin;
  3. use Dcat\Admin\Layout\Content;
  4. /**
  5. * @deprecated 即将在2.0版本中废弃
  6. */
  7. class IFrameGrid extends Grid
  8. {
  9. const QUERY_NAME = '_grid_iframe_';
  10. public function __construct($repository, $builder = null)
  11. {
  12. parent::__construct($repository, $builder);
  13. $this->setName('simple');
  14. $this->disableCreateButton();
  15. $this->disableActions();
  16. $this->disablePerPages();
  17. $this->disableBatchActions();
  18. $this->rowSelector()->click();
  19. Content::composing(function (Content $content) {
  20. Admin::style('#app{padding: 1.4rem 1rem 1rem}');
  21. $content->full();
  22. }, true);
  23. }
  24. }