@magicgol/polyjuice 0.21.1 → 0.21.2

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.21.1",
3
+ "version": "0.21.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -9,7 +9,7 @@ export default {
9
9
  role: {
10
10
  control: { type: 'select' },
11
11
  options: ['P', 'D', 'C', 'A'],
12
- defaultValue: 'A'
12
+ defaultValue: null
13
13
  },
14
14
  size: {
15
15
  control: { type: 'select' },
@@ -4,7 +4,10 @@
4
4
  :class="classes"
5
5
  >
6
6
  <slot v-if="slotVisibility"></slot>
7
- <template v-else>{{ role }}</template>
7
+ <template v-else>
8
+ <template v-if="role">{{ role }}</template>
9
+ <template v-else>-</template>
10
+ </template>
8
11
  </div>
9
12
  </template>
10
13
 
@@ -15,7 +18,7 @@ export default {
15
18
  props: {
16
19
  role: {
17
20
  type: String,
18
- default: 'A',
21
+ default: null,
19
22
  validator: function (value) {
20
23
  return ['P', 'D', 'C', 'A'].indexOf(value) !== -1;
21
24
  },
@@ -53,6 +56,7 @@ export default {
53
56
  @import '../../../assets/palette';
54
57
 
55
58
  .mg-role-badge {
59
+ background-color: #c2c2c2;
56
60
  font-family: 'Ubuntu', sans-serif;
57
61
  font-weight: 600;
58
62