Browse Source

fix(modal): `helpMessage` doesn't work

修复`helpMessage`属性不起作用的问题
无木 3 years ago
parent
commit
953bfc6f1a
2 changed files with 3 additions and 2 deletions
  1. 1 0
      CHANGELOG.zh_CN.md
  2. 2 2
      src/components/Modal/src/BasicModal.vue

+ 1 - 0
CHANGELOG.zh_CN.md

@@ -7,6 +7,7 @@
   - 修复 selection-change 事件在取消勾选时未能正确触发的问题
   - 修复浅色主题下的全屏状态背景颜色不正确的问题
 - **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
+- **BasicModal** 修复`helpMessage`属性不起作用的问题
 
 ## 2.7.0(2021-08-03)
 

+ 2 - 2
src/components/Modal/src/BasicModal.vue

@@ -140,9 +140,9 @@
           wrapClassName: unref(getWrapClassName),
         };
         if (unref(fullScreenRef)) {
-          return omit(attr, 'height');
+          return omit(attr, ['height', 'title']);
         }
-        return attr;
+        return omit(attr, 'title');
       });
 
       const getWrapperHeight = computed(() => {