Quellcode durchsuchen

fix: 移除冗余代码

jiaxing.liao vor 1 Woche
Ursprung
Commit
62ae3f226f

+ 0 - 2
src/renderer/src/lvgl-widgets/list/List.vue

@@ -52,7 +52,6 @@ import { useWidgetStyle } from '../hooks/useWidgetStyle'
 import { useResizeObserver } from 'vue-hooks-plus'
 import { getSymbol } from '@/utils'
 import ImageBg from '../ImageBg.vue'
-import { useProjectStore } from '@/store/modules/project'
 
 import type { ListItem } from './data'
 
@@ -75,7 +74,6 @@ const containerRef = ref<HTMLDivElement>()
 const contentRef = ref<HTMLDivElement>()
 const conHeight = ref(0)
 const bodyHeight = ref(0)
-const projectStore = useProjectStore()
 
 useResizeObserver(containerRef, (entries) => {
   const entry = entries[0]

+ 0 - 1
src/renderer/src/lvgl-widgets/window/index.tsx

@@ -5,7 +5,6 @@ import type { IComponentModelConfig } from '../type'
 import i18n from '@/locales'
 import defaultStyle from './style.json'
 import Config from './Config.vue'
-import label from '../label'
 
 export default {
   label: i18n.global.t('window'),

+ 1 - 1
src/renderer/src/views/designer/workspace/stage/Moveable.vue

@@ -61,7 +61,7 @@ import { useAppStore } from '@/store/modules/app'
 import type { StageState } from './type'
 import { has } from 'lodash-es'
 
-const props = defineProps<{
+defineProps<{
   // 父级容器 拖拽缩放设置
   rootContainer: HTMLElement
   pageId?: string