File tree Expand file tree Collapse file tree 6 files changed +24
-21
lines changed Expand file tree Collapse file tree 6 files changed +24
-21
lines changed Original file line number Diff line number Diff line change 11export default defineAppConfig ( {
22 attributeContent : {
3- name : " Nuxt Attribute Content (overwritten)" ,
3+ name : ' Nuxt Attribute Content (overwritten)' ,
44 } ,
5- } ) ;
5+ } )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default defineNuxtConfig({
66 eslint : {
77 config : {
88 // Use the generated ESLint config for lint root project as well
9- rootDir : fileURLToPath ( new URL ( '..' , import . meta. url ) )
10- }
11- }
9+ rootDir : fileURLToPath ( new URL ( '..' , import . meta. url ) ) ,
10+ } ,
11+ } ,
1212} )
Original file line number Diff line number Diff line change 11export default defineAppConfig ( {
22 attributeContent : {
3- name : " Nuxt Attribute Content" ,
3+ name : ' Nuxt Attribute Content' ,
44 } ,
5- } ) ;
5+ } )
66
7- declare module " @nuxt/schema" {
7+ declare module ' @nuxt/schema' {
88 interface AppConfigInput {
99 attributeContent ?: {
1010 /** Project name */
11- name ?: string ;
12- } ;
11+ name ?: string
12+ }
1313 }
1414}
Original file line number Diff line number Diff line change 33</template >
44
55<script setup lang="ts">
6- const { attributeContent } = useAppConfig ();
6+ const { attributeContent } = useAppConfig ()
77 </script >
Original file line number Diff line number Diff line change 11<template >
2- <div class =" icon" :class =" classObject" >
2+ <div
3+ class =" icon"
4+ :class =" classObject"
5+ >
36 <SpriteSymbol :name =" name" />
47 </div >
58</template >
69
710<script setup lang="ts">
811export interface Props {
9- name: string ;
10- fill? : boolean ;
11- modifier? : string ;
12+ name: string
13+ fill? : boolean
14+ modifier? : string
1215}
1316
1417const props = withDefaults (defineProps <Props >(), {
1518 fill: false ,
16- });
19+ })
1720
1821const classObject = reactive ({
1922 [` icon--${props .name } ` ]: true ,
20- " icon--fill" : props .fill ,
21- });
23+ ' icon--fill' : props .fill ,
24+ })
2225
2326if (props .modifier ) {
24- classObject [` icon--${props .modifier } ` ] = true ;
27+ classObject [` icon--${props .modifier } ` ] = true
2528}
2629 </script >
2730
Original file line number Diff line number Diff line change 11// https://nuxt.com/docs/api/configuration/nuxt-config
22export default defineNuxtConfig ( {
3+ modules : [ 'nuxt-svg-icon-sprite' , '@nuxt/content' ] ,
34 devtools : { enabled : true } ,
4- modules : [ "nuxt-svg-icon-sprite" , "@nuxt/content" ] ,
5- } )
5+ } )
You can’t perform that action at this time.
0 commit comments