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}');
+    }
+
     /**
      * 是否启用简化模式.
      *