From 2c5d0f9a655781c396c6d171efac01ef5ee29981 Mon Sep 17 00:00:00 2001 From: Boris Serebrov Date: Sat, 20 Mar 2021 21:14:52 +0200 Subject: [PATCH 1/2] Add .vue extension to component imports --- src/components/Picker.vue | 8 ++++---- src/components/VirtualScrollPicker.vue | 8 ++++---- src/components/category.vue | 2 +- src/components/index.js | 14 +++++++------- src/components/preview.vue | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/Picker.vue b/src/components/Picker.vue index 78d07b3e..b07549fb 100644 --- a/src/components/Picker.vue +++ b/src/components/Picker.vue @@ -86,10 +86,10 @@ import store from '../utils/store' import frequently from '../utils/frequently' import { deepMerge, measureScrollbar } from '../utils' import { PickerProps } from '../utils/shared-props' -import Anchors from './anchors' -import Category from './category' -import Preview from './preview' -import Search from './search' +import Anchors from './anchors.vue' +import Category from './category.vue' +import Preview from './preview.vue' +import Search from './search.vue' const I18N = { search: 'Search', diff --git a/src/components/VirtualScrollPicker.vue b/src/components/VirtualScrollPicker.vue index eae6ae9f..81416451 100644 --- a/src/components/VirtualScrollPicker.vue +++ b/src/components/VirtualScrollPicker.vue @@ -100,10 +100,10 @@ import store from '../utils/store' import frequently from '../utils/frequently' import { deepMerge, measureScrollbar } from '../utils' import { PickerProps } from '../utils/shared-props' -import Anchors from './anchors' -import Category from './category' -import Preview from './preview' -import Search from './search' +import Anchors from './anchors.vue' +import Category from './category.vue' +import Preview from './preview.vue' +import Search from './search.vue' /* * Note about `buffer` setting for DynamicScroller: this is a diff --git a/src/components/category.vue b/src/components/category.vue index 9c5e26c2..82a0c982 100644 --- a/src/components/category.vue +++ b/src/components/category.vue @@ -35,7 +35,7 @@