minhnt-dev: navigation

This commit is contained in:
MoreStrive
2024-06-17 13:20:31 +07:00
parent 3c75c89a8b
commit f17e28472c
7 changed files with 38 additions and 291 deletions
@@ -27,6 +27,7 @@ const findDataPosition = computed(() => {
result = currentPage.value.components && currentPage.value.components.find((component: any) => {
return component.settings?.template === enumPageComponentTemplates.NAVIGATION && component.settings?.layout === defineTypeRecusive.TOP_NAVIGATION
});
console.log(result)
break;
case defineTypeRecusive.BOTTOM_NAVIGATION:
result = currentPage.value.components && currentPage.value.components.find((component: any) => {
@@ -37,13 +38,9 @@ const findDataPosition = computed(() => {
result = {};
break;
}
console.log(result)
return result;
});
// const selectComponent = (data: any) => {
// store.page.selectComponent(data)
// }
console.log(findDataPosition, 'findDataPosition')
</script>