mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
fix(components): fix more size prop checks (#4975)
This commit is contained in:
parent
343b7e333f
commit
0057fbfadc
@ -187,7 +187,7 @@ const useSelect = (props: ExtractPropTypes<typeof SelectProps>, emit) => {
|
||||
const selectSize = useSize()
|
||||
|
||||
const collapseTagSize = computed(() =>
|
||||
'small' === selectSize.value ? 'small' : ''
|
||||
'small' === selectSize.value ? 'small' : 'default'
|
||||
)
|
||||
|
||||
const tagMaxWidth = computed(() => {
|
||||
|
@ -148,7 +148,7 @@ export const useSelect = (props, states: States, ctx) => {
|
||||
const selectSize = useSize()
|
||||
|
||||
const collapseTagSize = computed(() =>
|
||||
['small'].indexOf(selectSize.value) > -1 ? 'small' : ''
|
||||
['small'].indexOf(selectSize.value) > -1 ? 'small' : 'default'
|
||||
)
|
||||
|
||||
const dropMenuVisible = computed(
|
||||
|
@ -109,9 +109,9 @@ export default defineComponent({
|
||||
},
|
||||
size: {
|
||||
type: String as PropType<ComponentSize>,
|
||||
default: '',
|
||||
default: 'default',
|
||||
validator: (value: string) =>
|
||||
!value || ['large', 'small'].indexOf(value) !== -1,
|
||||
!value || ['large', 'default', 'small'].indexOf(value) !== -1,
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
|
Loading…
Reference in New Issue
Block a user