Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-12-03 11:20:08 +00:00
commit 42e954d4cf
3 changed files with 54 additions and 1 deletions

View File

@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.3.55](https://github.com/nocobase/nocobase/compare/v1.3.54...v1.3.55) - 2024-12-03
### 🚀 Improvements
- **[client]** To use icons with more accurate meanings for block initializers ([#5757](https://github.com/nocobase/nocobase/pull/5757)) by @mytharcher
### 🐛 Bug Fixes
- **[client]**
- Fix E2E cases based on changed icons ([#5768](https://github.com/nocobase/nocobase/pull/5768)) by @mytharcher
- Fix select field to display blank when data is empty ([#5762](https://github.com/nocobase/nocobase/pull/5762)) by @katherinehhh
- **[database]** Fix update hasOne/belongsTo association values without foreign key ([#5754](https://github.com/nocobase/nocobase/pull/5754)) by @chareice
- **[Data source manager]** Fix incorrect display of source key ([#5771](https://github.com/nocobase/nocobase/pull/5771)) by @katherinehhh
- **[Workflow: Custom action event]**
- Allow all roles to triggering custom action event in external data sources by @mytharcher
- Fix default data source as main by @mytharcher
- Fix data source error when not matched by @mytharcher
- Fix custom action trigger not triggering on association by @mytharcher
## [v1.3.53](https://github.com/nocobase/nocobase/compare/v1.3.52...v1.3.53) - 2024-11-28 ## [v1.3.53](https://github.com/nocobase/nocobase/compare/v1.3.52...v1.3.53) - 2024-11-28
### 🚀 Improvements ### 🚀 Improvements

View File

@ -5,6 +5,32 @@
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/), 格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),
并且本项目遵循 [语义化版本](https://semver.org/spec/v2.0.0.html)。 并且本项目遵循 [语义化版本](https://semver.org/spec/v2.0.0.html)。
## [v1.3.55](https://github.com/nocobase/nocobase/compare/v1.3.54...v1.3.55) - 2024-12-03
### 🚀 优化
- **[client]** 区块初始化器使用更匹配类型含义的图标 ([#5757](https://github.com/nocobase/nocobase/pull/5757)) by @mytharcher
### 🐛 修复
- **[client]**
- 修复图标变更后导致的 E2E 用例执行失败 ([#5768](https://github.com/nocobase/nocobase/pull/5768)) by @mytharcher
- 修复 select 数据为空时应显示空白 ([#5762](https://github.com/nocobase/nocobase/pull/5762)) by @katherinehhh
- **[database]** 修复带外键更新关系字段的问题 ([#5754](https://github.com/nocobase/nocobase/pull/5754)) by @chareice
- **[数据源管理]** 修复 source key 显示不正确 ([#5771](https://github.com/nocobase/nocobase/pull/5771)) by @katherinehhh
- **[工作流:自定义操作事件]**
- 允许所有角色都可触发外部数据源数据表上的自定义操作事件 by @mytharcher
- 修复自定义操作事件默认数据源 by @mytharcher
- 修复自定义操作事件数据源不匹配的错误 by @mytharcher
- 修复自定义操作事件在关系区块无法触发的问题 by @mytharcher
## [v1.3.53](https://github.com/nocobase/nocobase/compare/v1.3.52...v1.3.53) - 2024-11-28 ## [v1.3.53](https://github.com/nocobase/nocobase/compare/v1.3.52...v1.3.53) - 2024-11-28
### 🚀 优化 ### 🚀 优化

View File

@ -1711,12 +1711,13 @@ export function useLinkActionProps(componentProps?: any) {
const { t } = useTranslation(); const { t } = useTranslation();
const url = componentPropsValue?.['url']; const url = componentPropsValue?.['url'];
const searchParams = componentPropsValue?.['params'] || []; const searchParams = componentPropsValue?.['params'] || [];
const type = componentPropsValue?.['type'] || 'default';
const openInNewWindow = fieldSchema?.['x-component-props']?.['openInNewWindow']; const openInNewWindow = fieldSchema?.['x-component-props']?.['openInNewWindow'];
const { parseURLAndParams } = useParseURLAndParams(); const { parseURLAndParams } = useParseURLAndParams();
const basenameOfCurrentRouter = useRouterBasename(); const basenameOfCurrentRouter = useRouterBasename();
return { return {
type: 'default', type,
async onClick() { async onClick() {
if (!url) { if (!url) {
message.warning(t('Please configure the URL')); message.warning(t('Please configure the URL'));