From 4c41908ac1eed2bf4f7c713f4b25e04f1248c44b Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 11 Aug 2021 10:55:10 +0800 Subject: [PATCH] refactor: demo using script setup (#9235) --- src/action-bar/demo/index.vue | 85 ++-- src/action-sheet/demo/index.vue | 160 +++---- src/address-edit/demo/index.vue | 61 +-- src/address-list/demo/index.vue | 55 +-- src/area/demo/index.vue | 59 +-- src/badge/demo/index.vue | 47 +- src/button/demo/index.vue | 139 +++--- src/calendar/demo/index.vue | 541 +++++++++++----------- src/card/demo/index.vue | 46 +- src/cascader/demo/index.vue | 363 +++++++-------- src/cell/demo/index.vue | 83 ++-- src/checkbox/demo/index.vue | 283 ++++++----- src/circle/demo/index.vue | 188 ++++---- src/col/demo/index.vue | 39 +- src/collapse/demo/index.vue | 69 ++- src/config-provider/demo/index.vue | 138 +++--- src/contact-card/demo/index.vue | 77 ++- src/contact-edit/demo/index.vue | 47 +- src/contact-list/demo/index.vue | 60 +-- src/count-down/demo/index.vue | 108 ++--- src/coupon-list/demo/index.vue | 179 ++++--- src/datetime-picker/demo/index.vue | 150 +++--- src/dialog/demo/index.vue | 173 ++++--- src/divider/demo/index.vue | 51 +- src/dropdown-menu/demo/index.vue | 167 ++++--- src/empty/demo/index.vue | 67 ++- src/field/demo/Autosize.vue | 42 +- src/field/demo/BasicUsage.vue | 35 +- src/field/demo/CustomType.vue | 101 ++-- src/field/demo/Disabled.vue | 44 +- src/field/demo/ErrorInfo.vue | 65 ++- src/field/demo/FormatValue.vue | 66 ++- src/field/demo/InputAlign.vue | 38 +- src/field/demo/InsertButton.vue | 52 +-- src/field/demo/ShowIcon.vue | 65 ++- src/field/demo/ShowWordLimit.vue | 46 +- src/field/demo/index.vue | 41 +- src/form/demo/BasicUsage.vue | 101 ++-- src/form/demo/FieldType.vue | 204 ++++---- src/form/demo/FieldTypeArea.vue | 86 ++-- src/form/demo/FieldTypeCalendar.vue | 69 ++- src/form/demo/FieldTypeDatetimePicker.vue | 72 ++- src/form/demo/FieldTypePicker.vue | 80 ++-- src/form/demo/ValidateRules.vue | 154 +++--- src/form/demo/index.vue | 20 +- src/grid/demo/index.vue | 75 ++- src/icon/demo/index.vue | 189 ++++---- src/image-preview/demo/index.vue | 149 +++--- src/image/demo/index.vue | 66 ++- src/index-bar/demo/index.vue | 62 ++- src/lazyload/demo/index.vue | 71 ++- src/list/demo/index.vue | 175 ++++--- src/loading/demo/index.vue | 55 +-- src/nav-bar/demo/index.vue | 46 +- src/notice-bar/demo/index.vue | 63 ++- src/notify/demo/index.vue | 136 +++--- src/number-keyboard/demo/index.vue | 111 ++--- src/overlay/demo/index.vue | 51 +- src/pagination/demo/index.vue | 67 ++- src/password-input/demo/index.vue | 255 +++++----- src/picker/demo/index.vue | 268 +++++------ src/popover/demo/index.vue | 196 ++++---- src/popup/demo/index.vue | 103 ++-- src/progress/demo/index.vue | 43 +- src/pull-refresh/demo/index.vue | 123 +++-- src/radio/demo/index.vue | 101 ++-- src/rate/demo/index.vue | 98 ++-- src/search/demo/index.vue | 89 ++-- src/share-sheet/demo/index.vue | 222 ++++----- src/sidebar/demo/index.vue | 68 ++- src/skeleton/demo/index.vue | 57 +-- src/slider/demo/index.vue | 100 ++-- src/stepper/demo/index.vue | 116 +++-- src/steps/demo/index.vue | 92 ++-- src/sticky/demo/index.vue | 51 +- src/style/demo/index.vue | 80 ++-- src/submit-bar/demo/index.vue | 78 ++-- src/swipe-cell/demo/index.vue | 100 ++-- src/swipe/demo/index.vue | 78 ++-- src/switch/demo/index.vue | 99 ++-- src/tab/demo/index.vue | 132 +++--- src/tabbar/demo/index.vue | 91 ++-- src/tag/demo/index.vue | 100 ++-- src/toast/demo/index.vue | 190 ++++---- src/tree-select/demo/index.vue | 108 ++--- src/uploader/demo/index.vue | 258 +++++------ 86 files changed, 4277 insertions(+), 5151 deletions(-) diff --git a/src/action-bar/demo/index.vue b/src/action-bar/demo/index.vue index fd7809732..add8ccea1 100644 --- a/src/action-bar/demo/index.vue +++ b/src/action-bar/demo/index.vue @@ -1,3 +1,41 @@ + + - - diff --git a/src/icon/demo/index.vue b/src/icon/demo/index.vue index 1a7990fb2..56a911d02 100644 --- a/src/icon/demo/index.vue +++ b/src/icon/demo/index.vue @@ -1,3 +1,92 @@ + + - - + diff --git a/src/sidebar/demo/index.vue b/src/sidebar/demo/index.vue index 6b19ef1a3..ba06f41a9 100644 --- a/src/sidebar/demo/index.vue +++ b/src/sidebar/demo/index.vue @@ -1,3 +1,31 @@ + + - -