mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [select] multiple init height (#8423)
This commit is contained in:
@@ -341,14 +341,14 @@ export const useSelect = (props, states: States, ctx) => {
|
||||
const sizeInMap = getComponentSize(selectSize.value || elForm.size)
|
||||
// it's an inner input so reduce it by 2px.
|
||||
input.style.height = `${
|
||||
states.selected.length === 0
|
||||
(states.selected.length === 0
|
||||
? sizeInMap
|
||||
: Math.max(
|
||||
_tags
|
||||
? _tags.clientHeight + (_tags.clientHeight > sizeInMap ? 6 : 0)
|
||||
: 0,
|
||||
sizeInMap
|
||||
) - 2
|
||||
)) - 2
|
||||
}px`
|
||||
|
||||
states.tagInMultiLine = Number.parseFloat(input.style.height) >= sizeInMap
|
||||
|
||||
Reference in New Issue
Block a user