diff --git a/comps/md/MasterDetail.tsx b/comps/md/MasterDetail.tsx index ef8858f..e2a4107 100755 --- a/comps/md/MasterDetail.tsx +++ b/comps/md/MasterDetail.tsx @@ -12,6 +12,7 @@ import { } from "./utils/md-hash"; import { mdRenderLoop } from "./utils/md-render-loop"; import { MDLocalInternal, MDProps } from "./utils/typings"; +import { any } from "zod"; export const MasterDetail: FC = (arg) => { const { @@ -38,6 +39,8 @@ export const MasterDetail: FC = (arg) => { breadcrumb: [], internalRender() {}, render: () => {}, + master: { prefix: null, suffix: null }, + child: { prefix: null, suffix: null }, }, selected: null, tab: { diff --git a/comps/md/utils/typings.ts b/comps/md/utils/typings.ts index 08c00dc..2126c6d 100755 --- a/comps/md/utils/typings.ts +++ b/comps/md/utils/typings.ts @@ -41,6 +41,8 @@ export type MDLocalInternal = { breadcrumb: BreadItem[]; internalRender: () => void; render: () => void; + master: { prefix: any; suffix: any }; + child: { prefix: any; suffix: any }; }; actions: MDActions; selected: any; @@ -105,6 +107,8 @@ export const MasterDetailType = `const md = { url?: string; onClick?: () => void; }[] + master: { prefix: any; suffix: any }; + child: { prefix: any; suffix: any }; }; actions: ( {