perf: 图表缩略图禁止操作

This commit is contained in:
zxc 2024-09-13 23:34:27 +08:00
parent b7b11d0dc9
commit 56221df3fc

View File

@ -1,5 +1,6 @@
<template>
<div class="base-element-chart"
:class="{ 'is-thumbnail': target === 'thumbnail' }"
:style="{
top: elementInfo.top + 'px',
left: elementInfo.left + 'px',
@ -44,12 +45,17 @@ import Chart from './Chart.vue'
defineProps<{
elementInfo: PPTChartElement
target?: string
}>()
</script>
<style lang="scss" scoped>
.base-element-chart {
position: absolute;
&.is-thumbnail {
pointer-events: none;
}
}
.rotate-wrapper {
width: 100%;