jqh 4 년 전
부모
커밋
0b3f17f6c5
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/Grid/LazyRenderable.php

+ 8 - 0
src/Grid/LazyRenderable.php

@@ -2,6 +2,7 @@
 
 namespace Dcat\Admin\Grid;
 
+use Dcat\Admin\Admin;
 use Dcat\Admin\Grid;
 use Dcat\Admin\Support\LazyRenderable as Renderable;
 
@@ -26,6 +27,8 @@ abstract class LazyRenderable extends Renderable
      */
     public function render()
     {
+        $this->addStyle();
+
         $class = $this->allowSimpleMode() ? 'simple-grid' : null;
 
         return <<<HTML
@@ -33,6 +36,11 @@ abstract class LazyRenderable extends Renderable
 HTML;
     }
 
+    protected function addStyle()
+    {
+        Admin::style('.select2-container{z-index:29891015}');
+    }
+
     /**
      * 是否启用简化模式.
      *