feat: 新增编辑阶段 mock 接口轮询请求功能

This commit is contained in:
MTrun
2022-03-23 20:41:50 +08:00
parent c42e9ad0fb
commit 2d7db3f0f6
22 changed files with 117 additions and 70 deletions
+2
View File
@@ -19,6 +19,7 @@ import { PreviewRenderList } from './components/PreviewRenderList'
import { getEditCanvasConfigStyle, getSessionStorageInfo } from './utils'
import { useComInstall } from './hooks/useComInstall.hook'
import { useScale } from './hooks/useScale.hook'
import { useStore } from './hooks/useStore.hook'
import type { ChartEditStorageType } from './index.d'
const localStorageInfo: ChartEditStorageType = getSessionStorageInfo() as ChartEditStorageType
@@ -27,6 +28,7 @@ const previewRefStyle: any = computed(() => {
return getEditCanvasConfigStyle(localStorageInfo.editCanvasConfig)
})
useStore(localStorageInfo)
const { previewRef } = useScale(localStorageInfo)
const { show } = useComInstall(localStorageInfo)
</script>