Commit e25c4efa authored by zhengke's avatar zhengke

数据绑定 和平显示

parent 764b9311
<template>
<div class="element-data-mapping" v-if="handleElement && handleElement.dataMapping">
<div class="element-data-mapping" v-if="handleElement && handleElement.dataMapping&&userInfo.isp==2">
<divider />
<div class="q-mb-md row items-center">
<div class="text-small col">数据绑定</div>
......@@ -39,7 +38,7 @@ import Divider from '@/components/Divider.vue'
import { VIEWPORT_SIZE, VIEWPORT_VER_SIZE } from '@/configs/canvas';
import useHistorySnapshot from '@/hooks/useHistorySnapshot';
import FileService from '@/services/FileService';
import { useMainStore, useSlidesStore, useScreenStore } from '@/store';
import { useMainStore, useSlidesStore, useScreenStore, useUserStore } from '@/store';
import { SlideDataSource, TravelDetail, injectKeyDataSource } from '@/types/injectKey';
import { PPTImageElement } from '@/types/slides';
import { getHtmlPlainText } from '@/utils/common';
......@@ -63,6 +62,8 @@ const updateUnionElement = ref<boolean>(true)
const loading = ref<boolean>(false)
const loadingObj = ref<any>('')
const query = ref<string>('')
const useUser = useUserStore();
const { userInfo } = storeToRefs(useUser);
let maxWidth = VIEWPORT_SIZE,maxHeight = VIEWPORT_VER_SIZE.Value, viewportRatio = slidesStore.viewportRatio
if(viewportRatio<1){
maxWidth = VIEWPORT_VER_SIZE.Value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment