|
1 | 1 | <template> |
2 | 2 | <v-row> |
3 | | - <v-col id="props" class="mb-5" cols="12"> |
| 3 | + <v-col |
| 4 | + id="props" |
| 5 | + class="mb-5" |
| 6 | + cols="12" |
| 7 | + > |
4 | 8 | <h2 :class="classes.h2"> |
5 | | - <a :class="classes.headerA" href="#props">#</a> |
| 9 | + <a |
| 10 | + :class="classes.headerA" |
| 11 | + href="#props" |
| 12 | + >#</a> |
6 | 13 | Props |
7 | 14 | </h2> |
8 | 15 |
|
|
13 | 20 | <v-row id="additional-props"> |
14 | 21 | <v-col cols="12"> |
15 | 22 | <h3 :class="classes.h3"> |
16 | | - <a :class="classes.headerA" href="#additional-props">#</a> |
| 23 | + <a |
| 24 | + :class="classes.headerA" |
| 25 | + href="#additional-props" |
| 26 | + >#</a> |
17 | 27 | Additional props |
18 | 28 | </h3> |
19 | 29 | </v-col> |
|
50 | 60 | class="text-primary" |
51 | 61 | :class="classes.appLink" |
52 | 62 | :href="`#props-${item.raw.name}`" |
53 | | - >{{ item.raw.name }}</a |
54 | | - > |
| 63 | + >{{ item.raw.name }}</a> |
55 | 64 | </span> |
56 | 65 | </td> |
57 | 66 | </template> |
|
63 | 72 | </template> |
64 | 73 |
|
65 | 74 | <template #[`item.default`]="{ item }"> |
66 | | - <td class="text-accent" v-html="item.raw.default"></td> |
| 75 | + <td |
| 76 | + class="text-accent" |
| 77 | + v-html="item.raw.default" |
| 78 | + ></td> |
67 | 79 | </template> |
68 | 80 |
|
69 | 81 | <template #[`item.desc`]="{ item }"> |
|
77 | 89 | <v-row id="props-not-supported"> |
78 | 90 | <v-col cols="12"> |
79 | 91 | <h3 :class="classes.h3"> |
80 | | - <a :class="classes.headerA" href="#props-not-supported">#</a> |
| 92 | + <a |
| 93 | + :class="classes.headerA" |
| 94 | + href="#props-not-supported" |
| 95 | + >#</a> |
81 | 96 | Props with partial and/or no support |
82 | 97 | </h3> |
83 | 98 | </v-col> |
|
103 | 118 | class="text-primary" |
104 | 119 | :class="classes.appLink" |
105 | 120 | :href="`#props-${item.raw.name}`" |
106 | | - >{{ item.raw.name }}</a |
107 | | - > |
| 121 | + >{{ item.raw.name }}</a> |
108 | 122 | </span> |
109 | 123 | </td> |
110 | 124 | </template> |
@@ -142,18 +156,20 @@ import { |
142 | 156 | // watch, |
143 | 157 | } from 'vue'; |
144 | 158 | // import { DrawerOptions } from '@/types'; |
| 159 | +import { DocClasses } from '@/components/types'; |
| 160 | +
|
| 161 | +const classes = inject<DocClasses>('classes'); |
145 | 162 |
|
146 | | -const emit = defineEmits(['updateOptions']); |
| 163 | +// const emit = defineEmits(['updateOptions']); |
147 | 164 |
|
148 | 165 | // const links: string[] = inject('links'); |
149 | | -const classes: string[] = inject('classes'); |
150 | 166 | // const drawerOptions: DrawerOptions = inject('drawerOptions'); |
151 | 167 | // const handleColor: string = ref(''); |
152 | 168 |
|
153 | 169 | // const defaultOptions: DrawerOptions = {}; |
154 | 170 | // const dialog: boolean = ref(false); |
155 | 171 | // const options: DrawerOptions = ref(drawerOptions); |
156 | | -const propsSupported: object[] = reactive({ |
| 172 | +const propsSupported = reactive<object>({ |
157 | 173 | headers: [ |
158 | 174 | { |
159 | 175 | align: 'start', |
@@ -195,7 +211,7 @@ const propsSupported: object[] = reactive({ |
195 | 211 | }, |
196 | 212 | ], |
197 | 213 | }); |
198 | | -const propsNotSupported: object[] = reactive({ |
| 214 | +const propsNotSupported = reactive<object>({ |
199 | 215 | headers: [ |
200 | 216 | { |
201 | 217 | align: 'start', |
@@ -229,7 +245,7 @@ const propsNotSupported: object[] = reactive({ |
229 | 245 | }, |
230 | 246 | ], |
231 | 247 | }); |
232 | | -const search: string = ref(''); |
| 248 | +const search = ref<string>(''); |
233 | 249 |
|
234 | 250 |
|
235 | 251 | </script> |
|
0 commit comments