nowrap for event selector

This commit is contained in:
Timi
2026-08-13 15:43:13 +08:00
parent f82fa859b5
commit 37d7972cf9
2 changed files with 46 additions and 7 deletions
+39 -1
View File
@@ -10,7 +10,9 @@
class="item"
borderless
>
<span v-text="item.name" />
<t-popover :content="item.name" placement="top">
<span class="option-text" v-text="item.name" />
</t-popover>
</t-checkbox>
</t-checkbox-group>
<div v-if="!eventList.length" class="empty-block">暂无可用登记事件</div>
@@ -60,13 +62,49 @@ const modelValue = defineModel<string[]>({ required: true });
}
:deep(.item) {
width: 100%;
max-width: 100%;
margin: 0;
padding: .875rem;
display: flex;
min-width: 0;
overflow: visible;
justify-content: center;
box-sizing: border-box;
background: #f8fbff;
border: 1px solid rgba(148, 163, 184, .28);
border-radius: 1rem;
}
:deep(.item .t-checkbox__content) {
width: 0;
max-width: 100%;
min-width: 0;
flex: 1 1 0;
overflow: visible;
}
:deep(.item .t-checkbox__title) {
display: block;
overflow: visible;
}
:deep(.item .t-popover__wrapper) {
display: block;
width: 100%;
max-width: 100%;
min-width: 0;
}
:deep(.item .option-text) {
display: block;
width: 100%;
max-width: 100%;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.empty-block {
+1
View File
@@ -721,6 +721,7 @@ watch(customerCode, async (value) => {
color: #9a3412;
padding: 0 1rem 1rem;
font-size: .8125rem;
margin-top: .25rem;
line-height: 1.5;
}