diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 2853581788..b0074c758d 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.44.0 (2023-06-18) + +- Modify the `f-tag` to close the logic and change the internal state to data startup +- Add `f-tag` component `on-click` configuration item + ## 0.43.3 (2023-06-18) - Fix style issues with `f-dialog` diff --git a/CHANGELOG.md b/CHANGELOG.md index 92eee1602e..a947101ca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ 中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md) +## 0.44.0 (2023-06-18) + +- 修改 `f-tag` 关闭逻辑,从内部状态改为数据启动 +- 新增 `f-tag` 组件 `on-click` 配置项 + ## 0.43.3 (2023-06-18) - 修复 `f-dialog` 样式问题 diff --git a/docs/components/tag.md b/docs/components/tag.md index f67c987772..879fa3f9a5 100644 --- a/docs/components/tag.md +++ b/docs/components/tag.md @@ -180,7 +180,8 @@ | `size` | 标签大小 | FightingSize | `large` `middle` `small` `mini` | small | | `simple` | 是否为简约模式 | boolean | —— | false | | `block` | 是否为块级元素 | boolean | —— | false | -| `on-close` | 点击关闭按钮触发的回调 | Function | —— | —— | +| `on-close` | 点击关闭按钮触发的回调 | HandleMouse | —— | —— | +| `on-click` | 点击执行的回调 | HandleMouse | —— | —— | ## Slots diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index 92eee1602e..a947101ca1 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.44.0 (2023-06-18) + +- 修改 `f-tag` 关闭逻辑,从内部状态改为数据启动 +- 新增 `f-tag` 组件 `on-click` 配置项 + ## 0.43.3 (2023-06-18) - 修复 `f-dialog` 样式问题 diff --git a/packages/fighting-design/package.json b/packages/fighting-design/package.json index 2fbace1536..868d574623 100644 --- a/packages/fighting-design/package.json +++ b/packages/fighting-design/package.json @@ -1,6 +1,6 @@ { "name": "fighting-design", - "version": "0.43.3", + "version": "0.44.0", "description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.", "keywords": [ "fighting", diff --git a/packages/fighting-design/tag/src/props.ts b/packages/fighting-design/tag/src/props.ts index 0dcb091cb2..eb2982c9db 100644 --- a/packages/fighting-design/tag/src/props.ts +++ b/packages/fighting-design/tag/src/props.ts @@ -7,7 +7,7 @@ import { import { FIGHTING_SIZE, FIGHTING_TYPE } from '../../_tokens' import type { ExtractPropTypes } from 'vue' import type { - HandleEvent, + HandleMouse, FightingType, FightingSize, FightingIcon @@ -51,7 +51,9 @@ export const Props = { /** 线性的 */ line: setBooleanProp(), /** 点击关闭按钮触发 */ - onClose: setFunctionProp() + onClose: setFunctionProp(), + /** 点击关闭按钮触发 */ + onClick: setFunctionProp() } as const /** tag 组件 props 类型 */ diff --git a/packages/fighting-design/tag/src/tag.vue b/packages/fighting-design/tag/src/tag.vue index b59b86f6a0..2a42be0a43 100644 --- a/packages/fighting-design/tag/src/tag.vue +++ b/packages/fighting-design/tag/src/tag.vue @@ -1,6 +1,5 @@