diff --git a/src/boot/global-components.js b/src/boot/global-components.js deleted file mode 100644 index 17e7a6c30..000000000 --- a/src/boot/global-components.js +++ /dev/null @@ -1,13 +0,0 @@ -// src/boot/global-components.js -import { defineAsyncComponent } from 'vue'; - -const components = import.meta.glob('src/components/**/*.vue'); -export default ({ app }) => { - for (const path in components) { - const componentName = path - .split('/') - .pop() - .replace(/\.\w+$/, ''); - app.component(componentName, defineAsyncComponent(components[path])); - } -}; diff --git a/src/components/VnTable/VnColumn.vue b/src/components/VnTable/VnColumn.vue index a06592002..9e9bfad69 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -11,7 +11,6 @@ import VnInputNumber from 'components/common/VnInputNumber.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; import VnInputTime from 'components/common/VnInputTime.vue'; import VnComponent from 'components/common/VnComponent.vue'; - import VnUserLink from 'components/ui/VnUserLink.vue'; const model = defineModel(undefined, { required: true }); @@ -129,7 +128,6 @@ const defaultComponents = { icon: { component: markRaw(QIcon), }, - userLink: { component: markRaw(VnUserLink), }, diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index f977ccc57..8e8f843e9 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -90,10 +90,7 @@ const manageDate = (date) => { formattedDate.value = date; isPopupOpen.value = false; }; -const handleEventColor = (date) => { - console.error(date); - return date === Date.now() ? null : 'orange'; -}; +const handleEventColor = (date) => (date === Date.now() ? null : 'orange');