demo: add border for demo (#45342)

* demo: update demo

* demo: update demo
This commit is contained in:
lijianan 2023-10-14 11:58:20 +08:00 committed by GitHub
parent 34e0a3e0cf
commit 406817a86a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 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;"
style="width: 100%; height: 100px; border-radius: 6px; overflow: auto; border: 1px solid #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"
style="width:100%;height:100px;border-radius:6px;overflow:auto;border:1px solid #40a9ff"
>
<div
style="width:100%;height:1000px"

View File

@ -4,7 +4,9 @@ import { Affix, Button } from 'antd';
const containerStyle: React.CSSProperties = {
width: '100%',
height: 100,
borderRadius: 6,
overflow: 'auto',
border: '1px solid #40a9ff',
};
const style: React.CSSProperties = {