@afeefa/vue-app 0.0.71 → 0.0.74
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/APagination.vue +1 -0
- package/src/components/form/EditForm.vue +3 -0
- package/src-admin/components/app/AppBarTitle.vue +1 -1
- package/src-admin/components/form/EditFormButtons.vue +13 -10
- package/src-admin/components/pages/EditPage.vue +28 -20
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.74
|
package/package.json
CHANGED
@@ -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>
|
@@ -46,6 +47,8 @@ export default class EditForm extends Vue {
|
|
46
47
|
this.modelToEdit = this.model.cloneForEdit()
|
47
48
|
}
|
48
49
|
this.lastJson = this.json
|
50
|
+
|
51
|
+
this.$emit('update:modelToEdit', this.modelToEdit)
|
49
52
|
}
|
50
53
|
|
51
54
|
/**
|
@@ -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,36 @@
|
|
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
|
+
v-on="$listeners"
|
10
|
+
>
|
11
|
+
<template #form="{modelToEdit, model, changed, valid}">
|
12
|
+
<slot
|
13
|
+
name="form"
|
14
|
+
:modelToEdit="modelToEdit"
|
15
|
+
:model="model"
|
17
16
|
:changed="changed"
|
18
17
|
:valid="valid"
|
19
|
-
:has="{reset: !!modelToEdit.id}"
|
20
|
-
@save="$emit('save', modelToEdit, ignoreChangesOnRouteChange)"
|
21
|
-
@reset="$refs.form.reset()"
|
22
18
|
/>
|
23
|
-
|
24
|
-
|
25
|
-
|
19
|
+
|
20
|
+
<app-bar-button>
|
21
|
+
<edit-form-buttons
|
22
|
+
:changed="changed"
|
23
|
+
:valid="valid"
|
24
|
+
:has="{reset: !!modelToEdit.id}"
|
25
|
+
@save="$emit('save', modelToEdit, ignoreChangesOnRouteChange)"
|
26
|
+
@reset="$refs.form.reset()"
|
27
|
+
/>
|
28
|
+
</app-bar-button>
|
29
|
+
</template>
|
30
|
+
</edit-form>
|
31
|
+
|
32
|
+
<slot name="after-form" />
|
33
|
+
</div>
|
26
34
|
</template>
|
27
35
|
|
28
36
|
<script>
|