30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import React from "react";
|
|
import "@wangeditor/editor/dist/css/style.css";
|
|
import { WebComponentProps } from "oak-frontend-base";
|
|
import { EntityDict } from "./../../../oak-app-domain";
|
|
export default function Render(props: WebComponentProps<EntityDict, 'article', false, {
|
|
id: string;
|
|
name: string;
|
|
editor: any;
|
|
content?: string;
|
|
origin?: null | EntityDict['extraFile']['Schema']['origin'];
|
|
articleMenuId: string;
|
|
oakId: string;
|
|
tocPosition: 'none' | 'left' | 'right';
|
|
highlightBgColor?: string;
|
|
scrollId?: string;
|
|
tocWidth?: number;
|
|
tocHeight?: number | string;
|
|
height?: number | string;
|
|
tocClosed: boolean;
|
|
execuable: boolean;
|
|
activeColor?: string;
|
|
html: string;
|
|
}, {
|
|
setHtml: (content: string) => void;
|
|
setEditor: (editor: any) => void;
|
|
check: () => void;
|
|
uploadFile: (extraFile: EntityDict['extraFile']['CreateOperationData'], file: File) => Promise<string>;
|
|
gotoPreview: (content?: string, title?: string) => void;
|
|
}>): React.JSX.Element;
|