File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,9 @@ const handleMessage = () => {
6969}
7070</script>
7171<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>
7775</template>
7876```
7977Reference [ 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
105103
106104* Type: ` boolean `
107105
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
109109
110110``` 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 -->
112112<template>
113113 <a-extract-style>
114114 <!-- Your page or component -->
Original file line number Diff line number Diff line change 11export default defineNuxtConfig ( {
22 modules : [ '../src/module' ] ,
3- antd : { } ,
3+ antd : {
4+ extractStyle : true
5+ } ,
46 imports :{
57 autoImport :true
68 } ,
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ export const defaults:Options = {
1515 components : allComponents ,
1616 icons : allIcons ,
1717 imports : allImports ,
18- extractStyle : true
18+ extractStyle : false
1919}
You can’t perform that action at this time.
0 commit comments