@wikala/spmkt 2.12.2 → 2.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -274,7 +274,7 @@ export default {
274
274
  },
275
275
  showBusiness: {
276
276
  type: Boolean,
277
- default: false
277
+ default: true
278
278
  },
279
279
  errors: {
280
280
  type: Object,
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <div>
3
- <!--span v-if="from && comparePrice==price" class="price-from">from</span-->
4
3
  <span v-if="comparePrice != 0 && comparePrice > price" class="price-old">{{ formatMoney(comparePrice) }}</span>
5
4
  <span v-if="price > 0" class="price">{{ formatMoney(price) }}</span>
6
5
  </div>
@@ -41,8 +40,8 @@ export default {
41
40
  if (compareValue === undefined) {
42
41
  this.price = value * (1 - this.discountPercent)
43
42
  } else {
44
- this.price = value
45
- this.comparePrice = compareValue
43
+ this.price = parseFloat(value)
44
+ this.comparePrice = parseFloat(compareValue)
46
45
  }
47
46
  }
48
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikala/spmkt",
3
- "version": "2.12.2",
3
+ "version": "2.12.4",
4
4
  "private": false,
5
5
  "description": "supermarket",
6
6
  "scripts": {
package/.idea/js.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/spmkt.iml" filepath="$PROJECT_DIR$/.idea/spmkt.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/spmkt.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.prettierrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "printWidth": 160,
3
- "singleQuote": true,
4
- "semi": false,
5
- "jsxSingleQuote": true,
6
- "jsxBracketSameLine": true,
7
- "trailingComma": "none",
8
- "htmlWhitespaceSensitivity": "strict"
9
- }