feat(Notify): add lockScroll option (#8168)
This commit is contained in:
@@ -13,6 +13,7 @@ export default createComponent({
|
||||
message: [Number, String],
|
||||
className: UnknownProp,
|
||||
background: String,
|
||||
lockScroll: Boolean,
|
||||
type: {
|
||||
type: String as PropType<NotifyType>,
|
||||
default: 'danger',
|
||||
@@ -34,7 +35,7 @@ export default createComponent({
|
||||
overlay={false}
|
||||
position="top"
|
||||
duration={0.2}
|
||||
lockScroll={false}
|
||||
lockScroll={props.lockScroll}
|
||||
>
|
||||
{slots.default ? slots.default() : props.message}
|
||||
</Popup>
|
||||
|
||||
Reference in New Issue
Block a user