- aggiunto FeaturesSection all'editor HTML

This commit is contained in:
Surya Paolo
2025-09-17 01:21:40 +02:00
parent e40bf8b73d
commit 917cdaa754
17 changed files with 307 additions and 49 deletions

View File

@@ -260,7 +260,7 @@ export default defineComponent({
// @ts-ignore
label: page.title,
// @ts-ignore
value: page.idPage,
value: page.path,
};
arrPages.value.push(rec);
}
@@ -820,6 +820,19 @@ export default defineComponent({
colorPicker.value.openDialog();
}
function removeFeature(index: number) {
myel.value.features.splice(index, 1);
saveElem();
}
function addFeature() {
myel.value.features.push({
name: 'Titolo',
description: 'sottotitolo',
icon: 'fas fa-heading',});
saveElem();
}
onMounted(mounted);
return {
@@ -890,6 +903,8 @@ export default defineComponent({
AddedNewElem,
openColorPicker,
colorPicker,
removeFeature,
addFeature,
};
},
});