From 3203a722a6e3e538fbcfab81e81ab85af19096c5 Mon Sep 17 00:00:00 2001 From: weilanwl <1273753708@qq.com> Date: Mon, 15 Nov 2021 21:31:25 +0800 Subject: [PATCH] up --- pages/login/login.vue | 6 +++--- ui/components/ui-avatar/ui-avatar.vue | 6 +----- ui/components/ui-card/ui-card.vue | 13 ++++--------- ui/components/ui-form-group/ui-form-group.vue | 9 ++------- ui/components/ui-loading/ui-loading.vue | 8 ++------ ui/components/ui-menu-item/ui-menu-item.vue | 12 ++++-------- ui/components/ui-navbar/ui-navbar.vue | 16 ++++++---------- ui/components/ui-progress/ui-progress.vue | 7 +------ 8 files changed, 23 insertions(+), 54 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 21428e7..415e01a 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -12,9 +12,9 @@ - - - + + + diff --git a/ui/components/ui-avatar/ui-avatar.vue b/ui/components/ui-avatar/ui-avatar.vue index 6f50a0d..a8dbb7d 100644 --- a/ui/components/ui-avatar/ui-avatar.vue +++ b/ui/components/ui-avatar/ui-avatar.vue @@ -11,8 +11,7 @@ export default { name: 'UiAvatar', data() { - return { - slots: {} + return { }; }, props: { @@ -66,9 +65,6 @@ export default { return false; } }, - mounted() { - this.slots = this.$scopedSlots; - }, methods: {} }; diff --git a/ui/components/ui-card/ui-card.vue b/ui/components/ui-card/ui-card.vue index 705be35..28822f5 100644 --- a/ui/components/ui-card/ui-card.vue +++ b/ui/components/ui-card/ui-card.vue @@ -5,17 +5,17 @@ - {{ title }} + {{ title }} - + - {{ title }} + {{ title }} {{ desc }} @@ -28,8 +28,7 @@ export default { name: 'UiCard', data() { - return { - slots: {} + return { }; }, props: { @@ -56,10 +55,6 @@ export default { type: String }, }, - - mounted() { - this.slots = this.$scopedSlots; - }, methods: { _getParent() { let parent = this.$parent; diff --git a/ui/components/ui-form-group/ui-form-group.vue b/ui/components/ui-form-group/ui-form-group.vue index 6fbba53..367ef8a 100644 --- a/ui/components/ui-form-group/ui-form-group.vue +++ b/ui/components/ui-form-group/ui-form-group.vue @@ -6,7 +6,7 @@ * - + @@ -14,8 +14,7 @@ export default { name: 'UiFormGroup', data() { - return { - slots: {} + return { }; }, props: { @@ -68,10 +67,6 @@ export default { return this.title.length + (this.icon?1.2:0) } } - }, - - mounted() { - this.slots = this.$scopedSlots; }, methods: { /** diff --git a/ui/components/ui-loading/ui-loading.vue b/ui/components/ui-loading/ui-loading.vue index 765db90..7b8e068 100644 --- a/ui/components/ui-loading/ui-loading.vue +++ b/ui/components/ui-loading/ui-loading.vue @@ -1,5 +1,5 @@