- Editor Pagine Elementi: Sezione, Righe, Colonne, Elementi. (rows, columns, elems)
This commit is contained in:
@@ -241,6 +241,7 @@ export default defineComponent({
|
||||
$q,
|
||||
t,
|
||||
props.myelem,
|
||||
{idPage: props.idPage, path: props.path},
|
||||
newtype.value
|
||||
);
|
||||
}
|
||||
@@ -251,7 +252,7 @@ export default defineComponent({
|
||||
newrec._id = undefined;
|
||||
newrec.order = order ? order : newrec.order! + 10;
|
||||
|
||||
globalStore.addNewElem($q, t, newrec);
|
||||
globalStore.addNewElem($q, t, newrec, newrec);
|
||||
}
|
||||
|
||||
function modifElem() {
|
||||
@@ -320,7 +321,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function clickshare() {
|
||||
tools.addToTemporaryLinkReg();
|
||||
tools.addToTemporaryLinkReg(t);
|
||||
|
||||
const mytext = await tools.sendMsgTelegramCmd(
|
||||
$q,
|
||||
@@ -329,10 +330,6 @@ export default defineComponent({
|
||||
true
|
||||
);
|
||||
|
||||
if (false) {
|
||||
social.value.description = mytext;
|
||||
visushare.value = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Classe per le colonne delle card
|
||||
|
||||
@@ -10,37 +10,6 @@
|
||||
"
|
||||
>
|
||||
<div v-if="myel.type">
|
||||
<div v-if="myel.children && myel.children.length">
|
||||
<template v-for="(section, sidx) in myel.children">
|
||||
<CSection
|
||||
v-if="section.type === shared_consts.ELEMTYPE.SECTION"
|
||||
:key="'sec' + sidx"
|
||||
>
|
||||
<template
|
||||
v-for="(row, ridx) in section.rows || section.children || []"
|
||||
:key="'row' + ridx"
|
||||
>
|
||||
<CRow
|
||||
v-if="row.type === shared_consts.ELEMTYPE.ROW"
|
||||
:key="'r' + ridx"
|
||||
>
|
||||
<template
|
||||
v-for="(col, cidx) in row.columns || row.children || []"
|
||||
:key="'col' + cidx"
|
||||
>
|
||||
<CColumn
|
||||
v-if="col"
|
||||
:key="'col' + cidx"
|
||||
>
|
||||
<div v-if="col.container">{{ col.container }}</div>
|
||||
<div v-else-if="col.title">{{ col.title }}</div>
|
||||
</CColumn>
|
||||
</template>
|
||||
</CRow>
|
||||
</template>
|
||||
</CSection>
|
||||
</template>
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="editOn"
|
||||
class="btn-edit-floating"
|
||||
@@ -96,8 +65,8 @@
|
||||
control-type="flat"
|
||||
class="shadow-2 rounded-borders"
|
||||
:style="`background-color: ${myel.color} !important`"
|
||||
@mouseenter="animarecard = false"
|
||||
@mouseleave="animarecard = true"
|
||||
@mouseenter="animarecard = 0"
|
||||
@mouseleave="animarecard = 1000"
|
||||
>
|
||||
<template v-slot:control>
|
||||
<q-carousel-control
|
||||
@@ -335,8 +304,17 @@
|
||||
@click="clickOnElem"
|
||||
>
|
||||
<q-img
|
||||
v-if="tools.getImgFileByElem(myel, undefined, path)"
|
||||
:src="tools.getImgFileByElem(myel, undefined, path)"
|
||||
:fit="myel.fit"
|
||||
:fit="myel.fit ? myel.fit : 'contain'"
|
||||
class="img"
|
||||
:width="myel.widthimg ? myel.widthimg : undefined"
|
||||
:height="myel.heightimg ? myel.heightimg : undefined"
|
||||
></q-img>
|
||||
<q-img
|
||||
v-else
|
||||
src="images/noimg.png"
|
||||
:fit="myel.fit ? myel.fit : 'contain'"
|
||||
class="img"
|
||||
:width="myel.widthimg ? myel.widthimg : undefined"
|
||||
:height="myel.heightimg ? myel.heightimg : undefined"
|
||||
@@ -1136,6 +1114,8 @@
|
||||
<div class="q-ma-md"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
||||
<q-dialog
|
||||
|
||||
Reference in New Issue
Block a user