This is an automated email from the ASF dual-hosted git repository.

kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 143fca1  [dev][cherry-pick-4660][ui]Fix too many resources to display 
(#4664)
143fca1 is described below

commit 143fca1b61c7050e7ea26d5358c61d229ef2bba9
Author: break60 <[email protected]>
AuthorDate: Fri Feb 5 11:55:39 2021 +0800

    [dev][cherry-pick-4660][ui]Fix too many resources to display (#4664)
---
 .../src/js/module/components/transfer/resource.vue            | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue 
b/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue
index d7df3fa..959142c 100644
--- a/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue
+++ b/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue
@@ -24,10 +24,10 @@
                 <el-button size="mini" value="udfResource" 
@click="_ckUDf">{{$t('UDF resources')}}</el-button>
             </el-button-group>
         </div>
-        <treeselect v-show="checkedValue=='fileResource'" 
v-model="selectFileSource" :multiple="true"  maxHeight="200" 
:options="fileList" :normalizer="normalizer" 
:value-consists-of="valueConsistsOf" :placeholder="$t('Please select 
resources')">
+        <treeselect v-show="checkedValue=='fileResource'" 
v-model="selectFileSource" :multiple="true"  maxHeight="260" 
:options="fileList" :normalizer="normalizer" 
:value-consists-of="valueConsistsOf" :placeholder="$t('Please select 
resources')">
           <div slot="value-label" slot-scope="{ node }">{{ node.raw.fullName 
}}</div>
         </treeselect>
-        <treeselect v-show="checkedValue=='udfResource'" 
v-model="selectUdfSource" :multiple="true" maxHeight="200" :options="udfList" 
:normalizer="normalizer" :value-consists-of="valueConsistsOf" 
:placeholder="$t('Please select resources')">
+        <treeselect v-show="checkedValue=='udfResource'" 
v-model="selectUdfSource" :multiple="true" maxHeight="260" :options="udfList" 
:normalizer="normalizer" :value-consists-of="valueConsistsOf" 
:placeholder="$t('Please select resources')">
           <div slot="value-label" slot-scope="{ node }">{{ node.raw.fullName 
}}</div>
         </treeselect>
       </div>
@@ -302,4 +302,11 @@
       float: left;
     }
   }
+  .vue-treeselect__menu {
+    max-height: 200px!important;
+  }
+  .vue-treeselect__multi-value {
+    max-height: 260px!important;
+    overflow-y: auto!important;
+  }
 </style>

Reply via email to