mirror of
https://github.com/klinecharts/KLineChart.git
synced 2024-11-25 16:22:43 +08:00
fix: fix indicator figures
and calcParams
override invalid issue
This commit is contained in:
parent
4a5907f352
commit
6558650d58
@ -373,6 +373,8 @@ export default class IndicatorImp<D = any> implements Indicator<D> {
|
||||
shortName,
|
||||
precision,
|
||||
styles,
|
||||
figures,
|
||||
calcParams,
|
||||
...others
|
||||
} = indicator
|
||||
if (!isString(this.name)) {
|
||||
@ -388,6 +390,8 @@ export default class IndicatorImp<D = any> implements Indicator<D> {
|
||||
this.styles ??= {}
|
||||
merge(this.styles, styles)
|
||||
}
|
||||
this.figures = figures ?? this.figures
|
||||
this.calcParams = calcParams ?? this.calcParams
|
||||
merge(this, others)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user