visuddhinanda преди 2 години
родител
ревизия
b9f2d9241f
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      dashboard/src/components/template/MdView.tsx

+ 7 - 1
dashboard/src/components/template/MdView.tsx

@@ -8,6 +8,7 @@ interface IWidget {
   placeholder?: string;
   wordWidget?: boolean;
   convertor?: TCodeConvertor;
+  style?: React.CSSProperties;
 }
 const Widget = ({
   html,
@@ -15,9 +16,14 @@ const Widget = ({
   wordWidget = false,
   placeholder,
   convertor,
+  style,
 }: IWidget) => {
   const jsx = html ? XmlToReact(html, wordWidget, convertor) : placeholder;
-  return <Paragraph className={className}>{jsx}</Paragraph>;
+  return (
+    <Paragraph style={style} className={className}>
+      {jsx}
+    </Paragraph>
+  );
 };
 
 export default Widget;