mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Carbon: add migration mixin for breaking changes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user