mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
feat: 还原修改成组旋转的问题,优化预览放大的交互
This commit is contained in:
parent
9127e6f44c
commit
d0d031d1bb
@ -46,11 +46,14 @@ const props = defineProps({
|
|||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
groupIndex: {
|
groupIndex: {
|
||||||
type: [String, Number],
|
type: Number,
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.chart-item {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -23,6 +23,8 @@ export const useScale = (localStorageInfo: ChartEditStorageType) => {
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
removeEvent()
|
removeEvent()
|
||||||
|
const fitDom = document.querySelector(".go-preview.fit") as HTMLElement
|
||||||
|
if (fitDom) fitDom.style.overflow = 'auto'
|
||||||
const transform = previewRef.value.style.transform
|
const transform = previewRef.value.style.transform
|
||||||
// 使用正则解析 scale(1, 1) 中的两个数值
|
// 使用正则解析 scale(1, 1) 中的两个数值
|
||||||
const regRes = transform.match(/scale\((\d+\.?\d*)*/) as RegExpMatchArray
|
const regRes = transform.match(/scale\((\d+\.?\d*)*/) as RegExpMatchArray
|
||||||
|
Loading…
x
Reference in New Issue
Block a user