From cb2bf749cd879aa628cfd8c5a494c3aa40b3693a Mon Sep 17 00:00:00 2001 From: Tyh2001 <1469442737@qq.com> Date: Thu, 27 Apr 2023 12:47:40 +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=200.33.1=20(2023-04-27)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + CHANGELOG.en-US.md | 5 +++++ CHANGELOG.md | 5 +++++ docs/components/form.md | 18 +++++++++++----- docs/docs/changelog.md | 5 +++++ packages/fighting-design/package.json | 2 +- start/src/App.vue | 31 +++------------------------ 7 files changed, 33 insertions(+), 34 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c33b6d0cac..49c4d1e7f8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -125,6 +125,7 @@ "jizhuangxiang", "juln", "kehupandian", + "labelposition", "landtransportation", "layoutdirection", "leftalignment", diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index eb09de4cf5..8c3ab2e491 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -4,6 +4,11 @@ English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md) +## 0.33.1 (2023-04-27) + +- Add `label-position` configuration item to the `f-form` component +- Optimize `f-form` style details + ## 0.33.0 (2023-04-25) - Abolish the `f-table` component `optional` configuration item diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e3acb4bdd..4b8d36ab2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ 中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md) +## 0.33.1 (2023-04-27) + +- `f-form` 组件新增 `label-position` 配置项 +- 优化 `f-form` 样式细节 + ## 0.33.0 (2023-04-25) - 废除 `f-table` 组件 `optional` 配置项 diff --git a/docs/components/form.md b/docs/components/form.md index ee9023ec4c..0029e62cf6 100644 --- a/docs/components/form.md +++ b/docs/components/form.md @@ -151,11 +151,12 @@ ## Form Attributes -| 参数 | 说明 | 类型 | 可选值 | 默认值 | -| ------------- | ------------------------ | ------------------------------------ | ------ | ------ | -| `label-width` | label 的宽度 | string / number | —— | —— | -| `model` | 表单数据对象 | Object | —— | —— | -| `on-submit` | 点击提交按钮后触发的回调 | FormSubmit | —— | —— | +| 参数 | 说明 | 类型 | 可选值 | 默认值 | +| ---------------- | ------------------------ | ------------------------------------------ | ------------- | ------ | +| `label-width` | label 的宽度 | string / number | —— | —— | +| `label-position` | label 位置 | LabelPosition | `top` `right` | top | +| `model` | 表单数据对象 | Object | —— | —— | +| `on-submit` | 点击提交按钮后触发的回调 | FormSubmit | —— | —— | ## FormItem Attributes @@ -187,6 +188,7 @@ import type { FormProps, FormParam, FormSubmit, + LabelPosition, FormItemInstance, FormItemProps, FormItemRulesItem, @@ -228,6 +230,12 @@ interface FormItemRulesItem { type FormItemRules = FormItemRulesItem[] ``` +### LabelPosition + +```ts +type LabelPosition = 'left' | 'top' +``` + ## Contributors diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index 6e3acb4bdd..4b8d36ab2c 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -2,6 +2,11 @@ 中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md) +## 0.33.1 (2023-04-27) + +- `f-form` 组件新增 `label-position` 配置项 +- 优化 `f-form` 样式细节 + ## 0.33.0 (2023-04-25) - 废除 `f-table` 组件 `optional` 配置项 diff --git a/packages/fighting-design/package.json b/packages/fighting-design/package.json index 7e4205092f..9fdbfc038e 100644 --- a/packages/fighting-design/package.json +++ b/packages/fighting-design/package.json @@ -1,6 +1,6 @@ { "name": "fighting-design", - "version": "0.33.0", + "version": "0.33.1", "description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.", "keywords": [ "fighting", diff --git a/start/src/App.vue b/start/src/App.vue index d62f05af63..8470873421 100644 --- a/start/src/App.vue +++ b/start/src/App.vue @@ -1,30 +1,5 @@ - - const ruleForm = reactive({ - account: '', - password: '' - }) + - const handelSubmit = (): void => { - FMessage.primary('开始提交表单') - } - - - +