Skip to content

Commit 02efbad

Browse files
committed
fix: change dependencies
1 parent 703c8be commit 02efbad

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Reference [Nuxt documentation](https://nuxt.com/docs/guide/directory-structure/c
8080

8181
### components
8282

83-
* Type: `array`
83+
* Type: `array` | 'false'
8484

8585
If there are components that are not imported automatically from Ant Design Vue, you need to add the component name here.
8686

@@ -94,7 +94,7 @@ If you wish to add automatically import content from Ant Design Vue, you can add
9494

9595
### icons
9696

97-
* Type: `array`
97+
* Type: `array` | 'false'
9898

9999
If there are components that are not imported automatically from @ant-design/icons-vue, you need to add the component name here.
100100

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@
3232
"test": "vitest run",
3333
"test:watch": "vitest watch"
3434
},
35-
"peerDependencies": {
36-
"@ant-design/icons-vue": "^6.1.0",
37-
"ant-design-vue": "4.0.0-rc.5"
38-
},
3935
"dependencies": {
40-
"@nuxt/kit": "^3.5.2"
36+
"@nuxt/kit": "^3.5.2",
37+
"@ant-design/icons-vue": "^6.1.0",
38+
"ant-design-vue": "^4.0.0"
4139
},
4240
"devDependencies": {
4341
"@nuxt/eslint-config": "^0.1.1",

src/core/components.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { iconLibraryName, libraryName, prefix } from "../config"
33
import { addComponent } from "@nuxt/kit";
44

55
export const resolveComponents = (config:Options) =>{
6-
const { components,icons } =config;
6+
const { components, icons } = config;
77
const allComponents = components === false ? [] : components;
8-
allComponents.forEach(component=>{
8+
allComponents.forEach(component => {
99
addComponent({
1010
export: component,
1111
name: prefix + component,

0 commit comments

Comments
 (0)