mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types(Popup): position type (#8157)
This commit is contained in:
parent
d8e7489081
commit
8d379e0f00
@ -25,6 +25,8 @@ import { useLazyRender } from '../composables/use-lazy-render';
|
|||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Overlay from '../overlay';
|
import Overlay from '../overlay';
|
||||||
|
|
||||||
|
export type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center';
|
||||||
|
|
||||||
export type PopupCloseIconPosition =
|
export type PopupCloseIconPosition =
|
||||||
| 'top-left'
|
| 'top-left'
|
||||||
| 'top-right'
|
| 'top-right'
|
||||||
@ -83,7 +85,7 @@ export default createComponent({
|
|||||||
closeOnPopstate: Boolean,
|
closeOnPopstate: Boolean,
|
||||||
safeAreaInsetBottom: Boolean,
|
safeAreaInsetBottom: Boolean,
|
||||||
position: {
|
position: {
|
||||||
type: String,
|
type: String as PropType<PopupPosition>,
|
||||||
default: 'center',
|
default: 'center',
|
||||||
},
|
},
|
||||||
closeIcon: {
|
closeIcon: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user