| | |
| | | <template> |
| | | <div style="overflow: auto; height: calc(100vh - 150px);"> |
| | | <div class="app" style="display: flex;"> |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" :option="Treeoption" @node-click="nodeClick" style="width: fit-content;"> |
| | | <template slot-scope="{ node }"> |
| | | <span style="display: inline-block;">{{ node.label }}</span> |
| | | </template> |
| | | </avue-tree> |
| | | <div style="display: inline-block;"><i class="el-icon-refresh refresh-icon" @click="getTreeLists"></i></div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style lang="scss" scoped> |
| | | .app{ |
| | | overflow: auto; |
| | | height: calc(100vh - 150px); |
| | | } |
| | | .app::-webkit-scrollbar { |
| | | height: 15px ; // 纵向滚动条 必写 |
| | | background: white; |
| | | border: white; |
| | | width: 10px; |
| | | |
| | | } |
| | | // 滚动条的滑块 |
| | | .app::-webkit-scrollbar-thumb { |
| | | background-color: #ececec; |
| | | border-radius: 20px; |
| | | border: #ececec; |
| | | } |
| | | .refresh-icon { |
| | | color: #409EFF; |
| | | margin-top: 8px; |
| | | margin-left: 6px; |
| | | font-size: 18px; |
| | | } |
| | | </style> |