diff --git a/src/notify/Notify.tsx b/src/notify/Notify.tsx index 770b8544d..ea8b6664b 100644 --- a/src/notify/Notify.tsx +++ b/src/notify/Notify.tsx @@ -37,6 +37,7 @@ function Notify( style={style} position="top" overlay={false} + duration={0.2} lockScroll={false} class={[bem([props.type]), props.className]} {...inherit(ctx, true)} diff --git a/src/notify/test/__snapshots__/index.spec.js.snap b/src/notify/test/__snapshots__/index.spec.js.snap index c8b7fb7f9..c3e4f0f92 100644 --- a/src/notify/test/__snapshots__/index.spec.js.snap +++ b/src/notify/test/__snapshots__/index.spec.js.snap @@ -1,13 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`create a notify 1`] = `
test
`; +exports[`create a notify 1`] = `
test
`; -exports[`notify disappear 1`] = `
test
`; +exports[`notify disappear 1`] = `
test
`; -exports[`notify disappear 2`] = ``; +exports[`notify disappear 2`] = ``; -exports[`notify disappear 3`] = `
text2
`; +exports[`notify disappear 3`] = `
text2
`; -exports[`notify disappear 4`] = ``; +exports[`notify disappear 4`] = ``; -exports[`type prop 1`] = `
test
`; +exports[`type prop 1`] = `
test
`;