选择器
eui-numberbox
继承
SpinnerBaseComponent
用法
<div style="margin-bottom:10px">
<label [for]="n1" align="top">Amount:</label>
<eui-numberbox #n1 value="100" [spinners]="true"></eui-numberbox>
</div>
<div style="margin-bottom:10px">
<label [for]="n2" align="top">List Price:</label>
<eui-numberbox #n2 value="234.56" precision="2" [spinners]="false"></eui-numberbox>
</div>
<div style="margin-bottom:10px">
<label [for]="n3" align="top">Discount:</label>
<eui-numberbox #n3 value="60" suffix="%" [spinners]="false"></eui-numberbox>
</div>
输入
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
value | number | 字段值 | null |
min | number | 最小允许值。 | null |
max | number | 最大允许值。 | null |
increment | number | 单击微调按钮时增加值。 | 1 |
precision | number | 小数点分隔符后显示的最大精度。 | 0 |
decimalSeparator | string | 小数字符将整数和小数分开。 | 。 |
groupSeparator | string | 分隔整数组按千百万字符显示。 | |
prefix | string | 前缀字符串。 | |
suffix | string | 后缀字符串。 |