From 33996db3fa3140050c96b93ed52af42e172c722e Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 17 Aug 2021 09:50:28 +0800 Subject: [PATCH] chore: demo using css vars (#9265) --- src/action-sheet/demo/index.vue | 5 ++--- src/badge/demo/index.vue | 8 +++----- src/button/demo/index.vue | 12 +++++------- src/card/demo/index.vue | 4 +--- src/checkbox/demo/index.vue | 8 +++----- src/circle/demo/index.vue | 8 +++----- src/col/demo/index.vue | 8 +++----- src/collapse/demo/index.vue | 4 +--- src/config-provider/demo/index.vue | 4 +--- src/contact-list/demo/index.vue | 4 +--- src/count-down/demo/index.vue | 10 ++++------ src/dialog/demo/index.vue | 2 -- src/divider/demo/index.vue | 6 ++---- src/empty/demo/index.vue | 4 +--- src/icon/demo/index.vue | 8 +++----- src/image/demo/index.vue | 8 +++----- src/lazyload/demo/index.vue | 10 ++++------ src/list/demo/index.vue | 6 ++---- src/loading/demo/index.vue | 4 +--- src/notice-bar/demo/index.vue | 4 +--- src/number-keyboard/demo/index.vue | 4 +--- src/overlay/demo/index.vue | 6 ++---- src/pagination/demo/index.vue | 4 +--- src/popover/demo/index.vue | 6 ++---- src/popup/demo/index.vue | 6 ++---- src/progress/demo/index.vue | 4 +--- src/pull-refresh/demo/index.vue | 6 ++---- src/radio/demo/index.vue | 4 +--- src/rate/demo/index.vue | 4 +--- src/sidebar/demo/index.vue | 8 +++----- src/skeleton/demo/index.vue | 10 ++++------ src/slider/demo/index.vue | 8 +++----- src/steps/demo/index.vue | 6 ++---- src/sticky/demo/index.vue | 4 +--- src/style/demo/index.vue | 10 ++++------ src/submit-bar/demo/index.vue | 6 ++---- src/swipe-cell/demo/index.vue | 4 +--- src/swipe/demo/index.vue | 8 +++----- src/switch/demo/index.vue | 4 +--- src/tab/demo/index.vue | 4 +--- src/tag/demo/index.vue | 4 +--- src/uploader/demo/index.vue | 6 ++---- 42 files changed, 85 insertions(+), 168 deletions(-) diff --git a/src/action-sheet/demo/index.vue b/src/action-sheet/demo/index.vue index 3f680d806..d369212b2 100644 --- a/src/action-sheet/demo/index.vue +++ b/src/action-sheet/demo/index.vue @@ -124,11 +124,10 @@ const onCancel = () => Toast(t('cancel')); diff --git a/src/badge/demo/index.vue b/src/badge/demo/index.vue index a00aacd97..dd9ff74ae 100644 --- a/src/badge/demo/index.vue +++ b/src/badge/demo/index.vue @@ -87,19 +87,17 @@ const t = useTranslate(i18n); diff --git a/src/card/demo/index.vue b/src/card/demo/index.vue index 143f975ce..ec28774f2 100644 --- a/src/card/demo/index.vue +++ b/src/card/demo/index.vue @@ -72,9 +72,7 @@ const imageURL = 'https://img.yzcdn.cn/vant/ipad.jpeg'; diff --git a/src/checkbox/demo/index.vue b/src/checkbox/demo/index.vue index 8f4d7ae9b..e13c82b26 100644 --- a/src/checkbox/demo/index.vue +++ b/src/checkbox/demo/index.vue @@ -179,10 +179,8 @@ const toggleAll = () => { diff --git a/src/count-down/demo/index.vue b/src/count-down/demo/index.vue index 3fee81b1e..d6bc8e9a1 100644 --- a/src/count-down/demo/index.vue +++ b/src/count-down/demo/index.vue @@ -88,19 +88,17 @@ const onFinish = () => Toast(t('finished')); diff --git a/src/empty/demo/index.vue b/src/empty/demo/index.vue index 9ace22cbb..7b0b99937 100644 --- a/src/empty/demo/index.vue +++ b/src/empty/demo/index.vue @@ -64,10 +64,8 @@ const active = ref('error'); diff --git a/src/loading/demo/index.vue b/src/loading/demo/index.vue index 34d19ea41..2ceadf147 100644 --- a/src/loading/demo/index.vue +++ b/src/loading/demo/index.vue @@ -62,10 +62,8 @@ const t = useTranslate(i18n); diff --git a/src/overlay/demo/index.vue b/src/overlay/demo/index.vue index 0457472fe..ee06719a5 100644 --- a/src/overlay/demo/index.vue +++ b/src/overlay/demo/index.vue @@ -45,10 +45,8 @@ const showEmbedded = ref(false); diff --git a/src/progress/demo/index.vue b/src/progress/demo/index.vue index 64f988ecd..e8bb23281 100644 --- a/src/progress/demo/index.vue +++ b/src/progress/demo/index.vue @@ -43,10 +43,8 @@ const t = useTranslate(i18n); diff --git a/src/radio/demo/index.vue b/src/radio/demo/index.vue index b7291153e..f28b4c781 100644 --- a/src/radio/demo/index.vue +++ b/src/radio/demo/index.vue @@ -137,10 +137,8 @@ const inactiveIcon = 'https://img.yzcdn.cn/vant/user-inactive.png'; diff --git a/src/sidebar/demo/index.vue b/src/sidebar/demo/index.vue index ba06f41a9..15f41e224 100644 --- a/src/sidebar/demo/index.vue +++ b/src/sidebar/demo/index.vue @@ -67,18 +67,16 @@ const onChange = (index: number) => Toast(`${t('title')} ${index + 1}`); diff --git a/src/style/demo/index.vue b/src/style/demo/index.vue index b8647cdfd..43b547267 100644 --- a/src/style/demo/index.vue +++ b/src/style/demo/index.vue @@ -62,24 +62,22 @@ const animate = (newName: string) => { diff --git a/src/swipe-cell/demo/index.vue b/src/swipe-cell/demo/index.vue index 246ff6992..302762ecc 100644 --- a/src/swipe-cell/demo/index.vue +++ b/src/swipe-cell/demo/index.vue @@ -92,14 +92,12 @@ const beforeClose = ({ position }: { position: string }) => { diff --git a/src/tab/demo/index.vue b/src/tab/demo/index.vue index 4e44a2691..8f9febcff 100644 --- a/src/tab/demo/index.vue +++ b/src/tab/demo/index.vue @@ -162,8 +162,6 @@ const beforeChange = (name: number) => { diff --git a/src/uploader/demo/index.vue b/src/uploader/demo/index.vue index d8252410f..ad37ee3d5 100644 --- a/src/uploader/demo/index.vue +++ b/src/uploader/demo/index.vue @@ -179,13 +179,11 @@ const onOversize = (file: UploaderFileListItem, detail: unknown) => {