From 627661e0edd760d45071a4cb285cc939e196f8fd Mon Sep 17 00:00:00 2001 From: dyh333 Date: Wed, 20 Jul 2022 21:36:08 +0800 Subject: [PATCH] docs(Icon): separate usingUrl demo from basicUsage (#10828) Co-authored-by: dingyihui --- packages/vant/docs/site/use-translate.ts | 2 ++ packages/vant/src/icon/demo/index.vue | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/packages/vant/docs/site/use-translate.ts b/packages/vant/docs/site/use-translate.ts index 7d29e43d3..a70fc8a5d 100644 --- a/packages/vant/docs/site/use-translate.ts +++ b/packages/vant/docs/site/use-translate.ts @@ -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', }, diff --git a/packages/vant/src/icon/demo/index.vue b/packages/vant/src/icon/demo/index.vue index a0e7dc089..7bfc05fa4 100644 --- a/packages/vant/src/icon/demo/index.vue +++ b/packages/vant/src/icon/demo/index.vue @@ -99,6 +99,11 @@ const copy = (icon: string, option: Record = {}) => { + + + + +