From 21fbd00a74a61608b50f4a0b75f63a7166480999 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Wed, 17 Mar 2021 10:43:47 +0800 Subject: [PATCH] refactor(modal): change showMask to unstableShowMask --- CHANGELOG.en-US.md | 1 - CHANGELOG.zh-CN.md | 1 - src/modal/src/Modal.ts | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index e420f5358..5ea494282 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -5,7 +5,6 @@ ### Feat - `n-layout-sider` add `default-collapsed` prop. -- `n-modal` add `show-mask` prop. - `n-modal` support custom position. ### Fixes diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 7f691751e..f30ae6b4f 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -5,7 +5,6 @@ ### Feat - `n-layout-sider` 新增 `default-collapsed` 属性 -- `n-modal` 新增 `show-mask` 属性 - `n-modal` 支持自定义位置 ### Fixed diff --git a/src/modal/src/Modal.ts b/src/modal/src/Modal.ts index 85cbe3297..1bf3e423a 100644 --- a/src/modal/src/Modal.ts +++ b/src/modal/src/Modal.ts @@ -45,7 +45,7 @@ export default defineComponent({ type: Boolean, default: false }, - showMask: { + unstableShowMask: { type: Boolean, default: true }, @@ -266,7 +266,7 @@ export default defineComponent({ style: this.cssVars as CSSProperties }, [ - this.showMask + this.unstableShowMask ? h( Transition, {