feat(Popover): add overlay-style prop (#8354)

This commit is contained in:
neverland
2021-03-15 20:20:41 +08:00
committed by GitHub
parent 536f2fad38
commit c452926cd1
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -4,6 +4,7 @@ import {
nextTick,
PropType,
onMounted,
CSSProperties,
TeleportProps,
onBeforeUnmount,
defineComponent,
@@ -32,6 +33,7 @@ const popupProps = [
'show',
'overlay',
'teleport',
'overlayStyle',
'overlayClass',
'closeOnClickOverlay',
] as const;
@@ -67,6 +69,7 @@ export default defineComponent({
show: Boolean,
overlay: Boolean,
overlayClass: UnknownProp,
overlayStyle: Object as PropType<CSSProperties>,
offset: {
type: (Array as unknown) as PropType<[number, number]>,
default: () => [0, 8],