mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-25 00:33:00 +08:00
type:解决类型问题
This commit is contained in:
parent
9d3f53c315
commit
a43d5778cb
@ -82,7 +82,7 @@ import {
|
|||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
chartStyles: {
|
chartStyles: {
|
||||||
type: Object as PropType<PickCreateComponentType<'styles'>>,
|
type: Object as PropType<Omit<PickCreateComponentType<'styles'>, 'animations'>>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -32,7 +32,7 @@ export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
|
|||||||
background: `url(${canvas.backgroundImage}) no-repeat center/100% !important`
|
background: `url(${canvas.backgroundImage}) no-repeat center/100% !important`
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
position: 'relative',
|
position: 'relative' as const,
|
||||||
width: canvas.width ? `${canvas.width || 100}px` : '100%',
|
width: canvas.width ? `${canvas.width || 100}px` : '100%',
|
||||||
height: canvas.height ? `${canvas.height}px` : '100%',
|
height: canvas.height ? `${canvas.height}px` : '100%',
|
||||||
...computedBackground
|
...computedBackground
|
||||||
|
Loading…
Reference in New Issue
Block a user