feat: ActionSheet、ShareSheet add before-close prop (#9068)

This commit is contained in:
neverland
2021-07-19 21:02:42 +08:00
committed by GitHub
parent eaa9bf3680
commit 29c63a905b
7 changed files with 9 additions and 4 deletions
+1 -2
View File
@@ -16,7 +16,7 @@ import {
// Utils
import { popupSharedProps } from './shared';
import { createNamespace, extend, isDef } from '../utils';
import { callInterceptor, Interceptor } from '../utils/interceptor';
import { callInterceptor } from '../utils/interceptor';
// Composables
import { useEventListener } from '@vant/use';
@@ -51,7 +51,6 @@ export default defineComponent({
closeable: Boolean,
transition: String,
iconPrefix: String,
beforeClose: Function as PropType<Interceptor>,
closeOnPopstate: Boolean,
safeAreaInsetBottom: Boolean,
position: {
+3
View File
@@ -1,5 +1,6 @@
import { PropType, CSSProperties, TeleportProps } from 'vue';
import { truthProp, unknownProp } from '../utils';
import type { Interceptor } from '../utils/interceptor';
export const popupSharedProps = {
// whether to show popup
@@ -16,6 +17,8 @@ export const popupSharedProps = {
lockScroll: truthProp,
// whether to lazy render
lazyRender: truthProp,
// callback function before close
beforeClose: Function as PropType<Interceptor>,
// overlay custom style
overlayStyle: Object as PropType<CSSProperties>,
// overlay custom class name