修复demo和编译/运行警告问题

This commit is contained in:
qiuchengw
2025-09-25 10:06:21 +08:00
parent f8d6dc6304
commit b83e643060
6 changed files with 205 additions and 96 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, watch, defineProps, defineEmits, computed } from 'vue'
import { ref, watch, computed } from 'vue'
import { useI18n } from '../composables/useI18n'
const props = defineProps({
visible: Boolean,
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, onUnmounted, onMounted, computed, watch, nextTick, defineEmits } from 'vue'
import { ref, onUnmounted, onMounted, computed, watch, nextTick } from 'vue'
import TaskList from './TaskList.vue'
import Timeline from './Timeline.vue'
import GanttToolbar from './GanttToolbar.vue'
-1
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { defineProps, defineEmits } from 'vue'
import '../styles/app.css'
const props = defineProps({
visible: Boolean,
+3 -3
View File
@@ -39,7 +39,7 @@ const emit = defineEmits([
'add-predecessor',
'add-successor',
'delete',
'contextmenu', // 添加原生contextmenu事件声明
'context-menu',
])
const slots = useSlots()
@@ -1331,9 +1331,9 @@ onUnmounted(() => {
:row-height="rowHeight"
:day-width="dayWidth"
/>
<block v-else>
<template v-else>
{{ task.name }} ({{ task.progress || 0 }}%)
</block>
</template>
</div>
<!-- 完成进度条非父级任务 -->