fix: map name error

This commit is contained in:
chansee97 2024-08-31 00:35:39 +08:00
parent 5fb8881763
commit 5e88b8d01f
2 changed files with 12 additions and 6 deletions

View File

@ -9,5 +9,11 @@ export default antfu(
'ts/no-unused-expressions': ['error', { allowShortCircuit: true }], 'ts/no-unused-expressions': ['error', { allowShortCircuit: true }],
}, },
}, },
vue: {
overrides: {
'vue/no-reserved-component-names': 'off',
'vue/component-definition-name-casing': 'off',
},
},
}, },
) )

View File

@ -6,20 +6,20 @@ import AMap from './components/AMap.vue'
import BMap from './components/BMap.vue' import BMap from './components/BMap.vue'
defineOptions({ defineOptions({
name: 'PluginMap', name: 'map',
}) })
const maps = [ const maps = [
{
id: 'AMap',
label: '高德地图',
component: AMap,
},
{ {
id: 'BMap', id: 'BMap',
label: '百度地图', label: '百度地图',
component: BMap, component: BMap,
}, },
{
id: 'AMap',
label: '高德地图',
component: AMap,
},
] ]
</script> </script>