fix(查询组件): 查询组件当查询条件的内容过长时,选择全选或者多选查询条件,会造成查询下拉框样式错位。 #15554

This commit is contained in:
dataeaseShu
2025-06-16 14:08:27 +08:00
committed by xuwei-fit2cloud
parent aa82e0e1f9
commit 281c588407

View File

@@ -639,11 +639,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({
@@ -740,9 +740,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 {