<template>
  <div  class="go-title-01">
    <img :width="w" :height="h" src="/src/assets/images/chart/decorates/feixianmap.png" />
  </div>
</template>

<script setup lang="ts">
import { PropType, toRefs } from 'vue'
import { CreateComponentType } from '@/packages/index.d'

const props = defineProps({
  chartConfig: {
    type: Object as PropType<CreateComponentType>,
    required: true
  }
})

const { w, h } = toRefs(props.chartConfig.attr)
</script>

<style lang="scss" scoped>
@include go('title-01') {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; 

  svg {
    position: absolute;
    z-index: -1;
  }

  .text {
    color: v-bind('borderTitleColor');
    font-size: v-bind('borderTitleSize+"px"');
  }
}
</style>
