From 3bb5fda2fd5a2e5bb4a9f447c9e364db0af61280 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 29 Jun 2023 18:11:39 +0800 Subject: [PATCH] refactor: remove console --- .../src/client/components/Iconify.vue | 25 ++++++++----------- packages/theme/src/client/layouts/Layout.vue | 2 -- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/packages/plugin-iconify/src/client/components/Iconify.vue b/packages/plugin-iconify/src/client/components/Iconify.vue index 33b37e5d..05e60157 100644 --- a/packages/plugin-iconify/src/client/components/Iconify.vue +++ b/packages/plugin-iconify/src/client/components/Iconify.vue @@ -4,21 +4,16 @@ import type { CSSProperties } from 'vue' import { computed, toRefs } from 'vue' import { useIconify } from '../composables/iconify.js' -const props = defineProps({ - name: { - type: String, - require: true, - default: '', - }, - size: { - type: String, - default: '', - }, - color: { - type: String, - default: '', - }, -}) +const props = withDefaults( + defineProps<{ + name?: string + size?: string + color?: string + }>(), + { + name: '', + } +) const { name } = toRefs(props) diff --git a/packages/theme/src/client/layouts/Layout.vue b/packages/theme/src/client/layouts/Layout.vue index aa169935..ef3e2aca 100644 --- a/packages/theme/src/client/layouts/Layout.vue +++ b/packages/theme/src/client/layouts/Layout.vue @@ -21,8 +21,6 @@ import { const page = usePageData() -console.log(page) - const { isOpen: isSidebarOpen, open: openSidebar,