- AbitaregliIblei.it
- Server aggiornamenti agli script. - Editor HTML corretto un po'. - Record Mysql per server (appena iniziato)
This commit is contained in:
@@ -201,7 +201,7 @@ export default defineComponent({
|
||||
if (!myel.value.elemsText)
|
||||
myel.value.elemsText = []
|
||||
|
||||
myel.value.elemsText.push({ _id: objectId(), text: '', color: '#ffffff', class: '', size: '', anim: { name: 'FadeIn', clduration: '', cldelay: '', timingtype: 'ease-in-out'} })
|
||||
myel.value.elemsText.push({ _id: objectId(), text: '', color: '#ffffff', class: '', size: '', anim: { name: 'FadeIn', clduration: '', cldelay: '', timingtype: 'ease-in-out' } })
|
||||
modifElem()
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ export default defineComponent({
|
||||
})
|
||||
}
|
||||
} else if ((props.myelem.type === shared_consts.ELEMTYPE.IMGTITLE) ||
|
||||
(props.myelem.type === shared_consts.ELEMTYPE.IMAGE)) {
|
||||
(props.myelem.type === shared_consts.ELEMTYPE.IMAGE)) {
|
||||
myel.value.image = myval
|
||||
}
|
||||
modifElem()
|
||||
@@ -263,11 +263,11 @@ export default defineComponent({
|
||||
|
||||
function showAnimation() {
|
||||
return (myel.value.type === shared_consts.ELEMTYPE.IMAGE)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.IMGTITLE)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.TEXT)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.CARD)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.HTML)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.CAROUSEL_IMGS)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.IMGTITLE)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.TEXT)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.CARD)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.HTML)
|
||||
|| (myel.value.type === shared_consts.ELEMTYPE.CAROUSEL_IMGS)
|
||||
}
|
||||
|
||||
function updateElem(myvalue: any) {
|
||||
@@ -278,6 +278,20 @@ export default defineComponent({
|
||||
modifElem()
|
||||
}
|
||||
|
||||
function generateSizeOptions() {
|
||||
const options = [];
|
||||
for (let i = 0; i <= 700; i += 50) {
|
||||
options.push({ label: `${i}px`, value: `${i}px` });
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
function updateSizeWidth(value: any) {
|
||||
// Gestisce l'input dell'utente per un nuovo valore
|
||||
myel.value.widthimg = value; // Aggiorna widthimg con il nuovo valore
|
||||
modifElem()
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -318,6 +332,8 @@ export default defineComponent({
|
||||
visuadd,
|
||||
tabadd,
|
||||
Products,
|
||||
generateSizeOptions,
|
||||
updateSizeWidth,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user