fix/typescripting-button-component

- Add type definition for button component
This commit is contained in:
JeremyWuuuuu 2020-07-21 22:37:49 +08:00
parent 393830f946
commit e983ea1c4c

View File

@ -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