mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix/typescripting-button-component
- Add type definition for button component
This commit is contained in:
parent
393830f946
commit
e983ea1c4c
@ -66,14 +66,14 @@ export default {
|
||||
|
||||
// computed
|
||||
const _elFormItemSize = computed(() => {
|
||||
return elFormItem.elFormItemSize || undefined
|
||||
return (elFormItem || {}).elFormItemSize
|
||||
})
|
||||
const buttonSize = computed(() => {
|
||||
// todo ELEMENT
|
||||
return props.size || _elFormItemSize.value || ELEMENT.size || undefined
|
||||
return props.size || _elFormItemSize.value || (ELEMENT || {}).size
|
||||
})
|
||||
const buttonDisabled = computed(() => {
|
||||
return props.disabled || elForm.disabled
|
||||
return props.disabled || (elForm || {}).disabled
|
||||
})
|
||||
|
||||
//methods
|
||||
|
Loading…
Reference in New Issue
Block a user