Components
BaseDataTableMobileRow
The compact two-line row a list shows on phones.
components/ui/table/BaseDataTableMobileRow.vue
View in the demo
Example
Put it in the #mobile-row slot of BaseDataTable. Below 600px the table drops its header and renders one of these per record instead of label/value stacks: a leading tile, the title and its value, then a subtitle and a status, plus anything you add in the default slot (the orders list adds its delivery progress there).
Laptop Pro 15"$1,299.99
PRD-001 · Electronics
Active
API
Props
Name | Type | Default | Description |
|---|---|---|---|
title | string | — | The record name. Use the #title slot for a link. |
subtitle | string | — | The second line, such as a code and a category. |
inactive | boolean | false | Tints the row like the archived or inactive rows of the desktop table. |
Slots
Name | Slot props | Description |
|---|---|---|
#leading | — | An icon tile or avatar before the text. |
#title | — | Replaces the title, for example with a NuxtLink. |
#value | — | The figure at the end of the first line. |
#subtitle | — | Replaces the subtitle. |
#status | — | A status chip at the end of the second line. |
#default | — | Extra content under the two lines. |