Profectus / mixins/bonusAmount / bonusAmountMixin
Function: bonusAmountMixin() ​
bonusAmountMixin(
baseAmount
,bonusAmount
):object
Allows the addition of "bonus levels" to a feature, with an accompanying "total amount".
Parameters ​
baseAmount ​
Ref
<DecimalSource
, DecimalSource
>
bonusAmount ​
MaybeRefOrGetter
<DecimalSource
>
Returns ​
object
bonusAmount ​
bonusAmount:
MaybeRef
<DecimalSource
> |ComputedRef
<DecimalSource
> =processedBonusAmount
totalAmount ​
totalAmount:
ComputedRef
<default
>