perf: change icon color when filtering description field

This commit is contained in:
putyy
2025-11-30 12:52:43 +08:00
committed by putyy
parent 00b4bf4068
commit dc877bd634

View File

@@ -352,7 +352,7 @@ const columns = ref<any[]>([
}, {
trigger: () => h(NIcon, {
size: "18",
class: "ml-1 text-gray-500 cursor-pointer",
class: `ml-1 cursor-pointer ${descriptionSearchValue.value ? "text-green-600": "text-gray-500"}`,
onClick: (e: MouseEvent) => e.stopPropagation()
}, h(SearchOutline)),
default: () => h('div', {class: 'p-2 w-64'}, [