Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VDataIterator): loading prop fix and add new slot "loader" #18811

Prev Previous commit
Next Next commit
Merge branch 'dev' into feature/v-data-iterator-loading-prop-slot
  • Loading branch information
johnleider committed Apr 8, 2024
commit 0faa2925048097b9283b90d853fdf972c1c770df
5 changes: 2 additions & 3 deletions packages/docs/src/pages/en/components/data-iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@ The `v-data-iterator` has both a **header** and **footer** slot for adding extra

Sorting, filters and pagination can be controlled externally by using the individual props

<example file="v-data-iterator/misc-filter" />

<ExamplesExample file="v-data-iterator/misc-filter" />

#### Loader props

Loader can be used to change loader on "loading" prop

<example file="v-data-iterator/slot-loader" />
<ExamplesExample file="v-data-iterator/slot-loader" />
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import type { DataIteratorItem } from './composables/items'
import type { Group } from '@/components/VDataTable/composables/group'
import type { SortItem } from '@/components/VDataTable/composables/sort'
import type { LoaderSlotProps } from '@/composables/loader'
import type { GenericProps } from '@/util'

type VDataIteratorSlotProps<T> = {
page: number
Expand All @@ -58,10 +59,10 @@ type VDataIteratorSlotProps<T> = {
groupedItems: readonly (DataIteratorItem<T> | Group<DataIteratorItem<T>>)[]
}

export type VDataIteratorSlots = {
default: VDataIteratorSlotProps
header: VDataIteratorSlotProps
footer: VDataIteratorSlotProps
export type VDataIteratorSlots<T> = {
default: VDataIteratorSlotProps<T>
header: VDataIteratorSlotProps<T>
footer: VDataIteratorSlotProps<T>
loader: LoaderSlotProps
'no-data': never
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.