wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<script setup lang="ts">
import { reactive } from 'vue'
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
import { storeToRefs } from 'pinia'
import DeCanvas from '@/views/canvas/DeCanvas.vue'
const dvMainStore = dvMainStoreWithOut()
 
const { componentData, canvasStyleData, canvasViewInfo } = storeToRefs(dvMainStore)
 
const state = reactive({
  canvasId: 'canvas-main'
})
</script>
 
<template>
  <div class="dv-common-layout-mobile">
    <de-canvas
      style="overflow-x: hidden"
      :canvas-id="state.canvasId"
      :component-data="componentData"
      :canvas-style-data="canvasStyleData"
      :canvas-view-info="canvasViewInfo"
      :font-family="canvasStyleData.fontFamily"
    ></de-canvas>
  </div>
</template>
 
<style lang="less">
.dv-common-layout-mobile {
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
}
</style>