From 5e88b8d01f11a5feab71232ad730682deffdcf41 Mon Sep 17 00:00:00 2001 From: chansee97 Date: Sat, 31 Aug 2024 00:35:39 +0800 Subject: [PATCH] fix: map name error --- eslint.config.js | 6 ++++++ src/views/demo/map/index.vue | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index ed8674f..949c548 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,5 +9,11 @@ export default antfu( 'ts/no-unused-expressions': ['error', { allowShortCircuit: true }], }, }, + vue: { + overrides: { + 'vue/no-reserved-component-names': 'off', + 'vue/component-definition-name-casing': 'off', + }, + }, }, ) diff --git a/src/views/demo/map/index.vue b/src/views/demo/map/index.vue index 0f3b858..f0c36ee 100644 --- a/src/views/demo/map/index.vue +++ b/src/views/demo/map/index.vue @@ -6,20 +6,20 @@ import AMap from './components/AMap.vue' import BMap from './components/BMap.vue' defineOptions({ - name: 'PluginMap', + name: 'map', }) const maps = [ - { - id: 'AMap', - label: '高德地图', - component: AMap, - }, { id: 'BMap', label: '百度地图', component: BMap, }, + { + id: 'AMap', + label: '高德地图', + component: AMap, + }, ]