UNPKG

9.48 kBJSONView Raw
1{
2 "$schema": "http://json.schemastore.org/web-types",
3 "name": "@nuxt/vue-app",
4 "framework": "vue",
5 "version": "2.13.1",
6 "contributions": {
7 "html": {
8 "description-markup": "markdown",
9 "types-syntax": "typescript",
10 "tags": [
11 {
12 "name": "Nuxt",
13 "description": "This component is used only in layouts to display the page components.",
14 "doc-url": "https://nuxtjs.org/api/components-nuxt",
15 "attributes": [
16 {
17 "name": "next-child-key",
18 "value": {
19 "kind": "expression",
20 "type": "string"
21 },
22 "default": "$route.path",
23 "description": "This prop will be set to `<router-view/>`, useful to make transitions inside a dynamic page and different route."
24 },
25 {
26 "name": "name",
27 "value": {
28 "kind": "expression",
29 "type": "string"
30 },
31 "default": "default",
32 "description": "This prop will be set to `<router-view/>`, used to render `named-view` of page component."
33 },
34 {
35 "name": "keep-alive",
36 "value": {
37 "kind": "expression",
38 "type": "boolean"
39 }
40 },
41 {
42 "name": "keep-alive-props",
43 "value": {
44 "kind": "expression",
45 "type": "object"
46 }
47 }
48 ]
49 },
50 {
51 "name": "NuxtChild",
52 "aliases": [
53 "NChild"
54 ],
55 "description": "This component is used for displaying the children components in a nested route.",
56 "doc-url": "https://nuxtjs.org/api/components-nuxt-child",
57 "attributes": [
58 {
59 "name": "nuxt-child-key",
60 "value": {
61 "kind": "expression",
62 "type": "string"
63 }
64 },
65 {
66 "name": "name",
67 "value": {
68 "kind": "expression",
69 "type": "string"
70 },
71 "description": "This prop will be set to `<router-view/>`, used to render named-view of page component."
72 },
73 {
74 "name": "keep-alive",
75 "value": {
76 "kind": "expression",
77 "type": "boolean"
78 }
79 },
80 {
81 "name": "keep-alive-props",
82 "value": {
83 "kind": "expression",
84 "type": "object"
85 }
86 }
87 ]
88 },
89 {
90 "name": "NuxtLink",
91 "aliases": [
92 "NLink"
93 ],
94 "doc-url": "https://nuxtjs.org/api/components-nuxt-link",
95 "description": "This component is used to provide navigations between page components and enhance performances with smart prefetching.",
96 "attributes": [
97 {
98 "name": "no-prefetch",
99 "value": {
100 "kind": "expression",
101 "type": "boolean"
102 }
103 },
104 {
105 "name": "prefetch",
106 "value": {
107 "kind": "expression",
108 "type": "boolean"
109 }
110 },
111 {
112 "name": "prefetched-class",
113 "value": {
114 "kind": "expression",
115 "type": "string"
116 }
117 },
118 {
119 "name": "to",
120 "required": true,
121 "doc-url": "https://router.vuejs.org/api/#to",
122 "description": "Denotes the target route of the link. When clicked, the value of the `to` prop will be passed to `router.push()` internally, so the value can be either a string or a location descriptor object.",
123 "value": {
124 "kind": "expression",
125 "type": [
126 "string",
127 "object"
128 ]
129 }
130 },
131 {
132 "name": "tag",
133 "value": {
134 "kind": "expression",
135 "type": "string"
136 },
137 "default": "'a'",
138 "doc-url": "https://router.vuejs.org/api/#tag",
139 "description": "Sometimes we want `<router-link>` to render as another tag, e.g `<li>`. Then we can use `tag` prop to specify which tag to render to, and it will still listen to click events for navigation."
140 },
141 {
142 "name": "exact",
143 "value": {
144 "kind": "expression",
145 "type": "boolean"
146 },
147 "default": "false",
148 "doc-url": "https://router.vuejs.org/api/#exact",
149 "description": "The default active class matching behavior is **inclusive match**. For example, `<router-link to=\"/a\">` will get this class applied as long as the current path starts with `/a/` or is `/a`.\n\nOne consequence of this is that `<router-link to=\"/\">` will be active for every route! To force the link into \"exact match mode\", use the `exact` prop"
150 },
151 {
152 "name": "append",
153 "value": {
154 "kind": "expression",
155 "type": "boolean"
156 },
157 "default": "false",
158 "doc-url": "https://router.vuejs.org/api/#append",
159 "description": "Setting `append` prop always appends the relative path to the current path. "
160 },
161 {
162 "name": "replace",
163 "value": {
164 "kind": "expression",
165 "type": "boolean"
166 },
167 "default": "false",
168 "doc-url": "https://router.vuejs.org/api/#replace",
169 "description": "Setting `replace` prop will call `router.replace()` instead of `router.push()` when clicked, so the navigation will not leave a history record."
170 },
171 {
172 "name": "activeClass",
173 "value": {
174 "kind": "expression",
175 "type": "string"
176 },
177 "default": "'router-link-active'",
178 "doc-url": "https://router.vuejs.org/api/#active-class",
179 "description": "Configure the active CSS class applied when the link is active. Note the default value can also be configured globally via the `linkActiveClass` router constructor option."
180 },
181 {
182 "name": "exactActiveClass",
183 "value": {
184 "kind": "expression",
185 "type": "string"
186 },
187 "default": "'router-link-exact-active'",
188 "doc-url": "https://router.vuejs.org/api/#exact-active-class",
189 "description": "Configure the active CSS class applied when the link is active with exact match. Note the default value can also be configured globally via the `linkExactActiveClass` router constructor option."
190 },
191 {
192 "name": "ariaCurrentValue",
193 "value": {
194 "kind": "expression",
195 "type": "'page' | 'step' | 'location' | 'date' | 'time'"
196 },
197 "default": "'page'",
198 "doc-url": "https://router.vuejs.org/api/#aria-current-value",
199 "description": "Configure the value of `aria-current` when the link is active with exact match. It must be one of the allowed values for aria-current in the ARIA spec. In most cases, the default of `page` should be the best fit."
200 },
201 {
202 "name": "event",
203 "value": {
204 "kind": "expression",
205 "type": [
206 "string",
207 "string[]"
208 ]
209 },
210 "default": "'click'",
211 "doc-url": "https://router.vuejs.org/api/#event",
212 "description": "Specify the event(s) that can trigger the link navigation."
213 }
214 ],
215 "slots": [
216 {
217 "name": "default",
218 "vue-properties": [
219 {
220 "name": "href",
221 "description": "Resolved url. This would be the `href` attribute of an `a` element",
222 "type": "string"
223 },
224 {
225 "name": "route",
226 "description": "Resolved normalized location",
227 "type": "object"
228 },
229 {
230 "name": "navigate",
231 "description": "Function to trigger the navigation. **It will automatically prevent events when necessary**, the same way `router-link` does",
232 "type": "() => any"
233 },
234 {
235 "name": "isActive",
236 "description": "`true` if the active class should be applied. Allows to apply an arbitrary class",
237 "type": "boolean"
238 },
239 {
240 "name": "isExactActive",
241 "description": "`true` if the exact active class should be applied. Allows to apply an arbitrary class",
242 "type": "boolean"
243 }
244 ]
245 }
246 ]
247 }
248 ]
249 }
250 }
251}