rabin преди 5 години
родител
ревизия
51e2afa554
променени са 3 файла, в които са добавени 10 реда и са изтрити 3 реда
  1. 3 0
      assets/layadmin/html/project/database/list.html
  2. 6 2
      assets/layadmin/html/project/database/update.html
  3. 1 1
      src/Lib/Input.php

+ 3 - 0
assets/layadmin/html/project/database/list.html

@@ -35,6 +35,9 @@
   height: 100%;
   white-space: inherit;
 }
+.layui-select{
+  -webkit-appearance: button;
+}
 </style>
 <div id="load_style" style="display:none;">
 </div>

+ 6 - 2
assets/layadmin/html/project/database/update.html

@@ -6,12 +6,15 @@
   <script class="include" system="" path="inc/" file="head">include()</script>
 <link rel="stylesheet" href="../script/lib/layui/admin/modules/plugin/formselects/formselects.css" media="all" />
   <style>
-    .layui-input,.xm-select-parent
+    .layui-input,.layui-select,.xm-select-parent
     {
       width: 50%;
     }
+    .layui-select{
+      -webkit-appearance: button;
+    }
     @media screen and (max-width: 1024px) {
-        .layui-input,.xm-select-parent
+        .layui-input,.layui-select,.xm-select-parent
         {
           width: 90%;
         }
@@ -40,6 +43,7 @@
       height: 100%;
       white-space: inherit;
     }
+
     </style>
 </head>
 <body>

+ 1 - 1
src/Lib/Input.php

@@ -14,7 +14,7 @@ class Input
 
             if (layadmin()) {
                 if (strstr($result, '<select')) {
-                    $result = str_replace('form-control', 'form-control layui-input layui-select', $result);
+                    $result = str_replace('form-control', 'form-control layui-select', $result);
                     $result = str_replace('<select', '<select lay-ignore ', $result);
                 } elseif (strstr($result, 'radio')) {
                     $result = str_replace('form-control', 'form-control layui-radio', $result);