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

This commit is contained in:
dataeaseShu
2025-06-16 14:08:27 +08:00
committed by xuwei-fit2cloud
parent fd83d0d07e
commit 373a63320d

View File

@@ -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 {