component-shipinlv 0.1.25 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ var Money = function Money(_ref) {
26
26
  children: pre
27
27
  }), /*#__PURE__*/_jsx("span", {
28
28
  className: "value ".concat(value === 0 ? 'zero' : '', " "),
29
- children: typeof value === 'number' ? disabledMoneySimple ? value.toFixed(precision) : moneySimple(value, false, precision) : ''
29
+ children: typeof value === 'number' ? disabledMoneySimple ? parseFloat(value.toFixed(precision)) : moneySimple(value, false, precision) : ''
30
30
  }), /*#__PURE__*/_jsx("span", {
31
31
  className: "yen",
32
32
  children: end
@@ -278,7 +278,8 @@ var VipList = function VipList(_ref) {
278
278
  var price = getPrice(result.vipList, item.id);
279
279
  value = /*#__PURE__*/_jsx(Money, {
280
280
  value: price,
281
- precision: 0
281
+ precision: 2,
282
+ disabledMoneySimple: true
282
283
  });
283
284
  }
284
285
  itemData["vipLevel".concat(item.vipLevel)] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.1.25",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",