Skip to content

Commit 284c177

Browse files
committed
fix: example style
1 parent 82d6bf7 commit 284c177

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/examples/resource-manager/components/Dashboard.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ export function Dashboard({
9595
<div class="w-full bg-gray-200 rounded-full h-2">
9696
<div
9797
class="bg-blue-500 h-2 rounded-full"
98-
style={`width: 50%`}
99-
>
100-
{iif(
101-
stats,
102-
(val: any) => (val.byType.server / val.total) * 100,
98+
style={computed(
99+
() =>
100+
`width: ${
101+
(stats.value.byType.server / stats.value.total) * 100
102+
}%`,
103103
)}
104-
%
104+
>
105105
</div>
106106
</div>
107107
</div>

0 commit comments

Comments
 (0)