@jdcfe/yep-react
Version:
一套移动端的React组件库
49 lines (48 loc) • 1.21 kB
TypeScript
import * as React from 'react';
declare const Price: React.FunctionComponent<PriceProps>;
export interface PriceProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
/**
* 价格
*/
value: string;
/**
* 货币符号,默认为人民币符号¥
*/
symbol?: string;
/**
* 当前传入的货币符号
*/
currencySym?: string;
/**
* 货币符号位置,sub:左下,sup:左上,normal:正常,默认为左下,不传即为默认
*/
symPos?: string;
/**
* 小数部分展示的位数,0:不展示,1:展示1位,2:展示2位,默认展示2位
*/
decLength?: number;
/**
* 小数部分展示的位置,sub:右下,sup:右上,normal:正常,默认为右下
*/
decPos?: string;
/**
* 删除状态,del:删除状态,默认为不删除即''
*/
status?: string;
/**
* 货币符号额外样式
*/
symClassName?: string;
/**
* 价格整数部分额外样式
*/
intClassName?: string;
/**
* 价格小数部分额外样式
*/
decClassName?: string;
}
export default Price;