@afeefa/vue-app 0.0.117 → 0.0.119
Sign up to get free protection for your applications and to get access to all the features.
- package/.afeefa/package/release/version.txt +1 -1
- package/package.json +1 -1
- package/src/components/AAutocomplete.vue +1 -1
- package/src/components/ARow.vue +6 -3
- package/src/components/ATextField.vue +1 -0
- package/src/components/form/FormFieldMixin.js +16 -4
- package/src-admin/components/App.vue +3 -1
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.119
|
package/package.json
CHANGED
package/src/components/ARow.vue
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<div
|
3
|
+
:style="cwm_widthStyle + ' ' + displayStyle"
|
3
4
|
:class="['a-row', directionClass, gapClass, classes]"
|
4
|
-
:style="cwm_widthStyle"
|
5
5
|
>
|
6
6
|
<slot />
|
7
7
|
</div>
|
@@ -14,7 +14,7 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
|
|
14
14
|
|
15
15
|
@Component({
|
16
16
|
props: [
|
17
|
-
{ vertical: false },
|
17
|
+
{ vertical: false, inline: false },
|
18
18
|
'gap'
|
19
19
|
]
|
20
20
|
})
|
@@ -27,6 +27,10 @@ export default class ARow extends Mixins(ComponentWidthMixin) {
|
|
27
27
|
return classes
|
28
28
|
}
|
29
29
|
|
30
|
+
get displayStyle () {
|
31
|
+
return 'display: ' + (this.inline ? 'inline-flex' : 'flex') + ';'
|
32
|
+
}
|
33
|
+
|
30
34
|
get gapClass () {
|
31
35
|
if (this.gap) {
|
32
36
|
return 'gap-' + this.gap
|
@@ -44,7 +48,6 @@ export default class ARow extends Mixins(ComponentWidthMixin) {
|
|
44
48
|
|
45
49
|
<style scoped lang="scss">
|
46
50
|
.a-row {
|
47
|
-
display: flex;
|
48
51
|
align-items: center;
|
49
52
|
|
50
53
|
&.vertical {
|
@@ -62,10 +62,22 @@ export class FormFieldMixin extends Vue {
|
|
62
62
|
.fromRequest(request)
|
63
63
|
.load()
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
const options = []
|
66
|
+
|
67
|
+
if (!this.validator || !this.validator.getParams().filled) {
|
68
|
+
options.push({
|
69
|
+
itemText: 'Keine Auswahl',
|
70
|
+
itemValue: null
|
71
|
+
})
|
72
|
+
}
|
73
|
+
|
74
|
+
return [
|
75
|
+
...options,
|
76
|
+
...models.map(model => ({
|
77
|
+
itemText: model.getTitle(),
|
78
|
+
itemValue: model
|
79
|
+
}))
|
80
|
+
]
|
69
81
|
}
|
70
82
|
|
71
83
|
if (field.hasOptions()) {
|
@@ -63,7 +63,7 @@
|
|
63
63
|
</div>
|
64
64
|
</div>
|
65
65
|
|
66
|
-
<a-context-menu>
|
66
|
+
<a-context-menu v-if="$has.settings">
|
67
67
|
<a-context-menu-item
|
68
68
|
:to="{name: 'settings', params: {accountId: account.id}}"
|
69
69
|
>
|
@@ -144,6 +144,8 @@ import '../styles.scss'
|
|
144
144
|
}
|
145
145
|
})
|
146
146
|
export default class App extends Vue {
|
147
|
+
$hasOptions = ['settings']
|
148
|
+
|
147
149
|
drawer = true
|
148
150
|
isLoading = false
|
149
151
|
|