Showing
1 changed file
with
20 additions
and
2 deletions
| @@ -13,14 +13,16 @@ | @@ -13,14 +13,16 @@ | ||
| 13 | {{ props.componentData.chartConfig.title }} | 13 | {{ props.componentData.chartConfig.title }} |
| 14 | </span> | 14 | </span> |
| 15 | </n-ellipsis> | 15 | </n-ellipsis> |
| 16 | - <layers-status :isGroup="isGroup" :hover="hover" :status="status"></layers-status> | 16 | + <div class="list-layers"> |
| 17 | + <layers-status :isGroup="isGroup" :hover="hover" :status="status"></layers-status> | ||
| 18 | + </div> | ||
| 17 | </div> | 19 | </div> |
| 18 | <div :class="{ 'select-modal': select }"></div> | 20 | <div :class="{ 'select-modal': select }"></div> |
| 19 | </div> | 21 | </div> |
| 20 | </template> | 22 | </template> |
| 21 | 23 | ||
| 22 | <script setup lang="ts"> | 24 | <script setup lang="ts"> |
| 23 | -import { computed, PropType, ref } from 'vue' | 25 | +import { computed, PropType, ref } from 'vue' |
| 24 | import { requireErrorImg } from '@/utils' | 26 | import { requireErrorImg } from '@/utils' |
| 25 | import { useDesignStore } from '@/store/modules/designStore/designStore' | 27 | import { useDesignStore } from '@/store/modules/designStore/designStore' |
| 26 | import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' | 28 | import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' |
| @@ -141,8 +143,24 @@ $textSize: 10px; | @@ -141,8 +143,24 @@ $textSize: 10px; | ||
| 141 | } | 143 | } |
| 142 | 144 | ||
| 143 | .list-text { | 145 | .list-text { |
| 146 | + position: absolute; | ||
| 147 | + z-index: 99; | ||
| 148 | + left: 70px; | ||
| 149 | + top: 20px; | ||
| 144 | padding-left: 6px; | 150 | padding-left: 6px; |
| 151 | + width: 60px; | ||
| 145 | font-size: $textSize; | 152 | font-size: $textSize; |
| 153 | + overflow: hidden; | ||
| 154 | + text-align: left; | ||
| 155 | + text-overflow: ellipsis; | ||
| 156 | + white-space: nowrap; | ||
| 157 | + } | ||
| 158 | + | ||
| 159 | + .list-layers { | ||
| 160 | + position: absolute; | ||
| 161 | + z-index: 99; | ||
| 162 | + left: 140px; | ||
| 163 | + top: 15px; | ||
| 146 | } | 164 | } |
| 147 | 165 | ||
| 148 | /* 选中样式 */ | 166 | /* 选中样式 */ |