diff --git a/components/avatar/__tests__/__snapshots__/demo.test.js.snap b/components/avatar/__tests__/__snapshots__/demo.test.js.snap index 34f60465b7..2780a6c77e 100644 --- a/components/avatar/__tests__/__snapshots__/demo.test.js.snap +++ b/components/avatar/__tests__/__snapshots__/demo.test.js.snap @@ -200,79 +200,51 @@ exports[`renders ./components/avatar/demo/badge.md correctly 1`] = ` exports[`renders ./components/avatar/demo/basic.md correctly 1`] = `
-
-
+ - - - -
-
+ + - - - -
-
+ + - - - -
+ +
-
-
+ - - - -
-
+ + - - - -
-
+ + - - - -
+ +
`; @@ -303,87 +275,55 @@ exports[`renders ./components/avatar/demo/dynamic.md correctly 1`] = ` exports[`renders ./components/avatar/demo/type.md correctly 1`] = `
-
-
- - - -
-
- - - U - - -
-
- - - USER - - -
-
+ + + - - - -
-
-
+ + -
- - - U - - -
-
+ + + + + + - - - -
-
+ U + + + + +
`; diff --git a/components/avatar/demo/basic.md b/components/avatar/demo/basic.md index d67a9ac36a..c061babca3 100644 --- a/components/avatar/demo/basic.md +++ b/components/avatar/demo/basic.md @@ -14,20 +14,27 @@ title: Three sizes and two shapes are available. ````jsx -import { Avatar, Row, Col } from 'antd'; +import { Avatar } from 'antd'; ReactDOM.render(
- - - - - - - - - - +
+ + + +
+
+ + + +
, mountNode); ```` + + diff --git a/components/avatar/demo/type.md b/components/avatar/demo/type.md index e24ab3386f..bd08432c20 100644 --- a/components/avatar/demo/type.md +++ b/components/avatar/demo/type.md @@ -14,20 +14,23 @@ title: Image, Icon and letter are supported, and the latter two kinds avatar can have custom colors and background colors. ````jsx -import { Avatar, Row, Col } from 'antd'; +import { Avatar } from 'antd'; ReactDOM.render(
- - - U - USER - - - - U - - + + U + USER + + U +
, mountNode); ```` + +