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: () => ,