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