From b01ebfd1cdbaf5fb49cc8cf46a4692f423b073ca Mon Sep 17 00:00:00 2001
From: tyh2001 <1469442737@qq.com>
Date: Tue, 31 May 2022 13:45:23 +0800
Subject: [PATCH] =?UTF-8?q?revert:=20=E5=8F=91=E5=B8=83=E6=96=B0=E7=89=88?=
=?UTF-8?q?=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CHANGELOG.en-US.md | 22 +++++++++++++++++++++-
CHANGELOG.md | 4 +++-
docs/docs/components/image.md | 24 ++++++++++++------------
docs/docs/docs/changelog.md | 22 +++++++++++++++++++++-
packages/fighting-design/package.json | 2 +-
packages/fighting-type/image.d.ts | 2 +-
packages/fighting-type/install.ts | 2 +-
packages/fighting-utils/install.ts | 10 ++++++++--
packages/fighting-utils/utils.ts | 5 ++++-
9 files changed, 72 insertions(+), 21 deletions(-)
diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index 9b90a8af00..b74ce473d2 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -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)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5bb3194323..d00dafcaa9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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**
diff --git a/docs/docs/components/image.md b/docs/docs/components/image.md
index 0e817a36ff..de2a4c5964 100644
--- a/docs/docs/components/image.md
+++ b/docs/docs/components/image.md
@@ -84,10 +84,10 @@
如果在大图预览的时候,你不需要使用下放的操作栏,可以通过 `preview-show-option` 属性将其隐藏
::: details 显示代码
@@ -186,17 +186,17 @@
你也可以使用 `error` 插槽自定义你的错误信息展示
::: details 显示代码
diff --git a/docs/docs/docs/changelog.md b/docs/docs/docs/changelog.md
index 209849fab8..3b46dd2162 100644
--- a/docs/docs/docs/changelog.md
+++ b/docs/docs/docs/changelog.md
@@ -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` 组件
@@ -17,7 +37,7 @@
## 0.0.3 beta.3 (2022-05-18)
- 修复按钮组件一些显示问题的样式
-- 删除了一个不显示的 icon
+- 删除了一个不显示的 `icon`
- 取消组件默认导出
- 压缩组件代码
diff --git a/packages/fighting-design/package.json b/packages/fighting-design/package.json
index bcfe019364..79c393c834 100644
--- a/packages/fighting-design/package.json
+++ b/packages/fighting-design/package.json
@@ -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",
diff --git a/packages/fighting-type/image.d.ts b/packages/fighting-type/image.d.ts
index b9a532a626..8c9c9a9900 100644
--- a/packages/fighting-type/image.d.ts
+++ b/packages/fighting-type/image.d.ts
@@ -62,4 +62,4 @@ export interface optionClickInterface {
export interface callbackInterface {
(params: boolean, width: number): void
-}
\ No newline at end of file
+}
diff --git a/packages/fighting-type/install.ts b/packages/fighting-type/install.ts
index 35fbb48ad8..cf68f77353 100644
--- a/packages/fighting-type/install.ts
+++ b/packages/fighting-type/install.ts
@@ -6,4 +6,4 @@ export interface installInterface {
export interface mainVNodeInterface extends VNode {
install: (app: App) => void
-}
\ No newline at end of file
+}
diff --git a/packages/fighting-utils/install.ts b/packages/fighting-utils/install.ts
index b98360ca1b..7476214bed 100644
--- a/packages/fighting-utils/install.ts
+++ b/packages/fighting-utils/install.ts
@@ -1,4 +1,7 @@
-import type { installInterface, mainVNodeInterface } from '@fighting-design/fighting-type'
+import type {
+ installInterface,
+ mainVNodeInterface
+} from '@fighting-design/fighting-type'
import type { App } from 'vue'
/**
@@ -6,7 +9,10 @@ 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)
}
diff --git a/packages/fighting-utils/utils.ts b/packages/fighting-utils/utils.ts
index 982af110ec..f05baccda8 100644
--- a/packages/fighting-utils/utils.ts
+++ b/packages/fighting-utils/utils.ts
@@ -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))
}