VDataTableRows API
组件页面
属性
名称 | 类型 | 默认值 |
---|---|---|
cell-props | ||
An object of additional props to be passed to each <td> in the table body. Also accepts a function that will be called for each cell. If the same prop is defined both here and in cellProps in a headers object, the value from the headers object will be used. | ||
hide-no-data | ||
Hides the menu when there are no options to show. Useful for preventing the menu from opening before results are fetched asynchronously. Also has the effect of opening the menu when the items array changes if not already open. | ||
items | ||
An array of strings or objects used for automatically generating children components. | ||
loading | ||
Displays loading slot if set to true | ||
loading-text | ||
Text shown when the data is loading. | ||
mobile | ||
Determines the display mode of the component. If true, the component will be displayed in mobile mode. If false, the component will be displayed in desktop mode. If null, will be based on the current mobile-breakpoint | ||
mobile-breakpoint | ||
Overrides the display configuration default screen size that the component should be considered in mobile. | ||
no-data-text | ||
Text shown when no items are provided to the component. | ||
row-props | ||
An object of additional props to be passed to each <tr> in the table body. Also accepts a function that will be called for each row. |
插槽
data-table-group |
Slot for custom rendering of a group. |
data-table-select |
Slot for custom rendering of a header cell with the select checkbox. |
expanded-row |
Slot for custom rendering of an expanded row. |
group-header |
Slot for custom rendering of a group header. |
header.data-table-expand |
MISSING DESCRIPTION (edit in github ) |
header.data-table-select |
MISSING DESCRIPTION (edit in github ) |
item |
Define a custom item appearance. |
item.data-table-expand |
Slot for custom rendering of a row cell with the expand icon. |
item.data-table-select |
Slot for custom rendering of a row cell with the select checkbox. |
loading |
Slot for custom rendering of the loading state. |
no-data |
Defines content for when no items are provided. |
[`header.${string}`] |
MISSING DESCRIPTION (edit in github ) |
[`item.${string}`] |
MISSING DESCRIPTION (edit in github ) |