File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,9 @@ const handleMessage = () => {
69
69
}
70
70
</script>
71
71
<template>
72
- <a-extract-style>
73
- <a-button @click="handleMessage">
74
- button
75
- </a-button>
76
- </a-extract-style>
72
+ <a-button @click="handleMessage">
73
+ button
74
+ </a-button>
77
75
</template>
78
76
```
79
77
Reference [ Nuxt documentation] ( https://nuxt.com/docs/guide/directory-structure/components ) and [ playground] ( ./playground/app.vue ) use.
@@ -105,10 +103,12 @@ If there are components that are not imported automatically from @ant-design/ico
105
103
106
104
* Type: ` boolean `
107
105
108
- Extract css on demand, start by default
106
+ > Solve page css flicker problem
107
+
108
+ Extracts and injects css on demand, defaults to false
109
109
110
110
``` vue
111
- <!-- If launched , we can wrap the component or page in the app.vue outermost layer -->
111
+ <!-- If the extractStyle option is enabled , we can use a-extract-style on the outermost level of the template in app.vue -->
112
112
<template>
113
113
<a-extract-style>
114
114
<!-- Your page or component -->
Original file line number Diff line number Diff line change 1
1
export default defineNuxtConfig ( {
2
2
modules : [ '../src/module' ] ,
3
- antd : { } ,
3
+ antd : {
4
+ extractStyle : true
5
+ } ,
4
6
imports :{
5
7
autoImport :true
6
8
} ,
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ export const defaults:Options = {
15
15
components : allComponents ,
16
16
icons : allIcons ,
17
17
imports : allImports ,
18
- extractStyle : true
18
+ extractStyle : false
19
19
}
You can’t perform that action at this time.
0 commit comments