Skip to content

Commit b01ebfd

Browse files
committed
revert: 发布新版本
1 parent 1afaa5e commit b01ebfd

File tree

9 files changed

+72
-21
lines changed

9 files changed

+72
-21
lines changed

CHANGELOG.en-US.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# CHANGELOG
22

3-
English | [Chinese](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.en-US.md)
3+
English | [Chinese](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.md)
4+
5+
## 0.0.6 beta.6 (2022-05-31)
6+
7+
**fix**
8+
9+
- Fix the problem of consistent rotation direction of `FImage` components
10+
- Fix the click failure problem of `FIcon` component preview window operation, and handle the click focus position
11+
- Fix the type problem of `FIcon` and `FButton` components
12+
- The select attribute of the `FImage` component is changed to no select to prohibit selection
13+
14+
**feat**
15+
16+
- New image preloading function of `FImage` component preview window
17+
- New `FImage` component preview window fade in animation effect
18+
- Add the mask layer hiding function in the preview window of the `FImage` component, which can be configured through the `modal-close` configuration item
19+
- New `FImage` component preview window icon style optimizes some details
20+
- 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
21+
- Add the `show-close-btn` configuration item of the `FImage` component to configure whether to display the close button of the preview window
22+
- The new `FImage` component can zoom in and out the picture through the mouse wheel
23+
- Add the `preview-round` configuration item of the `FImage` component to configure the fillet of the preview image
424

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

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# 更新日志
22

3-
中文 | [英文](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.md)
3+
中文 | [英文](https://github.com/Tyh2001/fighting-design/blob/master/CHANGELOG.en-US.md)
4+
5+
## 0.0.6 beta.6 (2022-05-31)
46

57
**fix**
68

docs/docs/components/image.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
如果在大图预览的时候,你不需要使用下放的操作栏,可以通过 `preview-show-option` 属性将其隐藏
8585

8686
<f-image
87-
width="200px"
88-
src="https://tianyuhao.cn/images/auto/1.png"
89-
:preview-list="listImg"
90-
:preview-show-option="false"
87+
width="200px"
88+
src="https://tianyuhao.cn/images/auto/1.png"
89+
:preview-list="listImg"
90+
:preview-show-option="false"
9191
/>
9292

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

188188
<f-image
189-
width="200px"
190-
src="https://tianyuhao.cn/images/auto/3.png2"
191-
block
192-
err-src="https://tianyuhao.cn/images/auto/2.png"
189+
width="200px"
190+
src="https://tianyuhao.cn/images/auto/3.png2"
191+
block
192+
err-src="https://tianyuhao.cn/images/auto/2.png"
193193
/>
194194

195195
<f-image
196-
width="200px"
197-
src="https://tianyuhao.cn/images/auto/3.png2"
198-
block
199-
err-src="https://tianyuhao.cn/images/auto/2.png2"
196+
width="200px"
197+
src="https://tianyuhao.cn/images/auto/3.png2"
198+
block
199+
err-src="https://tianyuhao.cn/images/auto/2.png2"
200200
/>
201201

202202
::: details 显示代码

docs/docs/docs/changelog.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

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

5+
## 0.0.6 beta.6 (2022-05-31)
6+
7+
**fix**
8+
9+
- 修复 `FImage` 组件旋转方向一致的问题
10+
- 修复 `FIcon` 组件预览窗操作点击失效问题,处理点击焦点位置
11+
- 修复 `FIcon``FButton` 组件的类型问题
12+
- `FImage` 组件的 `select` 属性改为 `no-select` 用于禁止选择
13+
14+
**feat**
15+
16+
- 新增 `FImage` 组件预览窗图片预加载功能
17+
- 新增 `FImage` 组件预览窗渐入动画效果
18+
- 新增 `FImage` 组件预览窗点击遮罩层隐藏功能,可通过 `modal-close` 配置项来配置
19+
- 新增 `FImage` 组件预览窗图标样式优化了一些细节
20+
- 新增 `FImage` 组件预览图左右按钮切换加入图片长度识别,是否展示效果
21+
- 新增 `FImage` 组件 `show-close-btn` 配置项可配置是否展示预览窗的关闭按钮
22+
- 新增 `FImage` 组件可通过鼠标滚轮放大缩小图片功能
23+
- 新增 `FImage` 组件 `preview-round` 配置项,可配置预览图的圆角
24+
525
## 0.0.5 beta.5 (2022-05-27)
626

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

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

packages/fighting-design/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fighting-design",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Fighting design is a Vue3 lightweight component library written with TypeScript + Template.",
55
"keywords": [
66
"fighting",

packages/fighting-type/image.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ export interface optionClickInterface {
6262

6363
export interface callbackInterface {
6464
(params: boolean, width: number): void
65-
}
65+
}

packages/fighting-type/install.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export interface installInterface {
66

77
export interface mainVNodeInterface extends VNode {
88
install: (app: App) => void
9-
}
9+
}

packages/fighting-utils/install.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import type { installInterface, mainVNodeInterface } from '@fighting-design/fighting-type'
1+
import type {
2+
installInterface,
3+
mainVNodeInterface
4+
} from '@fighting-design/fighting-type'
25
import type { App } from 'vue'
36

47
/**
58
* 注册组件
69
* @param main 组件实例
710
* @param name 组件名
811
*/
9-
export const install: installInterface = (main: mainVNodeInterface, name: string): void => {
12+
export const install: installInterface = (
13+
main: mainVNodeInterface,
14+
name: string
15+
): void => {
1016
main.install = (app: App): void => {
1117
app.component(name, main)
1218
}

packages/fighting-utils/utils.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import type { keepDecimalInterface } from '@fighting-design/fighting-type'
66
* @param no 保留位数
77
* @returns 转换结果
88
*/
9-
export const keepDecimal: keepDecimalInterface = (num: number, no: number = 2): number => {
9+
export const keepDecimal: keepDecimalInterface = (
10+
num: number,
11+
no: number = 2
12+
): number => {
1013
return Number(num.toFixed(no))
1114
}

0 commit comments

Comments
 (0)