fix: typography not trigger onEnd in blur #4227

pull/4135/head
tangjinzhou 2021-06-19 15:49:39 +08:00
parent a1a8b799d0
commit 700d04badc
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import EnterOutlined from '@ant-design/icons-vue/EnterOutlined';
import { defineComponent, ref, reactive, watch, onMounted } from 'vue'; import { defineComponent, ref, reactive, watch, onMounted } from 'vue';
const Editable = defineComponent({ const Editable = defineComponent({
name: 'Editable',
props: { props: {
prefixCls: PropTypes.string, prefixCls: PropTypes.string,
value: PropTypes.string, value: PropTypes.string,
@ -95,6 +96,7 @@ const Editable = defineComponent({
function onBlur() { function onBlur() {
confirmChange(); confirmChange();
emit('end');
} }
function confirmChange() { function confirmChange() {