mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user