Skip to content

Commit 07e79b1

Browse files
Updating docs
1 parent 8f22107 commit 07e79b1

File tree

4 files changed

+81
-667
lines changed

4 files changed

+81
-667
lines changed

src/documentation/components/FeaturesTable.vue

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,34 @@
4141
:sort-by="[{ key: 'name', order: 'asc' }]"
4242
>
4343
<template #[`item.name`]="{ item }">
44-
<span>
45-
<span
46-
:id="`props-${sectionId ? `${sectionId}-${item.raw.name}` : item.raw.name}`"
47-
class="name-item text-mono ml-n2"
48-
>
49-
<span class="text-primary">#</span>
50-
<a
51-
class="text-primary"
52-
:class="classes.appLink"
53-
:href="`#props-${sectionId ? `${sectionId}-${item.raw.name}` : item.raw.name}`"
54-
>{{ item.raw.name }}</a>
55-
</span>
56-
</span>
44+
<div
45+
:id="slugifyString(sectionId, item.raw.name)"
46+
class="name-item text-mono ml-n2"
47+
>
48+
<span class="text-primary">#</span>
49+
<a
50+
class="text-primary"
51+
:class="classes.appLink"
52+
:href="`#${slugifyString(sectionId, item.raw.name)}`"
53+
>{{ item.raw.name }}</a>
54+
</div>
5755
</template>
5856

5957
<template #[`item.type`]="{ item }">
60-
<span class="text-success">
58+
<div class="text-success">
6159
{{ item.raw.type }}
62-
</span>
60+
</div>
6361
</template>
6462

6563
<template #[`item.default`]="{ item }">
66-
<span
64+
<div
6765
class="text-accent"
6866
v-html="item.raw.default"
69-
></span>
67+
></div>
7068
</template>
7169

7270
<template #[`item.desc`]="{ item }">
73-
<span v-html="item.raw.desc"></span>
71+
<div v-html="item.raw.desc"></div>
7472
</template>
7573
</v-data-table>
7674
</v-card>
@@ -80,6 +78,7 @@
8078

8179
<script setup>
8280
import { inject } from 'vue';
81+
import { useSlugifyString } from '@/documentation/composables/slugifyStringHelper';
8382
8483
8584
const classes = inject('classes');
@@ -112,13 +111,22 @@ defineProps({
112111
});
113112
114113
const search = ref('');
114+
115+
function slugifyString(sectionId, name) {
116+
const id = sectionId ? `${sectionId}-${name}` : name;
117+
118+
return useSlugifyString(id);
119+
}
115120
</script>
116121

117122
<style lang="scss">
118123
.features-table {
119124
td {
120125
line-height: 2rem !important;
121-
padding: 0.5rem 16px !important;
126+
127+
> div {
128+
padding: 0.5rem 0 !important;
129+
}
122130
}
123131
}
124132
</style>

src/documentation/sections/PropsSection.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
</h2>
1515

1616
<div>
17-
Most of the Vuetify props for both <code>VDataTable</code> and <code>VDataTableServer</code> components work as
18-
intended. Any specified props below may have different default values. Please refer to the <a
17+
Most of the Vuetify props for both <code class="inline-code">VDataTable</code> and <code
18+
class="inline-code">VDataTableServer</code> components work as intended. Any specified props below may have
19+
different default values. Please refer to the <a
1920
:href="store.links.vuetify"
2021
target="_blank"
2122
>Vuetify</a> documentation for specific props not shown here.

0 commit comments

Comments
 (0)