UNPKG

@alitajs/antd-plus

Version:

基于 ant-design 封装的偏业务组件

30 lines (29 loc) 858 B
import React, { Component } from 'react'; export interface FitTextProps { compressor?: number; minFontSize?: number; maxFontSize?: number; children: React.ReactNode; } declare class FitText extends Component<FitTextProps> { private updateQueued; private _childRef; private nodes; static defaultProps: { compressor: number; minFontSize: number; maxFontSize: number; }; componentWillMount(): void; componentDidUpdate(): void; componentWillUnmount(): void; updateElementStyle: (element: HTMLElement, options: any, width: number) => void; handleBodyResize: () => void; _renderChildren: () => React.FunctionComponentElement<{ ref: (c: any) => void; }>[]; render(): React.FunctionComponentElement<{ ref: (c: any) => void; }>; } export default FitText;