mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 修改一点类型错误的问题
This commit is contained in:
parent
d7965c5857
commit
151ec13904
@ -12,8 +12,8 @@ export enum EditCanvasTypeEnum {
|
|||||||
}
|
}
|
||||||
export type EditCanvasType = {
|
export type EditCanvasType = {
|
||||||
// 编辑区域 DOM
|
// 编辑区域 DOM
|
||||||
[EditCanvasTypeEnum.EDITLAYOUTDOM]?: HTMLElement
|
[EditCanvasTypeEnum.EDITLAYOUTDOM]: HTMLElement | null
|
||||||
[EditCanvasTypeEnum.EDITCONTENTDON]?: HTMLElement
|
[EditCanvasTypeEnum.EDITCONTENTDON]: HTMLElement | null
|
||||||
// 大屏宽度
|
// 大屏宽度
|
||||||
[EditCanvasTypeEnum.WIDTH]: number
|
[EditCanvasTypeEnum.WIDTH]: number
|
||||||
// 大屏高度
|
// 大屏高度
|
||||||
|
@ -12,8 +12,8 @@ export const useChartEditStoreStore = defineStore({
|
|||||||
state: (): chartEditStoreType => ({
|
state: (): chartEditStoreType => ({
|
||||||
editCanvas: {
|
editCanvas: {
|
||||||
// 编辑区域 Dom
|
// 编辑区域 Dom
|
||||||
editLayoutDom: undefined,
|
editLayoutDom: null,
|
||||||
editContentDom: undefined,
|
editContentDom: null,
|
||||||
// 默认宽度
|
// 默认宽度
|
||||||
width: 1920,
|
width: 1920,
|
||||||
// 默认高度
|
// 默认高度
|
||||||
@ -54,7 +54,6 @@ export const useChartEditStoreStore = defineStore({
|
|||||||
): void {
|
): void {
|
||||||
const dom = this.getEditCanvas.editContentDom
|
const dom = this.getEditCanvas.editContentDom
|
||||||
if (dom) {
|
if (dom) {
|
||||||
// @ts-ignore
|
|
||||||
dom.style[key] = value
|
dom.style[key] = value
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -68,7 +68,7 @@ const themeColor = ref(designStore.getAppTheme)
|
|||||||
|
|
||||||
const chartEditStore = getChartEditStore()
|
const chartEditStore = getChartEditStore()
|
||||||
const chartEditStoreEnum = getChartEditStoreEnum()
|
const chartEditStoreEnum = getChartEditStoreEnum()
|
||||||
const { lockScale, scale, userScale } = toRefs(chartEditStore.getEditCanvas)
|
const { lockScale, scale } = toRefs(chartEditStore.getEditCanvas)
|
||||||
|
|
||||||
// 缩放选项
|
// 缩放选项
|
||||||
let filterOptions = reactive([
|
let filterOptions = reactive([
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, onUnmounted, onMounted, computed } from 'vue'
|
import { onUnmounted, onMounted } from 'vue'
|
||||||
import { ContentBox } from '../ContentBox/index'
|
import { ContentBox } from '../ContentBox/index'
|
||||||
import { EditRange } from './components/EditRange'
|
import { EditRange } from './components/EditRange'
|
||||||
import { EditBottom } from './components/EditBottom'
|
import { EditBottom } from './components/EditBottom'
|
||||||
@ -50,7 +50,6 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
computed(() => { })
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user