Skip to content

Commit

Permalink
fix: 😿😿 测试修复打包引入路径错误的问题 😿😿
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Aug 9, 2022
1 parent 3b1d908 commit 78ca73d
Show file tree
Hide file tree
Showing 64 changed files with 442 additions and 196 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
20 changes: 20 additions & 0 deletions docs/docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)中,如果需要按需引入组件,那么会有很多异常的错误信息,这个版本主要是针对打包做了很大的优化,已经修复了按需引入导致的致命错误。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<script lang="ts" setup name="FPreviewList">
import { ref, inject, toRefs } from 'vue'
import { FIcon } from '@fighting-design/fighting-components'
import { keepDecimal } from '../../_utils'
import { ImagePropsKey } from '../src/image'
import FIcon from '../icon'
import { keepDecimal } from '../_utils'
import { ImagePropsKey } from '../image/src/image'
import type { Ref } from 'vue'
import type {
switchImageInterface as a,
optionClickInterface as b,
onImgMousewheelInterface as c,
handleCloseInterface as d
} from '../src/interface'
import type { ordinaryFunctionInterface as e } from '../../button/src/interface'
import type { ImagePropsType as f } from '../src/image'
} from '../image/src/interface'
import type { ordinaryFunctionInterface as e } from '../button/src/interface'
import type { ImagePropsType as f } from '../image/src/image'
const injectImageProps: f = inject(ImagePropsKey)!
const emit = defineEmits({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 2 additions & 0 deletions packages/fighting-components/alert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FAlert, FAlert.name)

export type FAlertInstance = InstanceType<typeof FAlert>

export default FAlert
2 changes: 1 addition & 1 deletion packages/fighting-components/alert/src/alert.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup name="FAlert">
import { Props, Emits } from './alert'
import { computed, ref } from 'vue'
import { FIcon } from '@fighting-design/fighting-components'
import FIcon from '../../icon'
import type { ComputedRef, CSSProperties, Ref } from 'vue'
import type { handleCloseInterface as a } from './interface'
Expand Down
2 changes: 2 additions & 0 deletions packages/fighting-components/aside/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FAside, FAside.name)

export type FAsideInstance = InstanceType<typeof FAside>

export default FAside
2 changes: 2 additions & 0 deletions packages/fighting-components/avatar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FAvatar, FAvatar.name)

export type FAvatarInstance = InstanceType<typeof FAvatar>

export default FAvatar
2 changes: 1 addition & 1 deletion packages/fighting-components/avatar/src/avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Props, Emits } from './avatar'
import { computed, ref, onMounted } from 'vue'
import { loadImage, isNumber, isString } from '../../_utils'
import { FIcon } from '@fighting-design/fighting-components'
import FIcon from '../../icon'
import type { ComputedRef, Ref, CSSProperties } from 'vue'
const prop = defineProps(Props)
Expand Down
2 changes: 2 additions & 0 deletions packages/fighting-components/back-top/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FBackTop, FBackTop.name)

export type FBackTopInstance = InstanceType<typeof FBackTop>

export default FBackTop
2 changes: 2 additions & 0 deletions packages/fighting-components/badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FBadge, FBadge.name)

export type FBadgeInstance = InstanceType<typeof FBadge>

export default FBadge
2 changes: 2 additions & 0 deletions packages/fighting-components/breadcrumb-item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FBreadcrumbItem, FBreadcrumbItem.name)

export type FBreadcrumbItemInstance = InstanceType<typeof FBreadcrumbItem>

export default FBreadcrumbItem
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { getCurrentInstance, inject, ref, toRefs } from 'vue'
import { BreadcrumbPropsKey } from '../../breadcrumb/src/breadcrumb'
import { Props } from './breadcrumb-item'
import { FIcon } from '@fighting-design/fighting-components'
import FIcon from '../../icon'
import type { ComponentInternalInstance, Ref } from 'vue'
import type { handleClickInterface as a } from './interface'
Expand Down
2 changes: 2 additions & 0 deletions packages/fighting-components/breadcrumb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FBreadcrumb, FBreadcrumb.name)

export type FBreadcrumbInstance = InstanceType<typeof FBreadcrumb>

export default FBreadcrumb
2 changes: 2 additions & 0 deletions packages/fighting-components/button-group/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FButtonGroup, FButtonGroup.name)

export type FButtonGroupInstance = InstanceType<typeof FButtonGroup>

export default FButtonGroup
2 changes: 2 additions & 0 deletions packages/fighting-components/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FButton, FButton.name)

export type FButtonInstance = InstanceType<typeof FButton>

