From f1f116626a72db47cdf0798ba2048825058fc3a7 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Fri, 9 Jul 2021 00:38:51 +0800 Subject: [PATCH] chore(dialog): clean codes --- src/dialog/src/DialogEnvironment.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dialog/src/DialogEnvironment.tsx b/src/dialog/src/DialogEnvironment.tsx index 0bdca9c3a..6caaf4d36 100644 --- a/src/dialog/src/DialogEnvironment.tsx +++ b/src/dialog/src/DialogEnvironment.tsx @@ -96,6 +96,8 @@ export default defineComponent({ handleNegativeClick, handleCloseClick, handleAfterLeave, + to, + maskClosable, show } = this return ( @@ -104,8 +106,8 @@ export default defineComponent({ onUpdateShow={handleUpdateShow} appear dialog - to={this.$props.to} - maskClosable={this.$props.maskClosable} + to={to} + maskClosable={maskClosable} onAfterLeave={handleAfterLeave} > {{