Showing
1 changed file
with
20 additions
and
2 deletions
... | ... | @@ -13,14 +13,16 @@ |
13 | 13 | {{ props.componentData.chartConfig.title }} |
14 | 14 | </span> |
15 | 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 | 19 | </div> |
18 | 20 | <div :class="{ 'select-modal': select }"></div> |
19 | 21 | </div> |
20 | 22 | </template> |
21 | 23 | |
22 | 24 | <script setup lang="ts"> |
23 | -import { computed, PropType, ref } from 'vue' | |
25 | +import { computed, PropType, ref } from 'vue' | |
24 | 26 | import { requireErrorImg } from '@/utils' |
25 | 27 | import { useDesignStore } from '@/store/modules/designStore/designStore' |
26 | 28 | import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' |
... | ... | @@ -141,8 +143,24 @@ $textSize: 10px; |
141 | 143 | } |
142 | 144 | |
143 | 145 | .list-text { |
146 | + position: absolute; | |
147 | + z-index: 99; | |
148 | + left: 70px; | |
149 | + top: 20px; | |
144 | 150 | padding-left: 6px; |
151 | + width: 60px; | |
145 | 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 | /* 选中样式 */ | ... | ... |