diff --git a/.gitignore b/.gitignore index 899747f..4ab458b 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,8 @@ pids *.pid *.seed *.pid.lock +.idea +.vscode # Directory for instrumented libs generated by jscoverage/JSCover lib-cov @@ -82,6 +84,8 @@ web_modules/ # parcel-bundler cache (https://parceljs.org/) .cache .parcel-cache +.idea +.vscode # Next.js build output .next diff --git a/CHANGELOG.md b/CHANGELOG.md index 514c06b..0ab2369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## v1.1.1 + +[compare changes](https://undefined/undefined/compare/v1.2.0...v1.1.1) + + +### 🏡 Chore + + - Change version (2f1cfa6) + +### ❤️ Contributors + +- Aibayanyu ## v1.1.0 @@ -22,13 +34,56 @@ - Resolve conflict (796f01d) - Add online playground (703c8be) - Change (8016cc8) + - **release:** V1.1.0 (9dadc07) + - Fix conflict (2390912) + - Update changelog (877283b) + - Fix conflict (a63e70a) + - **release:** V1.0.1 (0874a44) + - Fix conflict (56ef500) ### ❤️ Contributors +- Aibayanyu - Aibayanyu20 -- Zev Zhu +- Zev Zhu + +## v1.0.1 + +[compare changes](https://undefined/undefined/compare/v1.1.0...v1.0.1) + + +### 🏡 Chore + + - Change version (a9b926f) + +### ❤️ Contributors + - Aibayanyu +## v1.0.0 + +[compare changes](https://undefined/undefined/compare/v1.0.0-alpha.1...v1.0.0) + + +### 🚀 Enhancements + + - Support style-provider (2e7da59) + +### 🏡 Chore + + - Change readme (f52e16b) + - Change readme (1032a1e) + - Add license close #5 (#5) + - Resolve conflict (796f01d) + - Add online playground (703c8be) + - Change (8016cc8) + + +### ❤️ Contributors + +- Aibayanyu +- Aibayanyu20 + ## v1.0.0-alpha.1 diff --git a/package.json b/package.json index 70bdb9a..682b75e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ant-design-vue/nuxt", - "version": "1.1.0", + "version": "1.1.1", "description": "ant-design-vue-nuxt module", "repository": "vueComponent/ant-design-vue-nuxt", "license": "MIT", @@ -27,7 +27,7 @@ "dev:prepare": "nuxt-module-build --stub && nuxi prepare playground", "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags", "build": "npm run lint && npm run test && npm run prepack", - "changelog": "changelogen --release --prerelease --output CHANGELOG.md", + "changelog": "changelogen --release --pacth --output CHANGELOG.md", "lint": "eslint .", "test": "vitest run", "test:watch": "vitest watch" @@ -35,7 +35,7 @@ "dependencies": { "@nuxt/kit": "^3.5.2", "@ant-design/icons-vue": "^6.1.0", - "ant-design-vue": "^4.0.0" + "ant-design-vue": "^4.0.1" }, "devDependencies": { "@nuxt/eslint-config": "^0.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93b81fe..7098013 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ dependencies: specifier: ^3.5.2 version: 3.5.2(rollup@3.23.0) ant-design-vue: - specifier: ^4.0.0 - version: 4.0.0(vue@3.3.4) + specifier: ^4.0.1 + version: 4.0.1(vue@3.3.4) devDependencies: '@nuxt/eslint-config': @@ -1626,8 +1626,8 @@ packages: engines: {node: '>=10'} dev: true - /ant-design-vue@4.0.0(vue@3.3.4): - resolution: {integrity: sha512-6V8DxHPv3HJYDdv48W/KFOUjeZDsYJhFlk13HFSKCJSR2MQs4YnPIAC+rWie9vYcVEKbO+cQDqiOM3cBoHMNUQ==} + /ant-design-vue@4.0.1(vue@3.3.4): + resolution: {integrity: sha512-/gZEB/e6166hlqaYfSAJLgzr6zAPuVimITYx+OaifMaHYcxKOvbISEFTsDnn7qRshVYHFyUL2HIyN9sSrWDP3w==} engines: {node: '>=12.22.0'} peerDependencies: vue: '>=3.2.0' diff --git a/src/antdv.ts b/src/antdv.ts index 95ea9ae..86959c6 100644 --- a/src/antdv.ts +++ b/src/antdv.ts @@ -1,4 +1,5 @@ -export const allComponents = [ +export const allComponents:(string | [string,string])[] = [ + 'App', 'Affix', 'Alert', 'Anchor', @@ -30,6 +31,7 @@ export const allComponents = [ 'CollapsePanel', 'Comment', 'ConfigProvider', + ['Compact','SpaceCompact'], 'DatePicker', 'Descriptions', 'DescriptionsItem', @@ -74,7 +76,7 @@ export const allComponents = [ 'Popconfirm', 'Popover', 'Progress', - 'QRCode', + ['QRCode','Qrcode'], 'QuarterPicker', 'Radio', 'RadioButton', @@ -136,4 +138,4 @@ export const allComponents = [ ] -export const allImports = ['message','notification','Modal']; +export const allImports = ['message','notification','Modal','App']; diff --git a/src/core/components.ts b/src/core/components.ts index e60351c..b93e454 100644 --- a/src/core/components.ts +++ b/src/core/components.ts @@ -3,22 +3,38 @@ import { iconLibraryName, libraryName, prefix } from "../config" import { addComponent } from "@nuxt/kit"; export const resolveComponents = (config:Options) =>{ - const { components, icons } = config; + const { components,icons } = config; const allComponents = components === false ? [] : components; - allComponents.forEach(component => { - addComponent({ - export: component, - name: prefix + component, - filePath: libraryName + '/es' - }) + allComponents.forEach(component=>{ + if (typeof component === 'string'){ + addComponent({ + export: component, + name: prefix + component, + filePath: libraryName + '/es' + }) + }else if (Array.isArray(component)){ + addComponent({ + export: component[0], + name: prefix + component[1], + filePath: libraryName + '/es' + }) + } }) const allIcons = icons === false ? [] : icons; allIcons.forEach(icon=>{ - addComponent({ - export: icon, - name: icon, - filePath: iconLibraryName - }) + if (typeof icon === 'string'){ + addComponent({ + export: icon, + name: icon, + filePath: iconLibraryName + }) + }else if (Array.isArray(icon)){ + addComponent({ + export: icon[0], + name: icon[1], + filePath: iconLibraryName + }) + } }) } diff --git a/src/types.ts b/src/types.ts index edd34a6..a6eea6c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -export type PresetImport = string +export type PresetImport = string | [string,string] export interface Options { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy