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
+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