forked from verdnatura/salix-front
fix: refs #6825 css
This commit is contained in:
parent
92244ad96b
commit
cb4a5f8d1b
|
@ -196,6 +196,8 @@ async function save() {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
notify('errors.writeRequest', 'negative');
|
notify('errors.writeRequest', 'negative');
|
||||||
|
hasChanges.value = false;
|
||||||
|
isLoading.value = false;
|
||||||
}
|
}
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,10 @@ const $props = defineProps({
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
cardClass: {
|
||||||
|
type: String,
|
||||||
|
default: 'flex-one',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
|
@ -300,7 +304,11 @@ defineExpose({
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<QCardSection vertical class="no-margin no-padding w-80">
|
<QCardSection
|
||||||
|
vertical
|
||||||
|
class="no-margin no-padding"
|
||||||
|
:class="colsMap.tableActions ? 'w-80' : 'fit'"
|
||||||
|
>
|
||||||
<!-- Chips -->
|
<!-- Chips -->
|
||||||
<QCardSection
|
<QCardSection
|
||||||
v-if="splittedColumns.chips.length"
|
v-if="splittedColumns.chips.length"
|
||||||
|
@ -324,17 +332,21 @@ defineExpose({
|
||||||
:title="row[splittedColumns.title.name]"
|
:title="row[splittedColumns.title.name]"
|
||||||
@click="stopEventPropagation($event)"
|
@click="stopEventPropagation($event)"
|
||||||
class="cursor-text"
|
class="cursor-text"
|
||||||
>{{ row[splittedColumns.title.name] }}</span
|
|
||||||
>
|
>
|
||||||
|
{{ row[splittedColumns.title.name] }}
|
||||||
|
</span>
|
||||||
</QCardSection>
|
</QCardSection>
|
||||||
<!-- Fields -->
|
<!-- Fields -->
|
||||||
<QCardSection class="q-pl-sm q-pr-lg q-py-xs flex-one">
|
<QCardSection
|
||||||
|
class="q-pl-sm q-pr-lg q-py-xs"
|
||||||
|
:class="$props.cardClass"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-for="col of splittedColumns.visible"
|
v-for="col of splittedColumns.visible"
|
||||||
:key="col.name"
|
:key="col.name"
|
||||||
class="fields"
|
class="fields"
|
||||||
>
|
>
|
||||||
<VnLv :label="`${col.label}:`">
|
<VnLv :label="col.label && `${col.label}:`">
|
||||||
<template #value>
|
<template #value>
|
||||||
<span
|
<span
|
||||||
@click="stopEventPropagation($event)"
|
@click="stopEventPropagation($event)"
|
||||||
|
@ -545,6 +557,16 @@ defineExpose({
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grid-two {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
|
||||||
|
max-width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow: scroll;
|
||||||
|
white-space: wrap;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.w-80 {
|
.w-80 {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue