mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 09:48:10 +08:00
fix(查询组件): 查询组件当查询条件的内容过长时,选择全选或者多选查询条件,会造成查询下拉框样式错位。 #15554
This commit is contained in:
committed by
xuwei-fit2cloud
parent
fd83d0d07e
commit
373a63320d
@@ -640,11 +640,11 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
const tagWidth = computed(() => {
|
||||
return Math.min(getCustomWidth() / 3, 40) + 'px'
|
||||
return Math.min((getCustomWidth() - 60) / 2, 50) + 'px'
|
||||
})
|
||||
|
||||
const tagTextWidth = computed(() => {
|
||||
return Math.min(getCustomWidth() / 3, 50) - 25 + 'px'
|
||||
return Math.min((getCustomWidth() - 60) / 2 - 25, 40) + 'px'
|
||||
})
|
||||
|
||||
defineExpose({
|
||||
@@ -741,9 +741,9 @@ defineExpose({
|
||||
</style>
|
||||
|
||||
<style lang="less" scoped>
|
||||
:deep(.ed-select-v2__selection) {
|
||||
:deep(.ed-select__selected-item) {
|
||||
.ed-tag {
|
||||
max-width: v-bind(tagWidth);
|
||||
max-width: v-bind(tagWidth) !important;
|
||||
}
|
||||
|
||||
.ed-select__tags-text {
|
||||
|
||||
Reference in New Issue
Block a user