docs: clean up useless demo style (#49349)

* chore: clean up demo

* test: update snapshot
This commit is contained in:
二货爱吃白萝卜 2024-06-11 16:59:23 +08:00 committed by GitHub
parent f4db94c10c
commit c65627f041
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 15 deletions

View File

@ -90,7 +90,7 @@ exports[`renders components/affix/demo/on-change.tsx extend context correctly 2`
exports[`renders components/affix/demo/target.tsx extend context correctly 1`] = `
<div
style="width: 100%; height: 100px; overflow: auto; border: 1px solid #40a9ff;"
style="width: 100%; height: 100px; overflow: auto; box-shadow: 0 0 0 1px #40a9ff;"
>
<div
style="width: 100%; height: 1000px;"

View File

@ -84,7 +84,7 @@ exports[`renders components/affix/demo/on-change.tsx correctly 1`] = `
exports[`renders components/affix/demo/target.tsx correctly 1`] = `
<div
style="width:100%;height:100px;overflow:auto;border:1px solid #40a9ff"
style="width:100%;height:100px;overflow:auto;box-shadow:0 0 0 1px #40a9ff"
>
<div
style="width:100%;height:1000px"

View File

@ -5,15 +5,3 @@
## en-US
Set a `target` for 'Affix', which is listen to scroll event of target element (default is `window`).
<style>
#components-affix-demo-target .scrollable-container {
height: 100px;
overflow-y: scroll;
}
#components-affix-demo-target .background {
padding-top: 60px;
height: 300px;
background-image: url('https://zos.alipayobjects.com/rmsportal/RmjwQiJorKyobvI.jpg');
}
</style>

View File

@ -5,7 +5,7 @@ const containerStyle: React.CSSProperties = {
width: '100%',
height: 100,
overflow: 'auto',
border: '1px solid #40a9ff',
boxShadow: '0 0 0 1px #40a9ff',
};
const style: React.CSSProperties = {