Skip to content

Commit 02232af

Browse files
committed
Updated build
1 parent 9ea7948 commit 02232af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dist/vue2-filters.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -795,12 +795,14 @@ function number_toFixed(num, precision) {
795795
* @param {Number} decimals Decimal places (default: 2)
796796
*/
797797

798-
function percent(value, decimals) {
798+
function percent(value, decimals, multiplier) {
799799
var globalOptions = this && this.percent ? this.percent : {};
800+
multiplier = src_util.exist(multiplier) ? multiplier : globalOptions.multiplier;
801+
multiplier = typeof multiplier !== 'undefined' ? multiplier : 100;
800802
decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;
801803
decimals = typeof decimals !== 'undefined' ? decimals : 0;
802804
value = value === null || isNaN(value) ? 0 : value;
803-
return "".concat((value * 100).toFixed(decimals), "%");
805+
return "".concat((value * multiplier).toFixed(decimals), "%");
804806
}
805807

806808
/* harmony default export */ var other_percent = (percent);

dist/vue2-filters.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)