Carbon: add migration mixin for breaking changes

This commit is contained in:
wayne
2017-10-17 18:14:01 +08:00
committed by 杨奕
parent f73dbe104e
commit b678772e94
8 changed files with 84 additions and 13 deletions

View File

@@ -30,12 +30,13 @@
<script>
import Popup from 'element-ui/src/utils/popup';
import Migrating from 'element-ui/src/mixins/migrating';
import emitter from 'element-ui/src/mixins/emitter';
export default {
name: 'ElDialog',
mixins: [Popup, emitter],
mixins: [Popup, emitter, Migrating],
props: {
title: {
@@ -138,6 +139,13 @@
},
methods: {
getMigratingConfig() {
return {
props: {
'size': 'size is removed.'
}
};
},
handleWrapperClick() {
if (!this.closeOnClickModal) return;
this.handleClose();