diff --git a/src/components/Pages/ChartItemSetting/StylesSetting.vue b/src/components/Pages/ChartItemSetting/StylesSetting.vue index 7ac4464a..b6dac324 100644 --- a/src/components/Pages/ChartItemSetting/StylesSetting.vue +++ b/src/components/Pages/ChartItemSetting/StylesSetting.vue @@ -82,7 +82,7 @@ import { const props = defineProps({ chartStyles: { - type: Object as PropType>, + type: Object as PropType, 'animations'>>, required: true, }, }) diff --git a/src/views/preview/utils/style.ts b/src/views/preview/utils/style.ts index a0fd37ca..8f2c9085 100644 --- a/src/views/preview/utils/style.ts +++ b/src/views/preview/utils/style.ts @@ -32,7 +32,7 @@ export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => { background: `url(${canvas.backgroundImage}) no-repeat center/100% !important` } return { - position: 'relative', + position: 'relative' as const, width: canvas.width ? `${canvas.width || 100}px` : '100%', height: canvas.height ? `${canvas.height}px` : '100%', ...computedBackground