瀏覽代碼

docs: Modify Image fallback content (#1148)

YyumeiZhang 3 年之前
父節點
當前提交
033e62f401
共有 2 個文件被更改,包括 2 次插入10 次删除
  1. 1 5
      content/show/image/index-en-US.md
  2. 1 5
      content/show/image/index.md

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

@@ -56,11 +56,7 @@ import { Image } from '@douyinfe/semi-ui';
             width={200}
             height={200}
             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>
 );

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

@@ -56,11 +56,7 @@ import { Image } from '@douyinfe/semi-ui';
             width={200}
             height={200}
             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>
 );