修复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 -3
View File
@@ -6,14 +6,12 @@ interface Props {
type: 'task-row' | 'task-bar'
}
const props = withDefaults(defineProps<Props>(), {
color: '#409eff',
progress: 0,
})
// console.error('props', props)
</script>
<template>
<div class="html-content-card" :style="{ borderColor: color }">
<div class="html-content-card">
<div v-if="type==='task-row'" class="task-row" v-html="task.name" />
<div v-else-if="type==='task-bar'" class="task-bar" v-html="task.name" />
</div>