@drax/crud-vue 2.0.1 → 2.0.2

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.1",
6
+ "version": "2.0.2",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -26,8 +26,8 @@
26
26
  "dependencies": {
27
27
  "@drax/common-front": "^2.0.1",
28
28
  "@drax/crud-front": "^2.0.0",
29
- "@drax/crud-share": "^2.0.0",
30
- "@drax/media-vue": "^2.0.0"
29
+ "@drax/crud-share": "^2.0.2",
30
+ "@drax/media-vue": "^2.0.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "pinia": "^3.0.4",
@@ -50,5 +50,5 @@
50
50
  "vue-tsc": "^3.2.4",
51
51
  "vuetify": "^3.11.8"
52
52
  },
53
- "gitHead": "4e6370b8c79b34e92d14e506e6daf8f89f1c015b"
53
+ "gitHead": "4ae64cc2ae14f3cc4d768a97689b2ff597e3401d"
54
54
  }
@@ -163,6 +163,8 @@ const menuInputErrors = computed(() => {
163
163
  :prepend-icon="field?.prependIcon"
164
164
  :append-icon="field?.appendIcon"
165
165
  :append-inner-icon="field?.appendInnerIcon"
166
+ :preview="field?.preview"
167
+ :previewHeight="field?.previewHeight"
166
168
  />
167
169
  </slot>
168
170
 
@@ -32,6 +32,8 @@ const {index, entity, field, disableRules, parentField} = defineProps({
32
32
  multiple: {type: Boolean, default: false},
33
33
  clearable: {type: Boolean, default: false},
34
34
  disableRules: {type: Boolean, default: false},
35
+ preview: {type: Boolean, default: true},
36
+ previewHeight: {type: String, default: '100px'},
35
37
  parentField: {type: String, default: null, required: false},
36
38
  index: {type: Number, default: null, required: false},
37
39
  density: {type: String as PropType<'comfortable' | 'compact' | 'default'>, default: 'default'},
@@ -282,6 +284,8 @@ defineEmits(['updateValue'])
282
284
  :append-icon="appendIcon"
283
285
  :prepend-inner-icon="prependInnerIcon"
284
286
  :append-inner-icon="appendInnerIcon"
287
+ :preview="preview"
288
+ :previewHeight="previewHeight"
285
289
  />
286
290
 
287
291
  <media-full-field
@@ -302,6 +306,8 @@ defineEmits(['updateValue'])
302
306
  :append-icon="appendIcon"
303
307
  :prepend-inner-icon="prependInnerIcon"
304
308
  :append-inner-icon="appendInnerIcon"
309
+ :preview="preview"
310
+ :previewHeight="previewHeight"
305
311
  />
306
312
 
307
313
  <v-switch