fix: 处理位置定位的问题

This commit is contained in:
mtruning
2022-01-25 22:41:12 +08:00
parent 62f012f2e9
commit 01e2ba6db9
2 changed files with 14 additions and 5 deletions
@@ -35,6 +35,8 @@ const option = computed(() => {
const attr = toRef(props.chartData, 'attr')
const wrapperStyle = computed(() => {
return {
left: `${attr.value.x}px`,
top: `${attr.value.y}px`,
width: `${attr.value.w}px`,
height: `${attr.value.h}px`,
}