2022-01-08 21:01:52 +08:00
|
|
|
<template>
|
2022-02-04 18:28:02 +08:00
|
|
|
<div class="go-chart-content-details">
|
2022-02-24 17:23:20 +08:00
|
|
|
<GlobalSetting
|
|
|
|
v-if="targetData"
|
|
|
|
:data="targetData.option"
|
|
|
|
:in-chart="true"
|
|
|
|
/>
|
2022-01-08 21:01:52 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-02-24 17:23:20 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { computed } from 'vue'
|
|
|
|
import { loadAsyncComponent } from '@/utils'
|
|
|
|
import { useChartEditStoreStore } from '@/store/modules/chartEditStore/chartEditStore'
|
|
|
|
import { GlobalSetting } from '@/components/ChartItemSetting/index'
|
|
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
|
|
|
|
|
|
const GlobalSettingCom = loadAsyncComponent(() =>
|
|
|
|
import('@/components/ChartItemSetting/index')
|
|
|
|
)
|
|
|
|
const chartEditStoreStore = useChartEditStoreStore()
|
|
|
|
|
|
|
|
const targetData = computed(() => {
|
|
|
|
const list = chartEditStoreStore.getComponentList
|
|
|
|
const targetIndex = chartEditStoreStore.fetchTargetIndex()
|
|
|
|
return list[targetIndex]
|
|
|
|
})
|
|
|
|
</script>
|
2022-01-08 21:01:52 +08:00
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-02-04 18:28:02 +08:00
|
|
|
@include go('chart-content-details') {
|
|
|
|
}
|
2022-02-07 20:55:40 +08:00
|
|
|
</style>
|