跳到主要内容
版本:1.x

Class: MonacoEditor

molecule.component.MonacoEditor

Hierarchy

Constructors

constructor

new MonacoEditor(props)

Parameters

NameType
propsany

Overrides

PureComponent<IMonacoEditorProps\>.constructor

Defined in

components/monaco/index.tsx:40

Properties

monacoDom

Private monacoDom: HTMLDivElement

The dom element of editor container

Defined in

components/monaco/index.tsx:36


monacoInstance

Private monacoInstance: undefined | IStandaloneCodeEditor

The instance of monaco

Defined in

components/monaco/index.tsx:32


monacoService

Private Readonly monacoService: IMonacoService

Defined in

components/monaco/index.tsx:38

Methods

componentDidMount

componentDidMount(): void

Returns

void

Overrides

PureComponent.componentDidMount

Defined in

components/monaco/index.tsx:45


componentDidUpdate

componentDidUpdate(prevProps): void

Parameters

NameType
prevPropsany

Returns

void

Overrides

PureComponent.componentDidUpdate

Defined in

components/monaco/index.tsx:55


render

render(): Element

Returns

Element

Overrides

PureComponent.render

Defined in

components/monaco/index.tsx:62