From c07423a6d58de67facb479b2e3753efd456c2854 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Thu, 12 Nov 2020 13:41:02 +0800 Subject: [PATCH] feat: dialogStyle dialogClass deprecated #3142 --- components/vc-dialog/Dialog.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/vc-dialog/Dialog.jsx b/components/vc-dialog/Dialog.jsx index d06606c61..80346ae02 100644 --- a/components/vc-dialog/Dialog.jsx +++ b/components/vc-dialog/Dialog.jsx @@ -7,6 +7,7 @@ import BaseMixin from '../_util/BaseMixin'; import { getTransitionProps, Transition } from '../_util/transition'; import switchScrollingEffect from '../_util/switchScrollingEffect'; import getDialogPropTypes from './IDialogPropTypes'; +import warning from '../_util/warning'; const IDialogPropTypes = getDialogPropTypes(); let uuid = 0; @@ -64,6 +65,8 @@ export default defineComponent({ focusTriggerAfterClose: true, }), data() { + warning(!this.dialogClass, 'Modal', 'dialogClass is deprecated, please use class instead.'); + warning(!this.dialogStyle, 'Modal', 'dialogStyle is deprecated, please use style instead.'); return { inTransition: false, titleId: `rcDialogTitle${uuid++}`,