Răsfoiți Sursa

add ParaShell

visuddhinanda 2 ani în urmă
părinte
comite
f577d12992
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      dashboard/src/components/template/MdTpl.tsx

+ 3 - 0
dashboard/src/components/template/MdTpl.tsx

@@ -5,6 +5,7 @@ import Mermaid from "./Mermaid";
 import Nissaya from "./Nissaya";
 import Note from "./Note";
 import ParaHandle from "./ParaHandle";
+import ParaShell from "./ParaShell";
 import Quote from "./Quote";
 import QuoteLink from "./QuoteLink";
 import SentEdit from "./SentEdit";
@@ -51,6 +52,8 @@ const Widget = ({ tpl, props, children }: IWidgetMdTpl) => {
       return <GrammarPopShell props={props ? props : ""} />;
     case "quote-link":
       return <QuoteLink props={props ? props : ""} />;
+    case "para-shell":
+      return <ParaShell props={props ? props : ""}>{children}</ParaShell>;
     default:
       return <>未定义模版({tpl})</>;
   }