Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(upload): update text and style #315

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/upload/_example/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import Multiple from './multiple';

export default function () {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Upload 上传" summary="用于上传一个媒体资源,包含图片及视频,点击可以进行图片或视频预览" />
<div className="tdesign-mobile-demo" style={{ marginBottom: 16 }}>
<TDemoHeader title="Upload 上传" summary="用于相册读取或拉起拍照的图片上传功能。" />
<TDemoBlock title="01 类型" summary="单选上传图片">
<Base />
</TDemoBlock>
Expand Down
4 changes: 2 additions & 2 deletions src/upload/_example/multiple.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default () => {
type: 'image',
},
{
url: 'https://tdesign.gtimg.com/site/upload1.png',
url: 'https://tdesign.gtimg.com/site/upload2.png',
name: 'uploaded2.png',
type: 'image',
},
Expand All @@ -22,7 +22,7 @@ export default () => {
},
]);
const handleRemove = ({ index }) => {
setFiles(files.filter((item, idx) => index !== idx))
setFiles(files.filter((item, idx) => index !== idx));
};

return (
Expand Down