数字组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
value |
number | string |
<optional> |
原始值 |
||||||||||||||||||||||||||
defaultValue |
number |
<optional> |
0
|
默认值,即value无效时取defaultValue, 如果 defaultValue为null,显示空白 |
|||||||||||||||||||||||||
countUp |
boolean | Object |
<optional> |
CountUp配置参数对象 Properties
|
||||||||||||||||||||||||||
trend |
string |
<optional> |
趋势, 可选值:'up', 'down', '-' |
||||||||||||||||||||||||||
precision |
number |
<optional> |
0
|
精度,保留几位小数 |
|||||||||||||||||||||||||
separator |
string |
<optional> |
,
|
分隔值的符号,默认值为‘,’(英文逗号) |
|||||||||||||||||||||||||
prefix |
string |
<optional> |
前缀内容,也可以用插槽定义 |
||||||||||||||||||||||||||
suffix |
string |
<optional> |
后缀内容,也可以用插槽定义 |
||||||||||||||||||||||||||
percentage |
boolean |
<optional> |
按百分比计算显示, 如value=0.2, 显示为 20% |
||||||||||||||||||||||||||
type |
string |
<optional> |
颜色类型, 可选值: 'primary', 'success', 'warning', 'danger', 'info' |
||||||||||||||||||||||||||
sup |
boolean |
<optional> |
前缀 和 后缀采用下标显示 |
属性参数
(inner) slots
- Source:
Properties:
Name | Type | Description |
---|---|---|
default |
string | 默认插槽,定义显示内容,参数:value 原始值值,displayValue 显示值 |
prefix |
string | 前缀内容 |
suffix |
string | 后缀内容 |
trend |
string | 个性化趋势显示,参数:trend 趋势方向 |
插槽