diff --git a/comps/md/MasterDetail.tsx b/comps/md/MasterDetail.tsx index 873f557..0e1f7e9 100755 --- a/comps/md/MasterDetail.tsx +++ b/comps/md/MasterDetail.tsx @@ -142,7 +142,9 @@ export const MasterDetail: FC = (arg) => { {md.props.mode === "full" && } {md.props.mode === "v-split" && } {md.props.mode === "h-split" && } - {[footer]} + {arg.show_footer !== "hidden" && ( + {[footer]} + )} )} diff --git a/comps/md/gen/gen-table-list.ts b/comps/md/gen/gen-table-list.ts index d67cc7c..63fefd9 100755 --- a/comps/md/gen/gen-table-list.ts +++ b/comps/md/gen/gen-table-list.ts @@ -78,7 +78,7 @@ const genList = async (opt: GenOpt) => { const list_child = createItem({ name: "list: fields", adv: { - css: "& {\n display: flex;\n\n &:hover {\n background: #ecf4ff;\n }\n}", + css: "& {\n display: flex;\n\n &.desktop { &:hover {\n background: #ecf4ff;\n } }\n}", }, padding: { l: 10, diff --git a/comps/md/utils/typings.ts b/comps/md/utils/typings.ts index e933fb3..6441f8b 100755 --- a/comps/md/utils/typings.ts +++ b/comps/md/utils/typings.ts @@ -18,6 +18,7 @@ export type MDProps = { name: string; mode: "full" | "h-split" | "v-split"; show_head: "always" | "only-master" | "only-child" | "hidden"; + show_footer: "always" | "only-master" | "only-child" | "hidden"; tab_mode: "h-tab" | "v-tab" | "hidden"; editor_tab: string; gen_fields: any; diff --git a/exports.tsx b/exports.tsx index 41a67c9..73c0dc7 100755 --- a/exports.tsx +++ b/exports.tsx @@ -1,9 +1,12 @@ export { FieldLoading } from "@/comps/ui/field-loading"; import { lazify, lazifyMany } from "@/utils/lazify"; +import __get from "lodash.get"; export { guessLabel } from "./utils/guess-label"; export { fetchLinkParams } from "./comps/form/field/type/TypeLink"; export { prasi_gen } from "./gen/prasi_gen"; +export const _get = __get; + export const Accordion = lazify( async () => (await import("@/comps/ui/accordion")).Accordion );