mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 08:12:49 +08:00
小组件-数字翻牌-增加精度参数
This commit is contained in:
parent
99287497cc
commit
68b49ea710
@ -7,6 +7,7 @@ export const option = {
|
|||||||
from: 50000,
|
from: 50000,
|
||||||
to: 100000,
|
to: 100000,
|
||||||
dur: 3,
|
dur: 3,
|
||||||
|
precision: 0,
|
||||||
showSeparator: true,
|
showSeparator: true,
|
||||||
numberSize: 24,
|
numberSize: 24,
|
||||||
numberColor: '#4a9ef8',
|
numberColor: '#4a9ef8',
|
||||||
|
@ -28,6 +28,13 @@
|
|||||||
<n-text>展示分割符</n-text>
|
<n-text>展示分割符</n-text>
|
||||||
</n-space>
|
</n-space>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
<SettingItem name="精度">
|
||||||
|
<n-input-number
|
||||||
|
v-model:value="optionData.precision"
|
||||||
|
size="small"
|
||||||
|
:min="0"
|
||||||
|
></n-input-number>
|
||||||
|
</SettingItem>
|
||||||
</SettingItemBox>
|
</SettingItemBox>
|
||||||
|
|
||||||
<SettingItemBox name="数值">
|
<SettingItemBox name="数值">
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
:to="to"
|
:to="to"
|
||||||
:duration="dur * 1000"
|
:duration="dur * 1000"
|
||||||
:show-separator="showSeparator"
|
:show-separator="showSeparator"
|
||||||
|
:precision="precision"
|
||||||
></n-number-animation>
|
></n-number-animation>
|
||||||
</span>
|
</span>
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
@ -42,6 +43,7 @@ const {
|
|||||||
suffixColor,
|
suffixColor,
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
|
precision,
|
||||||
numberSize,
|
numberSize,
|
||||||
numberColor,
|
numberColor,
|
||||||
} = toRefs(props.chartConfig.option)
|
} = toRefs(props.chartConfig.option)
|
||||||
|
Loading…
Reference in New Issue
Block a user