docs: update responsive breadcrumb example (#933)
This commit is contained in:
parent
5ada562803
commit
857f10de51
|
|
@ -42,7 +42,7 @@ const itemsToDisplay = 3
|
||||||
const firstLabel = computed(() => items.value[0]?.label)
|
const firstLabel = computed(() => items.value[0]?.label)
|
||||||
|
|
||||||
const allButLastTwoItems = computed(() => items.value.slice(1, -2))
|
const allButLastTwoItems = computed(() => items.value.slice(1, -2))
|
||||||
const remainingItems = computed(() => items.value.slice(-itemsToDisplay + 1))
|
const remainingItems = computed(() => items.value.slice(-Math.min(itemsToDisplay, items.value.length) + 1))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ const itemsToDisplay = 3
|
||||||
const firstLabel = computed(() => items.value[0]?.label)
|
const firstLabel = computed(() => items.value[0]?.label)
|
||||||
|
|
||||||
const allButLastTwoItems = computed(() => items.value.slice(1, -2))
|
const allButLastTwoItems = computed(() => items.value.slice(1, -2))
|
||||||
const remainingItems = computed(() => items.value.slice(-itemsToDisplay + 1))
|
const remainingItems = computed(() => items.value.slice(-Math.min(itemsToDisplay, items.value.length) + 1))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user