From 78ca73d50007233cf2a137b226451986c9dcbdf7 Mon Sep 17 00:00:00 2001
From: tyh2001 <1469442737@qq.com>
Date: Tue, 9 Aug 2022 17:54:28 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=98=BF=F0=9F=98=BF=20=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=E5=BC=95=E5=85=A5?=
=?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=20=F0=9F=98=BF=F0=9F=98=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CHANGELOG.en-US.md | 20 +++
CHANGELOG.md | 14 +-
docs/docs/docs/changelog.md | 20 +++
.../preview-list.vue | 12 +-
.../_interface/{env.d.ts => vite-env.d.ts} | 1 -
packages/fighting-components/alert/index.ts | 2 +
.../fighting-components/alert/src/alert.vue | 2 +-
packages/fighting-components/aside/index.ts | 2 +
packages/fighting-components/avatar/index.ts | 2 +
.../fighting-components/avatar/src/avatar.vue | 2 +-
.../fighting-components/back-top/index.ts | 2 +
packages/fighting-components/badge/index.ts | 2 +
.../breadcrumb-item/index.ts | 2 +
.../breadcrumb-item/src/breadcrumb-item.vue | 2 +-
.../fighting-components/breadcrumb/index.ts | 2 +
.../fighting-components/button-group/index.ts | 2 +
packages/fighting-components/button/index.ts | 2 +
.../fighting-components/button/src/button.vue | 2 +-
packages/fighting-components/card/index.ts | 2 +
packages/fighting-components/components.d.ts | 40 ------
packages/fighting-components/components.ts | 104 ++++++++++++++
packages/fighting-components/dialog/index.ts | 2 +
.../fighting-components/dialog/src/dialog.vue | 2 +-
packages/fighting-components/divider/index.ts | 2 +
packages/fighting-components/drawer/index.ts | 2 +
packages/fighting-components/footer/index.ts | 2 +
.../global-components.d.ts | 38 +++++
packages/fighting-components/header/index.ts | 2 +
packages/fighting-components/icon/index.ts | 2 +
packages/fighting-components/image/index.ts | 2 +
.../fighting-components/image/src/image.vue | 2 +-
packages/fighting-components/index-old.ts | 132 ++++++++++++++++++
packages/fighting-components/index.ts | 125 +----------------
packages/fighting-components/layout/index.ts | 2 +
packages/fighting-components/link/index.ts | 2 +
.../fighting-components/link/src/link.vue | 2 +-
.../fighting-components/list-item/index.ts | 2 +
packages/fighting-components/list/index.ts | 2 +
packages/fighting-components/loading/index.ts | 2 +
.../loading/src/loading.vue | 2 +-
packages/fighting-components/main/index.ts | 2 +
packages/fighting-components/message/index.ts | 4 +-
.../message/src/message.vue | 2 +-
.../novel-coronavirus/index.ts | 2 +
.../fighting-components/page-header/index.ts | 2 +
.../page-header/src/page-header.vue | 2 +-
.../fighting-components/progress/index.ts | 2 +
packages/fighting-components/rate/index.ts | 2 +
packages/fighting-components/space/index.ts | 2 +
packages/fighting-components/switch/index.ts | 2 +
.../fighting-components/switch/src/switch.vue | 2 +-
packages/fighting-components/tag/index.ts | 2 +
packages/fighting-components/tag/src/tag.vue | 2 +-
packages/fighting-components/text/index.ts | 2 +
.../fighting-components/toolbar-item/index.ts | 2 +
packages/fighting-components/toolbar/index.ts | 2 +
packages/fighting-components/tooltip/index.ts | 2 +
.../fighting-components/watermark/index.ts | 2 +
packages/fighting-design/package.json | 12 +-
start/main.ts | 2 +-
start/src/App.vue | 5 +-
start/{env.d.ts => src/vite-env.d.ts} | 1 -
vite.config.lib.ts | 9 +-
vite.config.ts | 5 +-
64 files changed, 442 insertions(+), 196 deletions(-)
rename packages/fighting-components/{image/components => _components}/preview-list.vue (93%)
rename packages/fighting-components/_interface/{env.d.ts => vite-env.d.ts} (66%)
delete mode 100644 packages/fighting-components/components.d.ts
create mode 100644 packages/fighting-components/components.ts
create mode 100644 packages/fighting-components/global-components.d.ts
create mode 100644 packages/fighting-components/index-old.ts
rename start/{env.d.ts => src/vite-env.d.ts} (66%)
diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index ae8068ec93..84bc015a67 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -4,6 +4,26 @@
English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md)
+## 0.5.1-bate.4 (2022-08-09)
+
+- Test and fix the problem of path error introduced by packaging
+
+## 0.5.1-bate.3 (2022-08-09)
+
+- Test and fix the problem of path error introduced by packaging
+
+## 0.5.1-bate.2 (2022-08-09)
+
+- Test and fix the problem of path error introduced by packaging
+
+## 0.5.1-bate.1 (2022-08-09)
+
+- Fixed issues related to packaging type
+
+## 0.5.0-bate.2 (2022-08-08)
+
+- Fixed issues related to packaging type
+
## 0.5.0-bate.1 (2022-08-08)
It mainly fixes the related configuration items of packaging. In the [previous version](<(https://github.com/FightingDesign/fighting-design/releases/tag/0.4.2-bate.9)>), if you need to import components on demand, there will be many abnormal error messages. This version is mainly optimized for packaging and has fixed the fatal error caused by on-demand import.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19a0e2256f..e65a192a01 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,13 +2,25 @@
中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md)
+## 0.5.1-bate.4 (2022-08-09)
+
+- 测试修复打包引入路径错误的问题
+
+## 0.5.1-bate.3 (2022-08-09)
+
+- 测试修复打包引入路径错误的问题
+
+## 0.5.1-bate.2 (2022-08-09)
+
+- 测试修复打包引入路径错误的问题
+
## 0.5.1-bate.1 (2022-08-09)
- 修复了打包类型相关的问题
## 0.5.0-bate.2 (2022-08-08)
-测试修复打包的错误信息
+- 修复了打包类型相关的问题
## 0.5.0-bate.1 (2022-08-08)
diff --git a/docs/docs/docs/changelog.md b/docs/docs/docs/changelog.md
index cdc687de73..e65a192a01 100644
--- a/docs/docs/docs/changelog.md
+++ b/docs/docs/docs/changelog.md
@@ -2,6 +2,26 @@
中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md)
+## 0.5.1-bate.4 (2022-08-09)
+
+- 测试修复打包引入路径错误的问题
+
+## 0.5.1-bate.3 (2022-08-09)
+
+- 测试修复打包引入路径错误的问题
+
+## 0.5.1-bate.2 (2022-08-09)
+
+- 测试修复打包引入路径错误的问题
+
+## 0.5.1-bate.1 (2022-08-09)
+
+- 修复了打包类型相关的问题
+
+## 0.5.0-bate.2 (2022-08-08)
+
+- 修复了打包类型相关的问题
+
## 0.5.0-bate.1 (2022-08-08)
主要修复了打包的相关的配置项,在[上一个版本](https://github.com/FightingDesign/fighting-design/releases/tag/0.4.2-bate.9)中,如果需要按需引入组件,那么会有很多异常的错误信息,这个版本主要是针对打包做了很大的优化,已经修复了按需引入导致的致命错误。
diff --git a/packages/fighting-components/image/components/preview-list.vue b/packages/fighting-components/_components/preview-list.vue
similarity index 93%
rename from packages/fighting-components/image/components/preview-list.vue
rename to packages/fighting-components/_components/preview-list.vue
index b5b9f35b65..9767ebc206 100644
--- a/packages/fighting-components/image/components/preview-list.vue
+++ b/packages/fighting-components/_components/preview-list.vue
@@ -1,17 +1,17 @@
+
diff --git a/start/env.d.ts b/start/src/vite-env.d.ts
similarity index 66%
rename from start/env.d.ts
rename to start/src/vite-env.d.ts
index aafef9509d..323c78a6cd 100644
--- a/start/env.d.ts
+++ b/start/src/vite-env.d.ts
@@ -2,7 +2,6 @@
declare module '*.vue' {
import type { DefineComponent } from 'vue'
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
diff --git a/vite.config.lib.ts b/vite.config.lib.ts
index 7126d46ebd..d0234cc9d8 100644
--- a/vite.config.lib.ts
+++ b/vite.config.lib.ts
@@ -18,7 +18,10 @@ export default (): UserConfigExport => {
copyDtsFiles: true
}),
Components({
- dts: resolve(__dirname, '/packages/fighting-components/components.d.ts')
+ dts: resolve(
+ __dirname,
+ '/packages/fighting-components/global-components.d.ts'
+ )
})
],
mode: 'production',
@@ -39,8 +42,8 @@ export default (): UserConfigExport => {
external: ['vue'],
preserveModules: true,
output: {
- // format: 'cjs',
- // preserveModules: true,
+ format: 'cjs',
+ preserveModules: true,
globals: {
vue: 'Vue'
}
diff --git a/vite.config.ts b/vite.config.ts
index 55b54d2e8c..9b98693385 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -18,7 +18,10 @@ export default (): UserConfigExport => {
copyDtsFiles: true // 是否将 .d.ts 源文件复制到 outputDir 中
}),
Components({
- dts: resolve(__dirname, '/packages/fighting-components/components.d.ts')
+ dts: resolve(
+ __dirname,
+ '/packages/fighting-components/global-components.d.ts'
+ )
})
],
mode: 'production',