nowrap for event selector
This commit is contained in:
@@ -10,7 +10,9 @@
|
|||||||
class="item"
|
class="item"
|
||||||
borderless
|
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>
|
||||||
</t-checkbox-group>
|
</t-checkbox-group>
|
||||||
<div v-if="!eventList.length" class="empty-block">暂无可用登记事件</div>
|
<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));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.item) {
|
:deep(.item) {
|
||||||
margin: 0;
|
width: 100%;
|
||||||
padding: .875rem;
|
max-width: 100%;
|
||||||
display: flex;
|
margin: 0;
|
||||||
justify-content: center;
|
padding: .875rem;
|
||||||
background: #f8fbff;
|
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: 1px solid rgba(148, 163, 184, .28);
|
||||||
border-radius: 1rem;
|
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 {
|
.empty-block {
|
||||||
|
|||||||
@@ -721,6 +721,7 @@ watch(customerCode, async (value) => {
|
|||||||
color: #9a3412;
|
color: #9a3412;
|
||||||
padding: 0 1rem 1rem;
|
padding: 0 1rem 1rem;
|
||||||
font-size: .8125rem;
|
font-size: .8125rem;
|
||||||
|
margin-top: .25rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user