We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d6bf7 commit 284c177Copy full SHA for 284c177
packages/examples/resource-manager/components/Dashboard.tsx
@@ -95,13 +95,13 @@ export function Dashboard({
95
<div class="w-full bg-gray-200 rounded-full h-2">
96
<div
97
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,
+ style={computed(
+ () =>
+ `width: ${
+ (stats.value.byType.server / stats.value.total) * 100
+ }%`,
103
)}
104
- %
+ >
105
</div>
106
107
0 commit comments