feat: ActionSheet、ShareSheet add before-close prop (#9068)
This commit is contained in:
+1
-2
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user