修改组态化

master
夜笙歌 2 months ago
parent 8588bd27ab
commit ee8ddb5bdc

@ -200,7 +200,7 @@ const getOption = () => {
}; };
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart.setOption(getOption(), true); chart.setOption(getOption(), true);
}); });

@ -207,7 +207,7 @@ const getOption = () => {
}; };
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart.setOption(getOption(), true); chart.setOption(getOption(), true);
}); });

@ -84,7 +84,7 @@ const getOption = () => {
}; };
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart.setOption(getOption(), true); chart.setOption(getOption(), true);
}); });

@ -207,7 +207,7 @@ const getOption = () => {
}; };
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart.setOption(getOption(), true); chart.setOption(getOption(), true);
}); });

@ -209,7 +209,7 @@ const getOption = () => {
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart && chart.setOption(getOption(), true); chart && chart.setOption(getOption(), true);
}); });

@ -216,7 +216,7 @@ const getOption = () => {
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart && chart.setOption(getOption(), true); chart && chart.setOption(getOption(), true);
}); });

@ -216,7 +216,7 @@ const getOption = () => {
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart && chart.setOption(getOption(), true); chart && chart.setOption(getOption(), true);
}); });

@ -103,7 +103,7 @@ const getOption = () => {
radius: '50%', radius: '50%',
label: { label: {
formatter: '{b}: {d}%' formatter: '{b}: {d}%'
}, }
} }
] ]
}; };
@ -130,7 +130,7 @@ const getOption = () => {
}; };
onMounted(() => { onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', { chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使 SVG renderer: 'svg'
}); });
chart.setOption(getOption(), true); chart.setOption(getOption(), true);
}); });

@ -7,7 +7,7 @@
<div class="custom-node" <div class="custom-node"
:style="{textAlign:props.data.options.align,width:props.dimensions.width+'px',lineHeight:props.dimensions.height+'px',height:props.dimensions.height+'px',pointerEvents:props.isView?'auto': 'none'}"> :style="{textAlign:props.data.options.align,width:props.dimensions.width+'px',lineHeight:props.dimensions.height+'px',height:props.dimensions.height+'px',pointerEvents:props.isView?'auto': 'none'}">
<span <span
:style="{color:props.data.options.color}">{{ props.inputData?.text || props.data.options.text :style="{color:props.data.options.color,fontSize:props.dimensions.height+'px'}">{{ props.inputData?.text || props.data.options.text
}}</span> }}</span>
</div> </div>
<Handle v-if="!props.isView" :id="`${props.id}.-t`" type="target" :position="Position.Left" /> <Handle v-if="!props.isView" :id="`${props.id}.-t`" type="target" :position="Position.Left" />

Loading…
Cancel
Save