@drax/crud-vue 0.6.0 → 0.7.1
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": "0.
|
|
6
|
+
"version": "0.7.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^0.
|
|
28
|
-
"@drax/crud-front": "^0.
|
|
29
|
-
"@drax/crud-share": "^0.
|
|
27
|
+
"@drax/common-front": "^0.7.0",
|
|
28
|
+
"@drax/crud-front": "^0.7.0",
|
|
29
|
+
"@drax/crud-share": "^0.7.0",
|
|
30
|
+
"@drax/media-vue": "^0.7.0"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"pinia": "^2.2.2",
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
"vue-tsc": "^2.0.11",
|
|
64
65
|
"vuetify": "^3.7.1"
|
|
65
66
|
},
|
|
66
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "bd69c9c27f3342f3ad77f288aea34669ba857401"
|
|
67
68
|
}
|
package/src/components/Crud.vue
CHANGED
|
@@ -7,6 +7,7 @@ import {useI18n} from "vue-i18n";
|
|
|
7
7
|
import {useCrudStore} from "../stores/UseCrudStore";
|
|
8
8
|
import {VDateInput} from 'vuetify/labs/VDateInput'
|
|
9
9
|
import type {IEntityCrud, IEntityCrudField, IEntityCrudFilter} from "@drax/crud-share";
|
|
10
|
+
import {MediaField} from "@drax/media-vue";
|
|
10
11
|
|
|
11
12
|
const {t, te} = useI18n()
|
|
12
13
|
|
|
@@ -156,6 +157,27 @@ defineEmits(['updateValue'])
|
|
|
156
157
|
:append-inner-icon="appendInnerIcon"
|
|
157
158
|
/>
|
|
158
159
|
|
|
160
|
+
<media-field
|
|
161
|
+
v-if="field.type === 'file'"
|
|
162
|
+
:name="name"
|
|
163
|
+
:label="label"
|
|
164
|
+
v-model.number="valueModel"
|
|
165
|
+
:readonly="readonly"
|
|
166
|
+
:error-messages="inputErrors"
|
|
167
|
+
:rules="rules"
|
|
168
|
+
:density="density"
|
|
169
|
+
:variant="variant"
|
|
170
|
+
:clearable="clearable"
|
|
171
|
+
:hide-details="hideDetails"
|
|
172
|
+
:single-line="singleLine"
|
|
173
|
+
@update:modelValue="$emit('updateValue')"
|
|
174
|
+
:prepend-icon="prependIcon"
|
|
175
|
+
:append-icon="appendIcon"
|
|
176
|
+
:prepend-inner-icon="prependInnerIcon"
|
|
177
|
+
:append-inner-icon="appendInnerIcon"
|
|
178
|
+
/>
|
|
179
|
+
|
|
180
|
+
|
|
159
181
|
<v-switch
|
|
160
182
|
v-if="field.type === 'boolean'"
|
|
161
183
|
:name="name"
|