Skip to content

Commit

Permalink
Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
freearhey committed Feb 19, 2020
1 parent 830a08d commit e7c0b34
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions dist/vue2-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ __webpack_require__.d(other_namespaceObject, "bytes", function() { return other_
__webpack_require__.d(other_namespaceObject, "pluralize", function() { return other_pluralize; });
__webpack_require__.d(other_namespaceObject, "ordinal", function() { return other_ordinal; });
__webpack_require__.d(other_namespaceObject, "number", function() { return other_number; });
__webpack_require__.d(other_namespaceObject, "percent", function() { return other_percent; });

// CONCATENATED MODULE: ./src/util/index.js
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
Expand Down Expand Up @@ -780,13 +781,40 @@ function number_toFixed(num, precision) {
}

/* harmony default export */ var other_number = (number_number);
// CONCATENATED MODULE: ./src/other/percent.js

/**
* 12 => '12%'
* 100 => '100%'
* 1000 => '1000%'
* 0.97 => '97%'
*
* @param {Number} value
* @param {Number} decimals Decimal places (default: 2)
*/

function percent(value, decimals) {
var globalOptions = this && this.percent ? this.percent : {};
decimals = src_util.exist(decimals) ? decimals : globalOptions.decimalDigits;
decimals = typeof decimals !== 'undefined' ? decimals : 0;
value = value === null || isNaN(value) ? 0 : value;

if (value <= 1) {
return "".concat((value * 100).toFixed(decimals), "%");
}

return "".concat(value.toFixed(decimals), "%");
}

/* harmony default export */ var other_percent = (percent);
// CONCATENATED MODULE: ./src/other/index.js







// CONCATENATED MODULE: ./src/index.js


Expand Down
2 changes: 1 addition & 1 deletion dist/vue2-filters.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e7c0b34

Please sign in to comment.