Browse Source

fix: Ellipsis types (#3370)

cutStrByFullLength should be string
pull/3385/head
信鑫-King 7 years ago
committed by 陈帅
parent
commit
e8253b0686
  1. 2
      src/components/Ellipsis/index.d.ts

2
src/components/Ellipsis/index.d.ts

@ -16,6 +16,6 @@ export interface IEllipsisProps {
} }
export function getStrFullLength(str: string): number; export function getStrFullLength(str: string): number;
export function cutStrByFullLength(str: string, maxLength: number): number; export function cutStrByFullLength(str: string, maxLength: number): string;
export default class Ellipsis extends React.Component<IEllipsisProps, any> {} export default class Ellipsis extends React.Component<IEllipsisProps, any> {}

Loading…
Cancel
Save