1
0
Эх сурвалжийг харах

docs: Modify Image fallback content (#1148)

YyumeiZhang 3 жил өмнө
parent
commit
033e62f401

+ 1 - 5
content/show/image/index-en-US.md

@@ -56,11 +56,7 @@ import { Image } from '@douyinfe/semi-ui';
             width={200}
             width={200}
             height={200}
             height={200}
             src="https://load-error.jpeg"
             src="https://load-error.jpeg"
-            fallback={<Empty
-                image={<IllustrationFailure style={{ width: 150, height: 150 }} />}
-                darkModeImage={<IllustrationFailureDark style={{ width: 150, height: 150 }} />}
-                description={'加载失败'}
-            />}
+            fallback={<IconUploadError style={{ fontSize: 50 }} />}
             />
             />
     </div>
     </div>
 );
 );

+ 1 - 5
content/show/image/index.md

@@ -56,11 +56,7 @@ import { Image } from '@douyinfe/semi-ui';
             width={200}
             width={200}
             height={200}
             height={200}
             src="https://load-error.jpeg"
             src="https://load-error.jpeg"
-            fallback={<Empty
-                image={<IllustrationFailure style={{ width: 150, height: 150 }} />}
-                darkModeImage={<IllustrationFailureDark style={{ width: 150, height: 150 }} />}
-                description={'加载失败'}
-            />}
+            fallback={<IconUploadError style={{ fontSize: 50 }} />}
         />
         />
     </div>
     </div>
 );
 );