From c036240ef6eb8d9e9e104f6d035cfc1edabae06d Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Fri, 7 Nov 2025 15:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96HiddenInfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/HiddenInfo/gwj/index.d.ts | 2 ++ components/HiddenInfo/gwj/index.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/components/HiddenInfo/gwj/index.d.ts b/components/HiddenInfo/gwj/index.d.ts index 039d75d..b71d541 100644 --- a/components/HiddenInfo/gwj/index.d.ts +++ b/components/HiddenInfo/gwj/index.d.ts @@ -14,6 +14,8 @@ export interface HiddenInfoProps { hiddenIdKey?: string; /** 是否显示头部的返回,默认 true */ isShowHeaderBack?: boolean; + /** 获取数据 */ + onGetData?: (data: Record) => void; } /** diff --git a/components/HiddenInfo/gwj/index.js b/components/HiddenInfo/gwj/index.js index aad9a58..4218ffd 100644 --- a/components/HiddenInfo/gwj/index.js +++ b/components/HiddenInfo/gwj/index.js @@ -22,6 +22,7 @@ function HiddenInfo(props) { hiddenId = "", hiddenIdKey = "hiddenId", isShowHeaderBack = true, + onGetData, } = props; const [info, setInfo] = useState({ @@ -47,6 +48,7 @@ function HiddenInfo(props) { request(`/hidden/hidden/${id || query[idKey]}`, "get").then((res) => { setInfo(res.data); setLoading(false); + onGetData?.(res.data); }); const hiddenImageFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["3"], eqForeignKey: hiddenId || query[hiddenIdKey] }); setHiddenImageFiles(hiddenImageFiles);