fix(components): inline style doesn't use the custom sass setting value (#14117)

* fix(components): inline style doesn't use the custom sass setting value

closed #14038

* Update packages/components/select/src/useSelect.ts

Co-authored-by: btea <2356281422@qq.com>

* fix(components): update codes

* fix(components): use ns.cssVarName('input-height')

---------

Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
kamesan012
2023-10-12 08:14:38 +08:00
committed by GitHub
parent 4bfe10e682
commit cae9ef17b8

View File

@@ -407,7 +407,11 @@ export const useSelect = (props, states: States, ctx) => {
originClientHeight ||
(input.clientHeight > 0 ? input.clientHeight + 2 : 0)
const _tags = tags.value
const gotSize = getComponentSize(selectSize.value || form?.size)
const cssVarOfSelectSize = getComputedStyle(input).getPropertyValue(
ns.cssVarName('input-height')
)
const gotSize =
cssVarOfSelectSize || getComponentSize(selectSize.value || form?.size)
const sizeInMap =
selectSize.value ||