Browse Source

feat: dialogStyle dialogClass deprecated #3142

pull/3164/head
tanjinzhou 4 years ago
parent
commit
c07423a6d5
  1. 3
      components/vc-dialog/Dialog.jsx

3
components/vc-dialog/Dialog.jsx

@ -7,6 +7,7 @@ import BaseMixin from '../_util/BaseMixin';
import { getTransitionProps, Transition } from '../_util/transition'; import { getTransitionProps, Transition } from '../_util/transition';
import switchScrollingEffect from '../_util/switchScrollingEffect'; import switchScrollingEffect from '../_util/switchScrollingEffect';
import getDialogPropTypes from './IDialogPropTypes'; import getDialogPropTypes from './IDialogPropTypes';
import warning from '../_util/warning';
const IDialogPropTypes = getDialogPropTypes(); const IDialogPropTypes = getDialogPropTypes();
let uuid = 0; let uuid = 0;
@ -64,6 +65,8 @@ export default defineComponent({
focusTriggerAfterClose: true, focusTriggerAfterClose: true,
}), }),
data() { data() {
warning(!this.dialogClass, 'Modal', 'dialogClass is deprecated, please use class instead.');
warning(!this.dialogStyle, 'Modal', 'dialogStyle is deprecated, please use style instead.');
return { return {
inTransition: false, inTransition: false,
titleId: `rcDialogTitle${uuid++}`, titleId: `rcDialogTitle${uuid++}`,

Loading…
Cancel
Save