@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
41 lines (40 loc) • 832 B
TypeScript
import { FunctionComponent } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface PriceProps extends BasicComponent {
/**
* 价格数量
* @default 0
*/
price: number | string
/**
* 符号类型
* @default ¥
*/
symbol: string
/**
* 小数位位数
* @default 2
*/
digits: number
/**
* 是否按照千分号形式显示
* @default false
*/
thousands: boolean
/**
* 符号显示在价格前或者后,before、after
* @default before
*/
position: string
/**
* 价格尺寸,large、normal、small
* @default large
*/
size: string
/**
* 是否划线价
* @default false
*/
line: boolean
}
export declare const Price: FunctionComponent<Partial<PriceProps>>;