mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-12 00:00:01 +08:00
fix: 修改类型报错
This commit is contained in:
@@ -17,6 +17,7 @@ import { usePreviewScale } from '@/hooks/index'
|
||||
import { RenderList } from './components/RenderList/index'
|
||||
import { ChartEditStorageType } from './index.d'
|
||||
import { getLocalStorageInfo } from './utils/index'
|
||||
import { useEditCanvasConfigStyle } from './hooks/useStyle.hook'
|
||||
|
||||
const previewRef = ref()
|
||||
|
||||
@@ -25,13 +26,8 @@ const localStorageInfo: ChartEditStorageType = getLocalStorageInfo() as ChartEdi
|
||||
const width = ref(localStorageInfo?.editCanvasConfig.width)
|
||||
const height = ref(localStorageInfo?.editCanvasConfig.height)
|
||||
|
||||
const previewRefStyle = computed(() => {
|
||||
return {
|
||||
position: 'relative',
|
||||
width: width.value ? `${width.value || 100}px` : '100%',
|
||||
height: height.value ? `${height.value}px` : '100%',
|
||||
border: '1px solid red'
|
||||
}
|
||||
const previewRefStyle: any = computed(() => {
|
||||
return useEditCanvasConfigStyle(localStorageInfo.editCanvasConfig)
|
||||
})
|
||||
|
||||
if (!localStorageInfo) {
|
||||
|
||||
Reference in New Issue
Block a user