Skip to content

Commit dbc205d

Browse files
committed
refactor: merge
1 parent aa82714 commit dbc205d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

frontend/src/views/dashboard/canvas/CanvasCore.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,8 @@ function startMove(e: MouseEvent, item: CanvasItem, index: number) {
935935
)
936936
if (curActiveMoveInSQTab) {
937937
if (curActiveMoveInSQTab.moveInActive) {
938-
// @ts-ignore
939938
const refTabInstance =
939+
// @ts-ignore
940940
currentInstance.refs['shape_component_' + curActiveMoveInSQTab.id][0]
941941
refTabInstance.addTabItem(moveItem)
942942
removeItemById(moveItem.id)

frontend/src/views/dashboard/components/sq-tab/index.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
onMounted,
1111
} from 'vue'
1212
import CustomTab from '@/views/dashboard/components/sq-tab/CustomTab.vue'
13-
import { guid, type CanvasItem } from '@/utils/canvas.ts'
13+
import {guid, type CanvasItem} from '@/utils/canvas.ts'
1414
import DragHandle from '@/views/dashboard/canvas/DragHandle.vue'
15-
import { ArrowDown } from '@element-plus/icons-vue'
15+
import {ArrowDown} from '@element-plus/icons-vue'
1616
import DashboardEditor from '@/views/dashboard/editor/DashboardEditor.vue'
1717
1818
const editableTabsValue = ref(null)
@@ -48,7 +48,7 @@ const props = defineProps({
4848
},
4949
})
5050
51-
const { configItem } = toRefs(props)
51+
const {configItem} = toRefs(props)
5252
5353
const state = reactive({
5454
activeTabName: '',
@@ -131,8 +131,8 @@ const isEditMode = computed(() => true)
131131
132132
const addTabItem = (item: CanvasItem) => {
133133
// do addTabItem
134-
// @ts-ignore
135134
const index = configItem.value.propValue.findIndex(
135+
// @ts-ignore
136136
(tabItem) => configItem.value.activeTabName === tabItem.name
137137
)
138138
// @ts-ignore
@@ -178,15 +178,15 @@ defineExpose({
178178
<template #label>
179179
<div class="custom-tab-title" @mousedown.stop>
180180
<span class="title-inner" :style="titleStyle(tabItem.name)"
181-
>{{ tabItem.title }}
181+
>{{ tabItem.title }}
182182
<span v-if="isEditMode">
183183
<el-dropdown
184184
popper-class="custom-de-tab-dropdown"
185185
trigger="click"
186186
@command="handleCommand"
187187
>
188188
<span class="el-dropdown-link">
189-
<el-icon v-if="isEditMode"><ArrowDown /></el-icon>
189+
<el-icon v-if="isEditMode"><ArrowDown/></el-icon>
190190
</span>
191191
<template #dropdown>
192192
<el-dropdown-menu>

0 commit comments

Comments
 (0)