@tarojs/components
Version:
Taro 组件库。
25 lines (24 loc) • 636 B
TypeScript
import { ComponentInterface } from '../../stencil-public-runtime';
interface Attributes {
[propName: string]: string | {
[propName: string]: string;
};
}
interface NodeType {
name: string;
attrs?: Attributes;
children?: ElementType[];
}
interface TextType {
type: 'text';
text: string;
}
declare type ElementType = NodeType | TextType;
declare type StringType = string;
export declare type Nodes = ElementType[] | StringType;
export declare class RichText implements ComponentInterface {
nodes: Nodes;
renderNode: (node: ElementType) => string | import("@stencil/core").VNode | null;
render(): any;
}
export {};