|
@@ -1,5 +1,13 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="card p-4 mb-3 clickable" @click="$emit('click', task.id)">
|
|
|
|
|
|
|
+ <view
|
|
|
|
|
+ class="card p-4 mb-3 clickable"
|
|
|
|
|
+ hover-class="scale-down"
|
|
|
|
|
+ :class="{
|
|
|
|
|
+ 'border-l-4 border-red-500': task.type === 'emergency',
|
|
|
|
|
+ 'bg-green-50': task.status === 'completed'
|
|
|
|
|
+ }"
|
|
|
|
|
+ @click="$emit('click', task.id)"
|
|
|
|
|
+ >
|
|
|
<view class="flex justify-between items-start mb-2">
|
|
<view class="flex justify-between items-start mb-2">
|
|
|
<view class="flex-1 min-w-0 mr-3">
|
|
<view class="flex-1 min-w-0 mr-3">
|
|
|
<text class="text-sm font-semibold text-gray-800 truncate block">{{ task.projectName || '未命名任务' }}</text>
|
|
<text class="text-sm font-semibold text-gray-800 truncate block">{{ task.projectName || '未命名任务' }}</text>
|
|
@@ -79,3 +87,12 @@ const steps = computed(() => {
|
|
|
]
|
|
]
|
|
|
})
|
|
})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.scale-down {
|
|
|
|
|
+ transition: transform 0.15s ease;
|
|
|
|
|
+}
|
|
|
|
|
+.scale-down:active {
|
|
|
|
|
+ transform: scale(0.95);
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|