Skip to content

Commit

Permalink
revert: 发布新版本 0.37.0 (2023-05-10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed May 10, 2023
1 parent 4401f33 commit 07a10bc
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md)

## 0.37.0 (2023-05-10)

**Update**

- Optimization of `f-skeleton` component style details
- Add `row gap` and `difference` configuration items to the `f-skeleton` component
- `f-form` component `on-submit` callback parameter type modification, changing from one object type to four parameter types
- `f-form item` component added `validator` validation method
- Added section `hooks` encapsulation

**Fix**

- Fix the issue where the `f-form` component did not pass rules and name, which also triggered form validation
- Fix the issue where clicking on the `f-trigger` content section will also close

## 0.36.1 (2023-05-08)

- Fix style issues with `f-dialog`
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

## 0.37.0 (2023-05-10)

**更新**

- `f-skeleton` 组件样式细节优化
Expand Down
15 changes: 15 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

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

## 0.37.0 (2023-05-10)

**更新**

- `f-skeleton` 组件样式细节优化
- `f-skeleton` 组件新增 `row-gap``difference` 配置项
- `f-form` 组件 `on-submit` 回调参数类型修改,由一个对象类型,改为四个参数类型
- `f-form-item` 组件新增 `validator` 校验方法
- 新增部分 `hooks` 封装

**修复**

- 修复 `f-form` 组件没有传递 rules 和 name 也触发表单校验的问题
- 修复点击 `f-trigger` 内容部分也会关闭的问题

## 0.36.1 (2023-05-08)

- 修复 `f-dialog` 样式问题
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.36.1",
"version": "0.37.0",
"description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.",
"keywords": [
"fighting",
Expand Down
31 changes: 2 additions & 29 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
<script lang="ts" setup>
import { reactive } from 'vue'
import { FMessage } from 'fighting-design'
<script lang="ts" setup></script>

const ruleForm = reactive({
account: '',
password: ''
})
const handelSubmit = (): void => {
FMessage.primary('开始提交表单')
}
</script>

<template>
{{ ruleForm }}
<f-form label-width="60px" :on-submit="handelSubmit" label-position="left">
<f-form-item label="账号">
<f-input v-model="ruleForm.account" type="text" placeholder="请输入账号" />
</f-form-item>

<f-form-item label="密码">
<f-input v-model="ruleForm.password" type="password" placeholder="请输入密码" />
</f-form-item>

<f-form-item>
<f-button type="primary" native-type="submit" block>提交表单</f-button>
</f-form-item>
</f-form>
</template>
<template></template>

0 comments on commit 07a10bc

Please sign in to comment.