From f8b17c96c539dda38b360d6635ddd061907d8cc8 Mon Sep 17 00:00:00 2001 From: "jlj05024111@163.com" Date: Thu, 30 Oct 2025 19:09:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E7=82=B9=E5=87=BB=E5=88=86=E7=BB=84=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E6=97=B6=EF=BC=8C=E6=9C=AA=E8=83=BD=E6=90=BA=E5=B8=A6?= =?UTF-8?q?=E5=88=86=E7=BB=84=E6=95=B0=E6=8D=AE=E5=88=B0=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9B=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=90=9C=E7=B4=A2=E8=A1=A8=E5=8D=95=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=B7=A6=E5=8F=B3=E8=BE=B9=E8=B7=9D=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95=E4=B8=8B=E6=8B=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=80=BC=E4=B8=BA0=E6=97=B6=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E8=83=BD=E5=9B=9E=E6=98=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/control/data-view/data-view.tsx | 8 ++++---- src/control/form/search-form/search-form.scss | 2 +- src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b428fd8b..e4ac9164 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,7 @@ ### Fixed +- 修复卡片视图点击分组新建时,未能携带分组数据到新建视图的问题;移除搜索表单搜索按钮左右边距;修复表单下拉列表值为0时,未能回显的问题 - 修复搜索表单保存搜索条件后未清空当前设置的保存条件名字的问题 - 修复表单直接内容是视频类型时,未配置的参数会覆盖掉默认的参数 - 修复分割容器在统一页面内有多个可交互元素时,分割容器的pointerdown事件被浏览器忽略的问题 diff --git a/src/control/data-view/data-view.tsx b/src/control/data-view/data-view.tsx index 54c8af34..1d28739e 100644 --- a/src/control/data-view/data-view.tsx +++ b/src/control/data-view/data-view.tsx @@ -282,7 +282,7 @@ export const DataViewControl = defineComponent({ ); }; - const renderContent = (items: IData[]) => { + const renderContent = (items: IData[], group?: IData) => { if (!items.length) { return renderNoData(); } @@ -298,14 +298,14 @@ export const DataViewControl = defineComponent({ ); })} , - renderAddBtn(), + renderAddBtn(group), ]; } return [ ...items.map(item => { return renderCard(item); }), - renderAddBtn(), + renderAddBtn(group), ]; }; @@ -321,7 +321,7 @@ export const DataViewControl = defineComponent({ {group.caption} ,
- {renderContent(group.children)} + {renderContent(group.children, group)}
, ]; })} diff --git a/src/control/form/search-form/search-form.scss b/src/control/form/search-form/search-form.scss index dd08bd69..5206e3fa 100644 --- a/src/control/form/search-form/search-form.scss +++ b/src/control/form/search-form/search-form.scss @@ -1,6 +1,6 @@ $control-search-form: ( 'bg-color': transparent, - 'padding': getCssVar(spacing, tight) getCssVar(spacing, base), + 'padding': getCssVar(spacing, tight) 0, 'right-gap': getCssVar(spacing, base), 'btn-margin': 0 0 0 getCssVar(spacing, tight), 'form-page-item-padding-top': calc(getCssVar('padding') / 2), diff --git a/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx b/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx index 8b58dbac..7a40aec8 100644 --- a/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +++ b/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx @@ -76,7 +76,7 @@ export const IBizDropdown = defineComponent({ watch( () => props.value, newVal => { - if (newVal || newVal === null) { + if (newVal !== undefined) { curValue.value = newVal; if (newVal === null) { curValue.value = ''; -- Gitee