From f78407a4097efbbddca3d07bec3d2def3726324e Mon Sep 17 00:00:00 2001 From: Aex Date: Fri, 5 Nov 2021 17:44:02 +0800 Subject: [PATCH] fix(components): empty icon component judgment (#4178) * fix(components): empty icon component judgment * revert: globals components * fix(components): el-icon missing import * fix: use shallowRef for icon components * refactor: remove shallowRef * fix: remove unused code * fix: social-link icon size * fix: time picker icon * fix: v-if judge --- .../components/navbar/vp-social-link.vue | 2 +- docs/examples/button/basic.vue | 14 +---------- docs/examples/button/group.vue | 17 +------------ docs/examples/button/icon.vue | 17 +------------ docs/examples/button/size.vue | 9 +------ docs/examples/descriptions/sizes.vue | 18 +++---------- docs/examples/input/mixed-input.vue | 19 +++++--------- docs/examples/input/with-icon.vue | 25 +++++-------------- docs/examples/popconfirm/customize.vue | 9 +------ docs/examples/popconfirm/trigger-event.vue | 21 +++++----------- docs/examples/switch/custom-icons.vue | 21 ++++++---------- docs/examples/timeline/custom-node.vue | 7 +++--- packages/components/alert/src/alert.vue | 6 ++++- .../breadcrumb/src/breadcrumb-item.vue | 5 ++++ .../src/date-picker-com/panel-date-range.vue | 2 ++ .../src/date-picker-com/panel-month-range.vue | 3 ++- .../components/dropdown/src/dropdown-item.vue | 2 ++ packages/components/input/src/input.vue | 2 +- .../page-header/src/page-header.vue | 2 +- .../components/popconfirm/src/popconfirm.vue | 2 +- packages/components/result/src/index.vue | 6 ++++- packages/components/select-v2/src/select.vue | 5 ++-- packages/components/select/src/select.vue | 3 ++- .../time-picker/src/common/picker.vue | 15 ++++++++--- .../time-select/src/time-select.vue | 2 +- .../transfer/src/transfer-panel.vue | 4 ++- packages/components/tree-v2/src/tree-node.vue | 1 + packages/components/tree/src/tree-node.vue | 1 + 28 files changed, 85 insertions(+), 155 deletions(-) diff --git a/docs/.vitepress/vitepress/components/navbar/vp-social-link.vue b/docs/.vitepress/vitepress/components/navbar/vp-social-link.vue index c1461c36c0..14c1ec66c7 100644 --- a/docs/.vitepress/vitepress/components/navbar/vp-social-link.vue +++ b/docs/.vitepress/vitepress/components/navbar/vp-social-link.vue @@ -16,7 +16,7 @@ defineProps<{ rel="noreferrer noopener" class="social-link" > - + diff --git a/docs/examples/button/basic.vue b/docs/examples/button/basic.vue index e9483a8894..a292b1009b 100644 --- a/docs/examples/button/basic.vue +++ b/docs/examples/button/basic.vue @@ -36,18 +36,6 @@ - diff --git a/docs/examples/button/group.vue b/docs/examples/button/group.vue index b4ee7dd253..0ee07587be 100644 --- a/docs/examples/button/group.vue +++ b/docs/examples/button/group.vue @@ -12,21 +12,6 @@ - diff --git a/docs/examples/button/icon.vue b/docs/examples/button/icon.vue index c65a039844..0a474fa78e 100644 --- a/docs/examples/button/icon.vue +++ b/docs/examples/button/icon.vue @@ -7,21 +7,6 @@ Upload - diff --git a/docs/examples/button/size.vue b/docs/examples/button/size.vue index 6a1780d5e5..08cac41fec 100644 --- a/docs/examples/button/size.vue +++ b/docs/examples/button/size.vue @@ -18,13 +18,6 @@ - diff --git a/docs/examples/descriptions/sizes.vue b/docs/examples/descriptions/sizes.vue index 6a1049e42e..1dd90ddf0d 100644 --- a/docs/examples/descriptions/sizes.vue +++ b/docs/examples/descriptions/sizes.vue @@ -75,7 +75,8 @@ - diff --git a/docs/examples/input/mixed-input.vue b/docs/examples/input/mixed-input.vue index 8f4bea853b..1f1e5c20ed 100644 --- a/docs/examples/input/mixed-input.vue +++ b/docs/examples/input/mixed-input.vue @@ -29,20 +29,13 @@ -