mirror of
https://gitee.com/dromara/go-view.git
synced 2025-05-14 15:20:44 +08:00
33 lines
1.2 KiB
Vue
33 lines
1.2 KiB
Vue
<!-- eslint-disable vue/no-mutating-props -->
|
|
<template>
|
|
<!-- Echarts 全局设置 -->
|
|
<global-setting :optionData="optionData" :in-chart="true"></global-setting>
|
|
|
|
<CollapseItem :name="`散点`" expanded v-for="(item, index) in optionData.series" :key="index">
|
|
<SettingItemBox name="样式">
|
|
<SettingItem name="类型">
|
|
<n-select v-model:value="item.type" size="small" :options="ScatterEffectTypeEnumList" placeholder="选择" />
|
|
</SettingItem>
|
|
<SettingItem name="大小">
|
|
<n-input-number v-model:value="item.symbolSize" size="small" :min="1"></n-input-number>
|
|
</SettingItem>
|
|
</SettingItemBox>
|
|
</CollapseItem>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { PropType } from 'vue'
|
|
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
|
|
import { GlobalSetting, CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
|
import { option } from './config'
|
|
import { ScatterEffectTypeEnumList } from '../shard'
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
const props = defineProps({
|
|
optionData: {
|
|
type: Object as PropType<GlobalThemeJsonType & typeof option>,
|
|
required: true
|
|
}
|
|
})
|
|
</script>
|