@@ -5,89 +5,130 @@ desc: 可切换大小的面包屑
55---
66
77``` jsx
8-
9- /**
10- * title: 基础
11- * desc: 头像有六种尺寸,两种形态
12- */
13- import React from ' react' ;
14- import { Avatar , Icon } from ' cloud-react' ;
15- import ' ./style.less' ;
8+ /**
9+ * title: 基础
10+ * desc: 头像有六种尺寸,两种形态
11+ */
12+ import React from " react" ;
13+ import { Avatar , Icon } from " cloud-react" ;
14+ import " ./style.less" ;
1615
1716class AvatarDemos extends React .Component {
18-
19- render () {
20- return (
21- < div className= " avatar-basic-demo" >
22- < div>
23- < h5> 24px < / h5>
24- < div>
25- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {24 }/ >
26- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {24 } shape= " square" / >
27- < Avatar size= {24 } icon= {< Icon type= " user-fill" / > } / >
28- < Avatar size= {24 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
29- < Avatar size= {24 }> A < / Avatar>
30- < Avatar size= {24 } group shape= " square" > A < / Avatar>
31- < / div>
32- < / div>
33- < div>
34- < h5> 32px < / h5>
35- < div>
36- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {32 }/ >
37- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {32 } shape= " square" / >
38- < Avatar size= {32 } icon= {< Icon type= " user-fill" / > } / >
39- < Avatar size= {32 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
40- < Avatar size= {32 }> A < / Avatar>
41- < Avatar size= {32 } group shape= " square" > A < / Avatar>
42- < / div>
43- < / div>
44- < div>
45- < h5> 40px < / h5>
46- < div>
47- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {40 }/ >
48- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {40 } shape= " square" / >
49- < Avatar size= {40 } icon= {< Icon type= " user-fill" / > } / >
50- < Avatar size= {40 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
51- < Avatar size= {40 }> A < / Avatar>
52- < Avatar size= {40 } group shape= " square" > A < / Avatar>
53- < / div>
54- < / div>
55- < div>
56- < h5> 48px < / h5>
57- < div>
58- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {48 }/ >
59- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {48 } shape= " square" / >
60- < Avatar size= {48 } icon= {< Icon type= " user-fill" / > } / >
61- < Avatar size= {48 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
62- < Avatar size= {48 }> A < / Avatar>
63- < Avatar size= {48 } group shape= " square" > A < / Avatar>
64- < / div>
65- < / div>
66- < div>
67- < h5> 60px < / h5>
68- < div>
69- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {60 }/ >
70- < Avatar src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png" size= {60 } shape= " square" / >
71- < Avatar size= {60 } icon= {< Icon type= " user-fill" / > } / >
72- < Avatar size= {60 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
73- < Avatar size= {60 }> A < / Avatar>
74- < Avatar size= {60 } group shape= " square" > A < / Avatar>
75- < / div>
76- < / div>
77- < div>
78- < h6> size 非数字< / h6>
79- < div>
80- < Avatar size= " small" shape= " square" / >
81- < Avatar size= " default" shape= " square" / >
82- < Avatar size= " large" shape= " square" / >
83- < / div>
84- < / div>
85- < / div>
86-
87- );
88- }
17+ render () {
18+ return (
19+ < div className= " avatar-basic-demo" >
20+ < div>
21+ < h5> 24px < / h5>
22+ < div>
23+ < Avatar
24+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
25+ size= {24 }
26+ / >
27+ < Avatar
28+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
29+ size= {24 }
30+ shape= " square"
31+ / >
32+ < Avatar size= {24 } icon= {< Icon type= " user-fill" / > } / >
33+ < Avatar size= {24 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
34+ < Avatar size= {24 }> A < / Avatar>
35+ < Avatar size= {24 } group shape= " square" >
36+ A
37+ < / Avatar>
38+ < / div>
39+ < / div>
40+ < div>
41+ < h5> 32px < / h5>
42+ < div>
43+ < Avatar
44+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
45+ size= {32 }
46+ / >
47+ < Avatar
48+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
49+ size= {32 }
50+ shape= " square"
51+ / >
52+ < Avatar size= {32 } icon= {< Icon type= " user-fill" / > } / >
53+ < Avatar size= {32 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
54+ < Avatar size= {32 }> A < / Avatar>
55+ < Avatar size= {32 } group shape= " square" >
56+ A
57+ < / Avatar>
58+ < / div>
59+ < / div>
60+ < div>
61+ < h5> 40px < / h5>
62+ < div>
63+ < Avatar
64+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
65+ size= {40 }
66+ / >
67+ < Avatar
68+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
69+ size= {40 }
70+ shape= " square"
71+ / >
72+ < Avatar size= {40 } icon= {< Icon type= " user-fill" / > } / >
73+ < Avatar size= {40 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
74+ < Avatar size= {40 }> A < / Avatar>
75+ < Avatar size= {40 } group shape= " square" >
76+ A
77+ < / Avatar>
78+ < / div>
79+ < / div>
80+ < div>
81+ < h5> 48px < / h5>
82+ < div>
83+ < Avatar
84+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
85+ size= {48 }
86+ / >
87+ < Avatar
88+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
89+ size= {48 }
90+ shape= " square"
91+ / >
92+ < Avatar size= {48 } icon= {< Icon type= " user-fill" / > } / >
93+ < Avatar size= {48 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
94+ < Avatar size= {48 }> A < / Avatar>
95+ < Avatar size= {48 } group shape= " square" >
96+ A
97+ < / Avatar>
98+ < / div>
99+ < / div>
100+ < div>
101+ < h5> 60px < / h5>
102+ < div>
103+ < Avatar
104+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
105+ size= {60 }
106+ / >
107+ < Avatar
108+ src= " https://brand-guide.shuyun.com/IAM/0a06d4f03b56.png"
109+ size= {60 }
110+ shape= " square"
111+ / >
112+ < Avatar size= {60 } icon= {< Icon type= " user-fill" / > } / >
113+ < Avatar size= {60 } icon= {< Icon type= " user-fill" / > } shape= " square" / >
114+ < Avatar size= {60 }> A < / Avatar>
115+ < Avatar size= {60 } group shape= " square" >
116+ A
117+ < / Avatar>
118+ < / div>
119+ < / div>
120+ < div>
121+ < h6> size 非数字< / h6>
122+ < div>
123+ < Avatar size= " small" shape= " square" / >
124+ < Avatar size= " default" shape= " square" / >
125+ < Avatar size= " large" shape= " square" / >
126+ < / div>
127+ < / div>
128+ < / div>
129+ );
130+ }
89131}
90132
91133export default AvatarDemos ;
92134```
93-
0 commit comments