nowrap for event selector
This commit is contained in:
@@ -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>
|
||||
@@ -59,14 +61,50 @@ const modelValue = defineModel<string[]>({ required: true });
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
:deep(.item) {
|
||||
margin: 0;
|
||||
padding: .875rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background: #f8fbff;
|
||||
: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 {
|
||||
|
||||
@@ -721,6 +721,7 @@ watch(customerCode, async (value) => {
|
||||
color: #9a3412;
|
||||
padding: 0 1rem 1rem;
|
||||
font-size: .8125rem;
|
||||
margin-top: .25rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user