feat(Notify): add lockScroll option (#8168)

This commit is contained in:
neverland
2021-02-16 13:57:05 +08:00
committed by GitHub
parent 8568c02e0b
commit f7b09d1677
4 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -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>