@afeefa/vue-app 0.0.170 → 0.0.171

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.170
1
+ 0.0.171
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.170",
3
+ "version": "0.0.171",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- :class="['a-table-row', getFontSizeCssClass, {border: hasBorder, selected, disabled}]"
3
+ :class="['a-table-row', {border: hasBorder, small, tiny, selected, disabled}]"
4
4
  @click="$emit('click')"
5
5
  >
6
6
  <slot />
@@ -12,7 +12,7 @@
12
12
  import { Component, Vue } from '@a-vue'
13
13
 
14
14
  @Component({
15
- props: ['small', 'selected', 'disabled']
15
+ props: [{tiny: false, small: false}, 'selected', 'disabled']
16
16
  })
17
17
  export default class ATableRow extends Vue {
18
18
  $hasOptions = ['border']
@@ -31,12 +31,6 @@ export default class ATableRow extends Vue {
31
31
  get hasBorder () {
32
32
  return this.$has.border && this.table.$has.border
33
33
  }
34
-
35
- get getFontSizeCssClass () {
36
- if (this.small !== undefined) {
37
- return 'small'
38
- }
39
- }
40
34
  }
41
35
  </script>
42
36
 
@@ -102,6 +96,21 @@ export default class ATableRow extends Vue {
102
96
  }
103
97
  }
104
98
 
99
+ &.tiny {
100
+ font-size: .8rem;
101
+
102
+ &.border {
103
+ > * {
104
+ padding-top: .1rem;
105
+ padding-bottom: .1rem;
106
+ }
107
+ }
108
+
109
+ .textblock--tiny {
110
+ font-size: .7rem;
111
+ }
112
+ }
113
+
105
114
  .textblock--small {
106
115
  font-size: .9rem;
107
116
  line-height: .9;