Skip to content

Commit 887f06e

Browse files
docs(user-head): 更新头像组件文档,优化描述信息,移除冗余字段
1 parent c77644c commit 887f06e

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

examples/sites/demos/apis/user-head.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export default {
8282
type: 'string',
8383
defaultValue: '',
8484
desc: {
85-
'zh-CN': '设置头像值。',
86-
'en-US': 'Set the profile picture.'
85+
'zh-CN': 'type=icon 时为图标类名,type=label时为字体串,type=image时为资源路径',
86+
'en-US': 'If type is set to icon, it indicates the icon class name. If type is set to label, it indicates the font string. If type is set to image, it indicates the resource path'
8787
},
8888
mode: ['pc'],
8989
pcDemo: 'basic-usage'
@@ -124,19 +124,6 @@ export default {
124124
pcDemo: 'image-user-head',
125125
mfDemo: ''
126126
},
127-
{
128-
name: 'v-model',
129-
type: 'string',
130-
defaultValue: '',
131-
desc: {
132-
'zh-CN': 'type=icon 时为图标类名,type=label 时为字体串,type=image 时为资源路径',
133-
'en-US':
134-
'If type is set to icon, it indicates the icon class name. If type is set to label, it indicates the font string. If type is set to image, it indicates the resource path'
135-
},
136-
mode: ['pc', 'mobile-first'],
137-
pcDemo: 'icon-user-head',
138-
mfDemo: ''
139-
},
140127
{
141128
name: 'value',
142129
type: 'string',

0 commit comments

Comments
 (0)