UNPKG

antd-curd

Version:

基于 ant design 、 dva 的增删改查页面组件

34 lines (33 loc) 1.23 kB
import { Component } from 'react'; export declare const getStrFullLength: (str?: string) => number; export declare const cutStrByFullLength: (str: string | undefined, maxLength: any) => string; export interface EllipsisProps { /** 在按照行数截取下最大的行数,超过则截取省略 */ lines?: number; /** 在按照长度截取下的文本最大字符数,超过则截取省略 */ length?: number; className?: string; /** 是否将全角字符的长度视为 2 来计算字符串长度 */ fullWidthRecognition?: boolean; } export default class Ellipsis extends Component<EllipsisProps> { state: { text: string; targetCount: number; }; root: any; node: any; content: any; shadow: any; shadowChildren: any; componentDidMount(): void; componentDidUpdate(perProps: any): void; computeLine: () => void; bisection: (th: any, m: any, b: any, e: any, text: any, shadowNode: any) => any; handleRoot: (n: any) => void; handleContent: (n: any) => void; handleNode: (n: any) => void; handleShadow: (n: any) => void; handleShadowChildren: (n: any) => void; render(): JSX.Element; }