mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs(Icon): separate usingUrl demo from basicUsage (#10828)
Co-authored-by: dingyihui <dingyihui@cmss.chinamobile.com>
This commit is contained in:
parent
b46b429682
commit
627661e0ed
@ -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',
|
||||
},
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user