fix header prefix suffix
This commit is contained in:
parent
b3eeaea11e
commit
a98a94bd27
|
|
@ -12,6 +12,7 @@ import {
|
||||||
} from "./utils/md-hash";
|
} from "./utils/md-hash";
|
||||||
import { mdRenderLoop } from "./utils/md-render-loop";
|
import { mdRenderLoop } from "./utils/md-render-loop";
|
||||||
import { MDLocalInternal, MDProps } from "./utils/typings";
|
import { MDLocalInternal, MDProps } from "./utils/typings";
|
||||||
|
import { any } from "zod";
|
||||||
|
|
||||||
export const MasterDetail: FC<MDProps> = (arg) => {
|
export const MasterDetail: FC<MDProps> = (arg) => {
|
||||||
const {
|
const {
|
||||||
|
|
@ -38,6 +39,8 @@ export const MasterDetail: FC<MDProps> = (arg) => {
|
||||||
breadcrumb: [],
|
breadcrumb: [],
|
||||||
internalRender() {},
|
internalRender() {},
|
||||||
render: () => {},
|
render: () => {},
|
||||||
|
master: { prefix: null, suffix: null },
|
||||||
|
child: { prefix: null, suffix: null },
|
||||||
},
|
},
|
||||||
selected: null,
|
selected: null,
|
||||||
tab: {
|
tab: {
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ export type MDLocalInternal = {
|
||||||
breadcrumb: BreadItem[];
|
breadcrumb: BreadItem[];
|
||||||
internalRender: () => void;
|
internalRender: () => void;
|
||||||
render: () => void;
|
render: () => void;
|
||||||
|
master: { prefix: any; suffix: any };
|
||||||
|
child: { prefix: any; suffix: any };
|
||||||
};
|
};
|
||||||
actions: MDActions;
|
actions: MDActions;
|
||||||
selected: any;
|
selected: any;
|
||||||
|
|
@ -105,6 +107,8 @@ export const MasterDetailType = `const md = {
|
||||||
url?: string;
|
url?: string;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
}[]
|
}[]
|
||||||
|
master: { prefix: any; suffix: any };
|
||||||
|
child: { prefix: any; suffix: any };
|
||||||
};
|
};
|
||||||
actions: (
|
actions: (
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue