@drax/crud-vue 2.0.3 → 2.0.6
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.
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"vue-tsc": "^3.2.4",
|
|
51
51
|
"vuetify": "^3.11.8"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "9ccda70d228007d50fe535b26d719148318086fa"
|
|
54
54
|
}
|
|
@@ -184,7 +184,7 @@ const menuInputErrors = computed(() => {
|
|
|
184
184
|
<v-card-text>
|
|
185
185
|
<v-tabs-window v-model="tabSelected">
|
|
186
186
|
<v-tabs-window-item v-for="tab in entity.tabs" :value="tab">
|
|
187
|
-
<v-row>
|
|
187
|
+
<v-row class="pt-3">
|
|
188
188
|
<v-col
|
|
189
189
|
v-for="field in tabFields(tab)"
|
|
190
190
|
:key="field.name"
|
|
@@ -277,7 +277,7 @@ const menuInputErrors = computed(() => {
|
|
|
277
277
|
{{ operation == 'view' ? t('action.close') : t('action.cancel') }}
|
|
278
278
|
</v-btn>
|
|
279
279
|
<v-btn variant="flat" v-if="operation != 'view'" :class="entity.submitBtnFormClass" @click="submit" :loading="store.loading">
|
|
280
|
-
{{ operation ? t('action.'
|
|
280
|
+
{{ operation ? t('action.'+operation) : t('action.sent') }}
|
|
281
281
|
</v-btn>
|
|
282
282
|
</v-card-actions>
|
|
283
283
|
</v-card>
|
|
@@ -109,6 +109,7 @@ const totalCount = computed(() => {
|
|
|
109
109
|
chips
|
|
110
110
|
closable-chips
|
|
111
111
|
return-object
|
|
112
|
+
:menu-props="{ zIndex: 3000 }"
|
|
112
113
|
>
|
|
113
114
|
</v-select>
|
|
114
115
|
|
|
@@ -121,6 +122,7 @@ const totalCount = computed(() => {
|
|
|
121
122
|
density="compact"
|
|
122
123
|
variant="outlined"
|
|
123
124
|
class="mt-4"
|
|
125
|
+
:menu-props="{ zIndex: 3000 }"
|
|
124
126
|
>
|
|
125
127
|
<template v-slot:prepend-inner>
|
|
126
128
|
<v-icon>mdi-calendar-clock</v-icon>
|
|
@@ -252,6 +252,11 @@ export function useCrud(entity: IEntityCrud) {
|
|
|
252
252
|
openDialog()
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
function prepareEdit(item: object) {
|
|
256
|
+
store.setForm(cast(cloneItem(item)))
|
|
257
|
+
store.setOperation("edit")
|
|
258
|
+
}
|
|
259
|
+
|
|
255
260
|
function cloneItem(item: object): object {
|
|
256
261
|
try {
|
|
257
262
|
return JSON.parse(JSON.stringify(item))
|
|
@@ -398,7 +403,8 @@ export function useCrud(entity: IEntityCrud) {
|
|
|
398
403
|
operation, dialog, form, notify, error, message, formValid,
|
|
399
404
|
loading, itemsPerPage, page, sortBy, search, totalItems, items,
|
|
400
405
|
prepareFilters, filters, clearFilters, applyFilters,
|
|
401
|
-
exportFiles, exportLoading, exportListVisible, exportError
|
|
406
|
+
exportFiles, exportLoading, exportListVisible, exportError,
|
|
407
|
+
cloneItem, cast, prepareEdit
|
|
402
408
|
}
|
|
403
409
|
|
|
404
410
|
}
|