@drax/crud-vue 0.8.5 → 0.8.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 +2 -2
- package/src/components/Crud.vue +8 -1
- package/src/components/CrudForm.vue +15 -12
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.8.
|
|
6
|
+
"version": "0.8.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"vue-tsc": "^2.0.11",
|
|
65
65
|
"vuetify": "^3.7.1"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "79384008896aa7228c451b260e398a7990a2c5a6"
|
|
68
68
|
}
|
package/src/components/Crud.vue
CHANGED
|
@@ -75,7 +75,14 @@ onBeforeMount(() => {
|
|
|
75
75
|
:readonly="operation === 'delete'"
|
|
76
76
|
@submit="onSubmit"
|
|
77
77
|
@cancel="onCancel"
|
|
78
|
-
|
|
78
|
+
>
|
|
79
|
+
|
|
80
|
+
<template v-for="ifield in entity.fields" :key="ifield.name" v-slot:[`field.${ifield.name}`]="{field}">
|
|
81
|
+
<slot :name="`field.${ifield.name}`" v-bind="{field}">
|
|
82
|
+
</slot>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
</crud-form>
|
|
79
86
|
</slot>
|
|
80
87
|
|
|
81
88
|
</crud-dialog>
|
|
@@ -93,18 +93,21 @@ const {
|
|
|
93
93
|
:lg="field.lg ? field.lg : 12"
|
|
94
94
|
:xl="field.xl ? field.xl : 12"
|
|
95
95
|
>
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
96
|
+
<slot :name="`field.${field.name}`" v-bind="{field}">
|
|
97
|
+
<crud-form-field
|
|
98
|
+
:field="field"
|
|
99
|
+
:entity="entity"
|
|
100
|
+
v-model="valueModel[field.name]"
|
|
101
|
+
:clearable="false"
|
|
102
|
+
:readonly="readonly"
|
|
103
|
+
:variant="variant"
|
|
104
|
+
:prepend-inner-icon="field?.prependInnerIcon"
|
|
105
|
+
:prepend-icon="field?.prependIcon"
|
|
106
|
+
:append-icon="field?.appendIcon"
|
|
107
|
+
:append-inner-icon="field?.appendInnerIcon"
|
|
108
|
+
/>
|
|
109
|
+
</slot>
|
|
110
|
+
|
|
108
111
|
</v-col>
|
|
109
112
|
</v-row>
|
|
110
113
|
</v-card-text>
|