Skip to content

Commit

Permalink
revert: 发布新版本 0.67.2 (2024-03-01)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Mar 1, 2024
1 parent ca1416d commit 5379202
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 47 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md)

## 0.67.2 (2024-03-01)

- Add `f-form-item` object deep validation
- Fix the issue of `f-form-item` not recognizing data type parameters and reporting errors

## 0.67.1 (2024-01-02)

- Fix package.json configuration issue
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.67.2 (2024-03-01)

- 新增 `f-form-item` 对象深层校验
- 修复 `f-form-item` 对于数据类型参数无法识别报错的问题

Expand Down
5 changes: 5 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## 0.67.2 (2024-03-01)

- 新增 `f-form-item` 对象深层校验
- 修复 `f-form-item` 对于数据类型参数无法识别报错的问题

## 0.67.1 (2024-01-02)

- 修复 package.json 配置问题
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.67.1",
"version": "0.67.2",
"description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.",
"keywords": [
"fighting",
Expand Down
48 changes: 2 additions & 46 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,47 +1,3 @@
<script lang="ts" setup>
import { reactive } from 'vue'
import { FMessage } from 'fighting-design'
import type { FormSubmit } from 'fighting-design'
<script lang="ts" setup></script>

const ruleForm2 = reactive({
name: '',
info: {
password: ''
}
})
const handelSubmit2: FormSubmit = (ok, model, res, evt): void => {
console.log(ok, model)
if (!ok) return
FMessage.primary(`ok: ${ok} model:${model} res: ${res} evt: ${evt} 开始提交表单`)
}
</script>

<template>
{{ ruleForm2 }}
<f-form :model="ruleForm2" label-width="60px" :on-submit="handelSubmit2">
<f-form-item
label="密码"
name="name"
:rules="[{ min: 6, message: '至少输入六位数密码' }]"
>
<f-input v-model="ruleForm2.name" type="password" placeholder="请输入密码" />
</f-form-item>

<f-form-item
label="密码"
name="info.password"
:rules="[{ min: 6, message: '至少输入六位数密码' }]"
>
<f-input
v-model="ruleForm2.info.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 5379202

Please sign in to comment.