@afeefa/vue-app 0.0.71 → 0.0.72

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.71
1
+ 0.0.72
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@
8
8
  :changed="changed"
9
9
  :valid="valid"
10
10
  :modelToEdit="modelToEdit"
11
+ :model="model"
11
12
  />
12
13
  </v-form>
13
14
  </template>
@@ -16,18 +16,21 @@
16
16
  </v-icon>
17
17
  </v-btn>
18
18
 
19
- <v-icon
19
+ <v-hover
20
20
  v-if="$has.reset && changed"
21
- :small="small"
22
- :class="{disabled: !changed}"
23
- :disabled="!changed"
24
- color="#999999"
25
- text
26
- title="Formular zurücksetzen"
27
- @click="$emit('reset')"
21
+ v-slot="{ hover }"
28
22
  >
29
- {{ undoIcon }}
30
- </v-icon>
23
+ <v-icon
24
+ :small="small"
25
+ :class="{disabled: !changed}"
26
+ :color="hover ? '#666666' : '#999999'"
27
+ text
28
+ title="Formular zurücksetzen"
29
+ @click="$emit('reset')"
30
+ >
31
+ {{ undoIcon }}
32
+ </v-icon>
33
+ </v-hover>
31
34
  </a-row>
32
35
  </template>
33
36
 
@@ -1,28 +1,35 @@
1
1
  <template>
2
- <edit-form
3
- ref="form"
4
- :model="model"
5
- :createModelToEdit="createModelToEdit"
6
- >
7
- <template #form="{modelToEdit, changed, valid}">
8
- <slot
9
- name="form"
10
- :modelToEdit="modelToEdit"
11
- :changed="changed"
12
- :valid="valid"
13
- />
2
+ <div>
3
+ <slot name="before-form" />
14
4
 
15
- <app-bar-button>
16
- <edit-form-buttons
5
+ <edit-form
6
+ ref="form"
7
+ :model="model"
8
+ :createModelToEdit="createModelToEdit"
9
+ >
10
+ <template #form="{modelToEdit, model, changed, valid}">
11
+ <slot
12
+ name="form"
13
+ :modelToEdit="modelToEdit"
14
+ :model="model"
17
15
  :changed="changed"
18
16
  :valid="valid"
19
- :has="{reset: !!modelToEdit.id}"
20
- @save="$emit('save', modelToEdit, ignoreChangesOnRouteChange)"
21
- @reset="$refs.form.reset()"
22
17
  />
23
- </app-bar-button>
24
- </template>
25
- </edit-form>
18
+
19
+ <app-bar-button>
20
+ <edit-form-buttons
21
+ :changed="changed"
22
+ :valid="valid"
23
+ :has="{reset: !!modelToEdit.id}"
24
+ @save="$emit('save', modelToEdit, ignoreChangesOnRouteChange)"
25
+ @reset="$refs.form.reset()"
26
+ />
27
+ </app-bar-button>
28
+ </template>
29
+ </edit-form>
30
+
31
+ <slot name="after-form" />
32
+ </div>
26
33
  </template>
27
34
 
28
35
  <script>