添加了集成能源模块的两个3D饼图组件:能耗占比和费用概况。包括: - 新增组件配置文件、数据文件和3D渲染逻辑 - 实现3D饼图的基础配置和交互功能 - 添加时间选择下拉组件 - 集成到主图表索引文件 - 包含样式和动画效果优化 组件支持数据动态更新和主题配置,使用echarts-gl实现3D效果
26 lines
706 B
Vue
26 lines
706 B
Vue
<template>
|
|
<div>
|
|
<!-- 基础配置可以复用PieCommon的配置面板 -->
|
|
<CollapseItem name="基础配置" :expanded="true">
|
|
<SettingItemBox name="图例">
|
|
<SettingItem name="显示">
|
|
<n-switch v-model:value="optionData.legend.show" size="small" />
|
|
</SettingItem>
|
|
</SettingItemBox>
|
|
</CollapseItem>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { PropType } from 'vue'
|
|
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
|
import { NSwitch } from 'naive-ui'
|
|
import { option } from './config'
|
|
|
|
defineProps({
|
|
optionData: {
|
|
type: Object as PropType<typeof option>,
|
|
required: true
|
|
}
|
|
})
|
|
</script> |