UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

17 lines (16 loc) 724 B
import React from 'react'; import type { ClassNamesFn, RendererProps } from 'jamis-core'; import type { RemarkSchema, TooltipObject } from '../types'; export interface RemarkProps extends RendererProps, Omit<RemarkSchema, 'type' | 'className'> { icon: string; trigger: Array<'hover' | 'click' | 'focus'>; } export declare class Remark extends React.Component<RemarkProps> { static propsList: Array<string>; static defaultProps: Partial<RemarkProps>; showModalTip(tooltip?: string | TooltipObject): (e: React.MouseEvent) => void; renderLabel(finalIcon: any, finalLabel: string, cx: ClassNamesFn): JSX.Element; render(): JSX.Element | null; } export declare class RemarkRenderer extends Remark { }