@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.
|
1
|
+
0.0.72
|
package/package.json
CHANGED
@@ -16,18 +16,21 @@
|
|
16
16
|
</v-icon>
|
17
17
|
</v-btn>
|
18
18
|
|
19
|
-
<v-
|
19
|
+
<v-hover
|
20
20
|
v-if="$has.reset && changed"
|
21
|
-
|
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
|
-
|
30
|
-
|
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
|
-
<
|
3
|
-
|
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
|
-
|
16
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
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>
|