wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/base/prompt-editor/plugins/variable-value-block/node.tsx
@@ -1,6 +1,7 @@
import type {
  EditorConfig,
  LexicalNode,
  NodeKey,
  SerializedTextNode,
} from 'lexical'
import {
@@ -17,9 +18,9 @@
    return new VariableValueBlockNode(node.__text, node.__key)
  }
  // constructor(text: string, key?: NodeKey) {
  //   super(text, key)
  // }
  constructor(text: string, key?: NodeKey) {
    super(text, key)
  }
  createDOM(config: EditorConfig): HTMLElement {
    const element = super.createDOM(config)