-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Benjamin Canac <[email protected]>
- Loading branch information
1 parent
8b7a013
commit 874447c
Showing
3 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script setup> | ||
const columns = [{ | ||
key: 'id', | ||
label: '#' | ||
}, { | ||
key: 'quantity', | ||
label: 'Quantity', | ||
class: 'italic' | ||
}, { | ||
key: 'name', | ||
label: 'Name' | ||
}] | ||
const items = [{ | ||
id: 1, | ||
name: 'Apple', | ||
quantity: { value: 100, class: 'bg-green-500/50 dark:bg-green-400/50' } | ||
}, { | ||
id: 2, | ||
name: 'Orange', | ||
quantity: { value: 0 }, | ||
class: 'bg-red-500/50 dark:bg-red-400/50 animate-pulse' | ||
}, { | ||
id: 3, | ||
name: 'Banana', | ||
quantity: { value: 30, class: 'bg-green-500/50 dark:bg-green-400/50' } | ||
}, { | ||
id: 4, | ||
name: 'Mango', | ||
quantity: { value: 5, class: 'bg-green-500/50 dark:bg-green-400/50' } | ||
}] | ||
</script> | ||
|
||
<template> | ||
<UTable :rows="items" :columns="columns"> | ||
<template #quantity-data="{ row }"> | ||
{{ row.quantity.value }} | ||
</template> | ||
</UTable> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
874447c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ui – ./
ui-nuxt-js.vercel.app
ui.nuxt.com
ui-git-dev-nuxt-js.vercel.app