- aggiunto FeaturesSection all'editor HTML
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user