Showing
1 changed file
with
3 additions
and
3 deletions
@@ -12,11 +12,11 @@ | @@ -12,11 +12,11 @@ | ||
12 | <el-tree ref="tree" style="padding:6px;" :props="props" :data="treeData" node-key="id" | 12 | <el-tree ref="tree" style="padding:6px;" :props="props" :data="treeData" node-key="id" |
13 | :expand-on-click-node="false" :expand-on-click-node="true" :default-expanded-keys="defaultExpandedKeys"> | 13 | :expand-on-click-node="false" :expand-on-click-node="true" :default-expanded-keys="defaultExpandedKeys"> |
14 | <template #default="{ node, data }"> | 14 | <template #default="{ node, data }"> |
15 | - <div style="display: flex;flex-direction: row;width: 100%;"> | ||
16 | - <div :style="{'width':isAdmin() ? 'calc(100% - 85px)':'100%','max-width':isAdmin() ? 'calc(100% - 85px)':'100%'}" style="overflow: hidden;text-overflow: ellipsis;text-align: left;" @click="nodeClick(node, data)" :title="node.label"> | 15 | + <div style="display: flex;flex-direction: row;flex: 1;overflow: hidden"> |
16 | + <div style="overflow: hidden;text-overflow: ellipsis;text-align: left;flex:1" @click="nodeClick(node, data)" :title="node.label"> | ||
17 | {{node.label }} | 17 | {{node.label }} |
18 | </div> | 18 | </div> |
19 | - <div v-if="isAdmin()" :style="{'width':isAdmin()?'60px':'0px'}"> | 19 | + <div v-if="isAdmin()" :style="{'width':isAdmin()?'70px':'0px'}"> |
20 | <a @click="editType(data)" v-if="!data.root" style="margin-right: 10px;"> | 20 | <a @click="editType(data)" v-if="!data.root" style="margin-right: 10px;"> |
21 | <i class="el-icon-edit"></i> | 21 | <i class="el-icon-edit"></i> |
22 | </a> | 22 | </a> |
-
Please register or login to post a comment