forked from verdnatura/salix-front
fix: refs #7500 fixed showing images wrongly
This commit is contained in:
parent
76a7f8a1b3
commit
e5056c45c0
|
@ -93,19 +93,21 @@ const dmsFilter = {
|
|||
|
||||
const columns = computed(() => [
|
||||
{
|
||||
align: 'left',
|
||||
field: 'file',
|
||||
label: t('globals.file'),
|
||||
label: '',
|
||||
name: 'file',
|
||||
align: 'left',
|
||||
component: VnImg,
|
||||
props: (prop) => ({
|
||||
props: (prop) => {
|
||||
return {
|
||||
storage: 'dms',
|
||||
collection: null,
|
||||
size: null,
|
||||
resolution: null,
|
||||
id: prop.row.file.split('.')[0],
|
||||
token: token,
|
||||
class: 'rounded',
|
||||
}),
|
||||
ratio: 1,
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
|
@ -397,10 +399,10 @@ defineExpose({
|
|||
</QPageSticky>
|
||||
</template>
|
||||
<style scoped>
|
||||
.q-gutter-y-ms {
|
||||
/* .q-gutter-y-ms {
|
||||
display: grid;
|
||||
row-gap: 20px;
|
||||
}
|
||||
} */
|
||||
.labelColor {
|
||||
color: var(--vn-label-color);
|
||||
}
|
||||
|
|
|
@ -12,12 +12,10 @@ const $props = defineProps({
|
|||
collection: {
|
||||
type: String,
|
||||
default: 'catalog',
|
||||
required: false,
|
||||
},
|
||||
resolution: {
|
||||
type: String,
|
||||
default: '200x200',
|
||||
required: false,
|
||||
},
|
||||
zoomResolution: {
|
||||
type: String,
|
||||
|
@ -68,6 +66,7 @@ defineExpose({
|
|||
v-bind="$attrs"
|
||||
spinner-color="primary"
|
||||
class="img_zoom"
|
||||
:ratio="0"
|
||||
/>
|
||||
</QDialog>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue