@afeefa/vue-app 0.0.240 → 0.0.243

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.
@@ -1 +1 @@
1
- 0.0.240
1
+ 0.0.243
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.240",
3
+ "version": "0.0.243",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -64,7 +64,13 @@
64
64
  style="width:100%;"
65
65
  v-on="on"
66
66
  >
67
- {{ model.getTitle() }}
67
+ {{ getTitle(model) }}
68
+ <div
69
+ v-if="getSubtitle(model)"
70
+ class="grey--text"
71
+ >
72
+ {{ getSubtitle(model) }}
73
+ </div>
68
74
  </div>
69
75
  </template>
70
76
  </a-search-select>
@@ -76,7 +82,10 @@ import { FormFieldMixin } from '../FormFieldMixin'
76
82
  import { ListAction } from '@a-vue/api-resources/ApiActions'
77
83
 
78
84
  @Component({
79
- props: ['value', 'q']
85
+ props: ['value', 'q', {
86
+ getTitle: {type: Function, default: m => m.getTitle()},
87
+ getSubtitle: {type: Function, default: m => m.getSubtitle()}
88
+ }]
80
89
  })
81
90
  export default class FormFieldSearchSelect extends Mixins(FormFieldMixin) {
82
91
  $hasOptions = ['icon']
@@ -48,4 +48,8 @@ export class Model extends ApiResourcesModel {
48
48
  getTitle () {
49
49
  return null
50
50
  }
51
+
52
+ getSubtitle () {
53
+ return null
54
+ }
51
55
  }