Commit e42540bc68f0970135075e743a84233fdfb12d04
1 parent
c6a002da
fix(src/packages): 修改3D编辑器, 名称长度样式显示问题
Showing
1 changed file
with
16 additions
and
4 deletions
... | ... | @@ -20,15 +20,19 @@ |
20 | 20 | <template #action> |
21 | 21 | <div class="go-flex-items-center list-footer" justify="space-between"> |
22 | 22 | <div style="display: flex; flex-direction: column; align-items: start"> |
23 | - <n-text @click="handleFocus"> | |
24 | - <n-button v-show="!focus" secondary size="tiny"> | |
23 | + <n-text v-if="!focus" @click="handleFocus"> | |
24 | + <n-button | |
25 | + class="list-footer-button" | |
26 | + secondary | |
27 | + size="tiny" | |
28 | + > | |
25 | 29 | <span class="title"> |
26 | 30 | {{ cardData.name || cardData.id }} |
27 | 31 | </span> |
28 | 32 | </n-button> |
29 | 33 | </n-text> |
30 | 34 | <n-input |
31 | - v-show="focus" | |
35 | + v-else | |
32 | 36 | ref="inputInstRef" |
33 | 37 | size="small" |
34 | 38 | type="text" |
... | ... | @@ -102,7 +106,7 @@ const emit = defineEmits(['delete', 'resize', 'edit', 'release', 'inputUpdateCar |
102 | 106 | |
103 | 107 | const props = defineProps({ |
104 | 108 | cardData: Object as PropType<ChartType>, |
105 | - operationKey: String, | |
109 | + operationKey: String | |
106 | 110 | }) |
107 | 111 | |
108 | 112 | // 处理url获取 |
... | ... | @@ -234,6 +238,14 @@ $contentHeight: 180px; |
234 | 238 | justify-content: flex-end; |
235 | 239 | min-width: 180px; |
236 | 240 | } |
241 | + .list-footer-button { | |
242 | + display: flex; | |
243 | + // justify-content: flex-start; | |
244 | + width: 135px; | |
245 | + overflow: hidden; | |
246 | + text-overflow: ellipsis; | |
247 | + white-space: nowrap; | |
248 | + } | |
237 | 249 | } |
238 | 250 | } |
239 | 251 | </style> | ... | ... |