0
0
Fork 0

fix: refs #7500 fixed showing images wrongly

This commit is contained in:
Jon Elias 2024-09-12 12:31:00 +02:00
parent 76a7f8a1b3
commit e5056c45c0
2 changed files with 16 additions and 15 deletions

View File

@ -93,19 +93,21 @@ const dmsFilter = {
const columns = computed(() => [ const columns = computed(() => [
{ {
align: 'left', label: '',
field: 'file',
label: t('globals.file'),
name: 'file', name: 'file',
align: 'left',
component: VnImg, component: VnImg,
props: (prop) => ({ props: (prop) => {
return {
storage: 'dms', storage: 'dms',
collection: null, collection: null,
size: null, resolution: null,
id: prop.row.file.split('.')[0], id: prop.row.file.split('.')[0],
token: token, token: token,
class: 'rounded', class: 'rounded',
}), ratio: 1,
};
},
}, },
{ {
align: 'left', align: 'left',
@ -397,10 +399,10 @@ defineExpose({
</QPageSticky> </QPageSticky>
</template> </template>
<style scoped> <style scoped>
.q-gutter-y-ms { /* .q-gutter-y-ms {
display: grid; display: grid;
row-gap: 20px; row-gap: 20px;
} } */
.labelColor { .labelColor {
color: var(--vn-label-color); color: var(--vn-label-color);
} }

View File

@ -12,12 +12,10 @@ const $props = defineProps({
collection: { collection: {
type: String, type: String,
default: 'catalog', default: 'catalog',
required: false,
}, },
resolution: { resolution: {
type: String, type: String,
default: '200x200', default: '200x200',
required: false,
}, },
zoomResolution: { zoomResolution: {
type: String, type: String,
@ -68,6 +66,7 @@ defineExpose({
v-bind="$attrs" v-bind="$attrs"
spinner-color="primary" spinner-color="primary"
class="img_zoom" class="img_zoom"
:ratio="0"
/> />
</QDialog> </QDialog>
</template> </template>