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