@magicgol/polyjuice 0.28.0 → 0.28.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -40,8 +40,11 @@ export default {
40
40
  default: false,
41
41
  },
42
42
  opacity: {
43
- type: Boolean,
44
- default: false,
43
+ type: String,
44
+ default: 'high',
45
+ validator: function (value) {
46
+ return ['high', 'low'].indexOf(value) !== -1;
47
+ },
45
48
  },
46
49
  },
47
50
 
@@ -50,7 +53,8 @@ export default {
50
53
  return {
51
54
  'mg-footballer-box': true,
52
55
  'mg-footballer-box--background': this.background === true,
53
- 'mg-footballer-box--opacity': this.opacity === true,
56
+ 'mg-footballer-box--opacity-high': this.opacity === 'high',
57
+ 'mg-footballer-box--opacity-low': this.opacity === 'low',
54
58
  'mg-footballer-box--goalkeeper': this.role === 'P',
55
59
  'mg-footballer-box--defender': this.role === 'D',
56
60
  'mg-footballer-box--midfielder': this.role === 'C',