export default FButton
2 changes: 1 addition & 1 deletion packages/fighting-components/button/src/button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { computed, ref, onMounted } from 'vue'
import { Props, Emits } from './button'
import { Ripples, ChangeColor } from '../../_utils'
import { FIcon } from '@fighting-design/fighting-components'
import FIcon from '../../icon'
import type { ComputedRef, Ref, CSSProperties } from 'vue'
import type {
onClickInterface as a,
Expand Down
2 changes: 2 additions & 0 deletions packages/fighting-components/card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FCard, FCard.name)

export type FCardInstance = InstanceType<typeof FCard>

export default FCard
40 changes: 0 additions & 40 deletions packages/fighting-components/components.d.ts

This file was deleted.

104 changes: 104 additions & 0 deletions packages/fighting-components/components.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
export { default as FButton } from './button'
export type { FButtonInstance } from './button'

export { default as FIcon } from './icon'
export type { FIconInstance } from './icon'

export { default as FButtonGroup } from './button-group'
export type { FButtonGroupInstance } from './button-group'

export { default as FLink } from './link'
export type { FLinkInstance } from './link'

export { default as FImage } from './image'
export type { FImageInstance } from './image'

export { default as FCard } from './card'
export type { FCardInstance } from './card'

export { default as FTag } from './tag'
export type { FTagInstance } from './tag'

export { default as FDivider } from './divider'
export type { FDividerInstance } from './divider'

export { default as FFooter } from './footer'
export type { FFooterInstance } from './footer'

export { default as FHeader } from './header'
export type { FHeaderInstance } from './header'

export { default as FAside } from './aside'
export type { FAsideInstance } from './aside'

export { default as FMain } from './main'
export type { FMainInstance } from './main'

export { default as FLayout } from './layout'
export type { FLayoutInstance } from './layout'

export { default as FSwitch } from './switch'
export type { FSwitchInstance } from './switch'

export { default as FBadge } from './badge'
export type { FBadgeInstance } from './badge'

export { default as FAvatar } from './avatar'
export type { FAvatarInstance } from './avatar'

export { default as FBackTop } from './back-top'
export type { FBackTopInstance } from './back-top'

export { default as FBreadcrumb } from './breadcrumb'
export type { FBreadcrumbInstance } from './breadcrumb'

export { default as FBreadcrumbItem } from './breadcrumb-item'
export type { FBreadcrumbItemInstance } from './breadcrumb-item'

export { default as FText } from './text'
export type { FTextInstance } from './text'

export { default as FLoading } from './loading'
export type { FLoadingInstance } from './loading'

export { default as FProgress } from './progress'
export type { FProgressInstance } from './progress'

export { default as FSpace } from './space'
export type { FSpaceInstance } from './space'

export { default as FDialog } from './dialog'
export type { FDialogInstance } from './dialog'

export { default as FTooltip } from './tooltip'
export type { FTooltipInstance } from './tooltip'

export { default as FDrawer } from './drawer'
export type { FDrawerInstance } from './drawer'

export { default as FPageHeader } from './page-header'
export type { FPageHeaderInstance } from './page-header'

export { default as FAlert } from './alert'
export type { FAlertInstance } from './alert'

export { default as FNovelCoronavirus } from './novel-coronavirus'
export type { FNovelCoronavirusInstance } from './novel-coronavirus'

export { default as FList } from './list'
export type { FListInstance } from './list'

export { default as FListItem } from './list-item'
export type { FListItemInstance } from './list-item'

export { default as FToolbar } from './toolbar'
export type { FToolbarInstance } from './toolbar'

export { default as FToolbarItem } from './toolbar-item'
export type { FToolbarItemInstance } from './toolbar-item'

export { default as FMessage } from './message'
export type { FMessageInstance } from './message'

export { default as FWatermark } from './watermark'
export type { FWatermarkInstance } from './watermark'
2 changes: 2 additions & 0 deletions packages/fighting-components/dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FDialog, FDialog.name)

export type FDialogInstance = InstanceType<typeof FDialog>

export default FDialog
2 changes: 1 addition & 1 deletion packages/fighting-components/dialog/src/dialog.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup name="FDialog">
import { Props, Emits } from './dialog'
import { FIcon } from '@fighting-design/fighting-components'
import FIcon from '../../icon'
import type {
transitionEventInterface as a,
closeDialogInterface as b
Expand Down
2 changes: 2 additions & 0 deletions packages/fighting-components/divider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FDivider, FDivider.name)

export type FDividerInstance = InstanceType<typeof FDivider>

export default FDivider
2 changes: 2 additions & 0 deletions packages/fighting-components/drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ import { install } from '../_utils'

install(FDrawer, FDrawer.name)

export type FDrawerInstance = InstanceType<typeof FDrawer>

export default FDrawer
Loading

0 comments on commit 78ca73d

Please sign in to comment.