|
@@ -35,6 +35,8 @@ const option = computed(() => {
|
|
|
const attr = toRef(props.chartData, 'attr')
|
|
const attr = toRef(props.chartData, 'attr')
|
|
|
const wrapperStyle = computed(() => {
|
|
const wrapperStyle = computed(() => {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ left: `${attr.value.x}px`,
|
|
|
|
|
+ top: `${attr.value.y}px`,
|
|
|
width: `${attr.value.w}px`,
|
|
width: `${attr.value.w}px`,
|
|
|
height: `${attr.value.h}px`,
|
|
height: `${attr.value.h}px`,
|
|
|
}
|
|
}
|