修复demo和编译/运行警告问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user