dever 2 years ago
parent
commit
d8925f1421
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/Lib/Input.php

+ 5 - 3
src/Lib/Input.php

@@ -975,7 +975,9 @@ class Input
         $html .= $hidden;
         $xm = true;
 
-        if (isset($param['option']) && isset($param['update']) && $param['update'] == 'select') {
+        if (strstr($param['name'], 'up_col_')) {
+            $xm = false;
+        } elseif (isset($param['option']) && isset($param['update']) && $param['update'] == 'select') {
             $total = count($param['option']);
             if ($total <= 30) {
                 $xm = false;
@@ -1040,11 +1042,11 @@ class Input
                     }
                 }';
             }
-            $html .= '<div id="' . $param['name'] . '" '.$change.' class="xm-select-demo" style="width:200px"></div>';
+            $html .= '<div id="' . $param['name'] . '" '.$change.' class="xm-select-demo" style="min-width:150px"></div>';
             $html .= '<script>
             $(document).ready(function() {
                 layui.use(["table"], function() {
-                    init_xm("'.$xm_id.'", '.$xm_radio.', "'.$xm_tips.'", "'.$url.'", '.$xm_data.', ['.$xm_value.'], '.$xm_on.');
+                    init_xm("'.$xm_id.'", "'.$xm_radio.'", "'.$xm_tips.'", "'.$url.'", '.$xm_data.', ['.$xm_value.'], '.$xm_on.');
                 });
             });