@textbus/xnote
Version:
A high-performance rich text editor that supports multiplayer online collaboration.
14 lines (13 loc) • 455 B
TypeScript
import { Slot } from '@textbus/core';
import { DynamicRef } from '@viewfly/core';
import { HTMLAttributes } from '@viewfly/platform-browser';
export interface SlotRenderProps extends HTMLAttributes<unknown> {
slot: Slot;
/** 默认值为 div */
tag?: string;
class?: string;
renderEnv?: boolean;
elRef?: DynamicRef<HTMLElement>;
elKey?: number | string;
}
export declare function SlotRender(props: SlotRenderProps): () => any;