Skip to content

Commit

Permalink
revert: 发布新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed May 31, 2022
1 parent 1afaa5e commit b01ebfd
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 21 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# CHANGELOG

English | [Chinese](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.en-US.md)
English | [Chinese](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.md)

## 0.0.6 beta.6 (2022-05-31)

**fix**

- Fix the problem of consistent rotation direction of `FImage` components
- Fix the click failure problem of `FIcon` component preview window operation, and handle the click focus position
- Fix the type problem of `FIcon` and `FButton` components
- The select attribute of the `FImage` component is changed to no select to prohibit selection

**feat**

- New image preloading function of `FImage` component preview window
- New `FImage` component preview window fade in animation effect
- Add the mask layer hiding function in the preview window of the `FImage` component, which can be configured through the `modal-close` configuration item
- New `FImage` component preview window icon style optimizes some details
- Add the left and right buttons of the preview image of the `FImage` component to switch and add the image length recognition. Whether to display the effect
- Add the `show-close-btn` configuration item of the `FImage` component to configure whether to display the close button of the preview window
- The new `FImage` component can zoom in and out the picture through the mouse wheel
- Add the `preview-round` configuration item of the `FImage` component to configure the fillet of the preview image

## 0.0.5 beta.5 (2022-05-27)

Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 更新日志

中文 | [英文](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.md)
中文 | [英文](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.en-US.md)

## 0.0.6 beta.6 (2022-05-31)

**fix**

Expand Down
24 changes: 12 additions & 12 deletions docs/docs/components/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
如果在大图预览的时候,你不需要使用下放的操作栏,可以通过 `preview-show-option` 属性将其隐藏

<f-image
width="200px"
src="https://tianyuhao.cn/images/auto/1.png"
:preview-list="listImg"
:preview-show-option="false"
width="200px"
src="https://tianyuhao.cn/images/auto/1.png"
:preview-list="listImg"
:preview-show-option="false"
/>

::: details 显示代码
Expand Down Expand Up @@ -186,17 +186,17 @@
你也可以使用 `error` 插槽自定义你的错误信息展示

<f-image
width="200px"
src="https://tianyuhao.cn/images/auto/3.png2"
block
err-src="https://tianyuhao.cn/images/auto/2.png"
width="200px"
src="https://tianyuhao.cn/images/auto/3.png2"
block
err-src="https://tianyuhao.cn/images/auto/2.png"
/>

<f-image
width="200px"
src="https://tianyuhao.cn/images/auto/3.png2"
block
err-src="https://tianyuhao.cn/images/auto/2.png2"
width="200px"
src="https://tianyuhao.cn/images/auto/3.png2"
block
err-src="https://tianyuhao.cn/images/auto/2.png2"
/>

::: details 显示代码
Expand Down
22 changes: 21 additions & 1 deletion docs/docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

中文 | [英文](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.md)

## 0.0.6 beta.6 (2022-05-31)

**fix**

- 修复 `FImage` 组件旋转方向一致的问题
- 修复 `FIcon` 组件预览窗操作点击失效问题,处理点击焦点位置
- 修复 `FIcon``FButton` 组件的类型问题
- `FImage` 组件的 `select` 属性改为 `no-select` 用于禁止选择

**feat**

- 新增 `FImage` 组件预览窗图片预加载功能
- 新增 `FImage` 组件预览窗渐入动画效果
- 新增 `FImage` 组件预览窗点击遮罩层隐藏功能,可通过 `modal-close` 配置项来配置
- 新增 `FImage` 组件预览窗图标样式优化了一些细节
- 新增 `FImage` 组件预览图左右按钮切换加入图片长度识别,是否展示效果
- 新增 `FImage` 组件 `show-close-btn` 配置项可配置是否展示预览窗的关闭按钮
- 新增 `FImage` 组件可通过鼠标滚轮放大缩小图片功能
- 新增 `FImage` 组件 `preview-round` 配置项,可配置预览图的圆角

## 0.0.5 beta.5 (2022-05-27)

- 新增 `FImage` 组件
Expand All @@ -17,7 +37,7 @@
## 0.0.3 beta.3 (2022-05-18)

- 修复按钮组件一些显示问题的样式
- 删除了一个不显示的 icon
- 删除了一个不显示的 `icon`
- 取消组件默认导出
- 压缩组件代码

Expand Down
2 changes: 1 addition & 1 deletion packages/fighting-design/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fighting-design",
"version": "0.0.5",
"version": "0.0.6",
"description": "Fighting design is a Vue3 lightweight component library written with TypeScript + Template.",
"keywords": [
"fighting",
Expand Down
2 changes: 1 addition & 1 deletion packages/fighting-type/image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ export interface optionClickInterface {

export interface callbackInterface {
(params: boolean, width: number): void
}
}
2 changes: 1 addition & 1 deletion packages/fighting-type/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export interface installInterface {

export interface mainVNodeInterface extends VNode {
install: (app: App) => void
}
}
10 changes: 8 additions & 2 deletions packages/fighting-utils/install.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import type { installInterface, mainVNodeInterface } from '@fighting-design/fighting-type'
import type {
installInterface,
mainVNodeInterface
} from '@fighting-design/fighting-type'
import type { App } from 'vue'

/**
* 注册组件
* @param main 组件实例
* @param name 组件名
*/
export const install: installInterface = (main: mainVNodeInterface, name: string): void => {
export const install: installInterface = (
main: mainVNodeInterface,
name: string
): void => {
main.install = (app: App): void => {
app.component(name, main)
}
Expand Down
5 changes: 4 additions & 1 deletion packages/fighting-utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import type { keepDecimalInterface } from '@fighting-design/fighting-type'
* @param no 保留位数
* @returns 转换结果
*/
export const keepDecimal: keepDecimalInterface = (num: number, no: number = 2): number => {
export const keepDecimal: keepDecimalInterface = (
num: number,
no: number = 2
): number => {
return Number(num.toFixed(no))
}

0 comments on commit b01ebfd

Please sign in to comment.