import React from 'react'; import XBaseDisplay, { XBaseDisplayProps } from "../base/XBaseDisplay"; export interface XCodeLiveProps extends XBaseDisplayProps { /** * 预览类型 */ liveType?: string | "LiveEditor" | "LiveError" | "LivePreview" | "LiveProvider" | "Editor"; children?: object; } /** * 简单的编辑JS代码并可以执行代码结果 * @name 代码可视组件 * @groupName */ export default class XCodeLive extends XBaseDisplay { static ComponentName: string; static LiveType: { LiveEditor: string; LiveError: string; LivePreview: string; LiveProvider: string; Editor: string; }; static LiveEditor: (props?: XCodeLiveProps) => React.JSX.Element; static LiveError: (props?: XCodeLiveProps) => React.JSX.Element; static LivePreview: (props?: XCodeLiveProps) => React.JSX.Element; static LiveProvider: (props?: XCodeLiveProps) => React.JSX.Element; static Editor: (props?: XCodeLiveProps) => React.JSX.Element; static defaultProps: { styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; width: string; height: string; visible: boolean; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; componentDidMount(): Promise; instance: any; render(): React.JSX.Element; }