docs(Icon): separate usingUrl demo from basicUsage (#10828)

Co-authored-by: dingyihui <dingyihui@cmss.chinamobile.com>
This commit is contained in:
dyh333 2022-07-20 21:36:08 +08:00 committed by GitHub
parent b46b429682
commit 627661e0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,7 @@ export function initDemoLocale() {
disabled: '禁用状态',
uneditable: '不可编辑',
basicUsage: '基础用法',
usingUrl: '使用图片 URL',
advancedUsage: '高级用法',
loadingStatus: '加载状态',
},
@ -78,6 +79,7 @@ export function initDemoLocale() {
disabled: 'Disabled',
uneditable: 'Uneditable',
basicUsage: 'Basic Usage',
usingUrl: 'Using URL',
advancedUsage: 'Advanced Usage',
loadingStatus: 'Loading',
},

View File

@ -99,6 +99,11 @@ const copy = (icon: string, option: Record<string, unknown> = {}) => {
<van-col span="6" @click="copy(demoIcon)">
<van-icon :name="demoIcon" />
</van-col>
</van-row>
</demo-block>
<demo-block :title="t('usingUrl')">
<van-row>
<van-col span="6" @click="copy(demoImage)">
<van-icon :name="demoImage" />
</van-col>