-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react写的tsx文件 可以转成vue的js文件么 #22
Comments
import React, { FC, useState, useEffect, useRef } from 'react'; import { EditorView, highlightSpecialChars, keymap, ViewUpdate, placeholder } from '@codemirror/view'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; const promqlExtension = new PromQLExtension(); interface CMExpressionInputProps { const dynamicConfigCompartment = new Compartment(); // Autocompletion strategy that wraps the main one and enriches promQL(context: CompletionContext): Promise<CompletionResult | null> | CompletionResult | null {
} const CMExpressionInput: FC = ({ // (Re)initialize editor based on settings / setting changes.
}, [enableAutocomplete, enableHighlighting, enableLinter, executeQuery, onExpressionChange, queryHistory]); const insertAtCursor = (value: string) => { return ( <Button className="btn-light border" title="Open metrics explorer" onClick={() => setShowMetricsExplorer(true)}> Execute
); export default CMExpressionInput; |
Please copy your code of React Component into the following block
// your code
The text was updated successfully, but these errors were encountered: