import * as React from 'react'; interface DigitProps { /**是否可编辑 */ editable?: boolean; /**内容 */ value?: number; /**选择变化时的回调 */ onChange?: Function; /** 数字格式,格式写法请参照numeraljs。默认显示千分位,最多显示10位小数。当设置了precision时,默认按照precision显示小数位数 */ format?: string; /**精度 */ precision?: number; /** 设置前置标签 */ addonBefore?: string | React.ReactNode; /** 设置后置标签 */ addonAfter?: string | React.ReactNode; } interface DigitState {} declare class Digit extends React.Component { state: DigitState; componentDidMount(): void; componentDidUpdate(prevProps: DigitProps): void; componentWillUnmount(): void; render: () => React.ReactElement; } export default Digit;