Browse Source

upd: popup overlaystyle

suzigang 3 years ago
parent
commit
a6ec90527a
2 changed files with 10 additions and 0 deletions
  1. 2 0
      src/packages/__VUE/popup/index.vue
  2. 8 0
      src/packages/__VUE/popup/props.ts

+ 2 - 0
src/packages/__VUE/popup/index.vue

@@ -7,6 +7,8 @@
       :z-index="zIndex"
       :lock-scroll="lockScroll"
       :duration="duration"
+      :overlay-class="overlayClass"
+      :overlay-style="overlayStyle"
       @click="onClickOverlay"
       v-bind="$attrs"
     />

+ 8 - 0
src/packages/__VUE/popup/props.ts

@@ -71,5 +71,13 @@ export const popupProps = {
   safeAreaInsetBottom: {
     type: Boolean,
     default: false
+  },
+  overlayClass: {
+    type: String,
+    default: ''
+  },
+  overlayStyle: {
+    type: Object as PropType<CSSProperties>,
+    default: {}
   }
 };