From 99432d4fd3af3c8fca0fb6e29925690f5a8f27ed Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 27 May 2025 21:12:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ListPage=20=E7=9A=84=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client-modules/src/render/components/list.tsx | 13 +++++++++++-- .../client-modules/src/render/ui/statistics.tsx | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages-user/client-modules/src/render/components/list.tsx b/packages-user/client-modules/src/render/components/list.tsx index 5e60e27..583e0e4 100644 --- a/packages-user/client-modules/src/render/components/list.tsx +++ b/packages-user/client-modules/src/render/components/list.tsx @@ -121,6 +121,8 @@ export interface ListPageProps extends ListProps { right?: boolean; /** 是否显示关闭按钮 */ close?: boolean; + /** 关闭按钮的位置,相对于组件定位 */ + closeLoc?: ElementLocator; } export type ListPageEmits = { @@ -145,7 +147,9 @@ const listPageProps = { 'winskin', 'color', 'border', - 'alphaRange' + 'alphaRange', + 'close', + 'closeLoc' ], emits: ['update', 'update:selected', 'close'] } satisfies SetupComponentOptions< @@ -202,7 +206,12 @@ export const ListPage = defineComponent< slots.default?.(selected.value)} {props.close && ( - + )} ); diff --git a/packages-user/client-modules/src/render/ui/statistics.tsx b/packages-user/client-modules/src/render/ui/statistics.tsx index a60c7f0..86d8a64 100644 --- a/packages-user/client-modules/src/render/ui/statistics.tsx +++ b/packages-user/client-modules/src/render/ui/statistics.tsx @@ -53,6 +53,7 @@ export const Statistics = defineComponent(props => { close onClose={close} lineHeight={24} + closeLoc={[10, 470, void 0, void 0, 0, 1]} > {{ total: () => ,