Skip to content

Commit

Permalink
revert: 发布新版本 0.13.0 (2022-12-28) 🚩🚩🚩
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Dec 28, 2022
1 parent da01b40 commit e29b04e
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md)

## 0.13.0 (2022-12-28)

**New Features**

- Add `f-box` component
- Complete `f-tree` components

**Repair**

- Fix the error reported by `f-button` component ripple effect

## 0.12.0 (2022-12-20)

**New Features**
Expand All @@ -29,7 +40,7 @@ English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/maste

**Repair**

- Fix the warning error of `f-image-preview`
- Fix the warning error of `f-image-preview`
- Fix `f-button` component style details
- Fix `f-tag` component style details
- Fix `f-space` component style details
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

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

## 0.13.0 (2022-12-28)

**新功能**

- 新增 `f-box` 组件
- 完善 `f-tree` 组件

**修复**

Expand Down
5 changes: 5 additions & 0 deletions docs/.vitepress/theme/components/src/search-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,10 @@ export const searchList = [
title: 'Form 表单',
rule: 'formForm 表单',
url: 'components/form'
},
{
title: 'Box 盒子',
rule: 'boxBox 盒子',
url: 'components/box'
}
] as const
3 changes: 2 additions & 1 deletion docs/.vitepress/utils/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export const sidebar = {
{ text: 'Text 文本', link: '/components/text' },
{ text: 'Layout 布局', link: '/components/layout' },
{ text: 'Space 间距', link: '/components/space' },
{ text: 'Color 色彩', link: '/components/color' }
{ text: 'Color 色彩', link: '/components/color' },
{ text: 'Box 盒子', link: '/components/box' }
]
},
{
Expand Down
47 changes: 47 additions & 0 deletions docs/components/box.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Box 盒子

万能的盒子元素

- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/box)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/docs/components/box.md)

## 基本使用

可以直接将它当做 div 来使用,它支持一些原生的常用属性配置

::: demo

<template #source>
<f-box width="200px" height="200px" padding="30px" background="skyblue">hello</f-box>
</template>

```html
<f-box width="200px" height="200px" padding="30px" background="skyblue">hello</f-box>
```

:::

## Attributes

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ------------ | --------------------------------------------------------------------------------------- | --------------- | ------ | ------ |
| `role` | 原生属性 [Roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) | string | —— | —— |
| `padding` | 内边距 | string / number | —— | —— |
| `width` | 宽度 | string / number | —— | —— |
| `height` | 高度 | string / number | —— | —— |
| `background` | 自定义背景色 | string | —— | —— |
| `display` | 原生属性 | string | —— | —— |

## Interface

组件导出以下类型定义:

```ts
import type { BoxInstance, BoxProps } from 'fighting-design'
```

## Contributors

<a href="https://github.com/Tyh2001" target="_blank">
<f-avatar round src="https://avatars.githubusercontent.com/u/73180970?v=4" />
</a>
11 changes: 11 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

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

## 0.13.0 (2022-12-28)

**新功能**

- 新增 `f-box` 组件
- 完善 `f-tree` 组件

**修复**

- 修复 `f-button` 组件涟漪效果报错问题

## 0.12.0 (2022-12-20)

**新功能**
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.12.0",
"version": "0.13.0",
"description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.",
"keywords": [
"fighting",
Expand Down

0 comments on commit e29b04e

Please sign in to comment.