Initiated designer

pull/6703/head
Cagatay Civici 2024-11-10 18:24:15 +03:00
parent 26795f0ece
commit 282ed7fa2d
4 changed files with 1067 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -94,6 +94,11 @@
</button> </button>
<AppConfigurator /> <AppConfigurator />
</li> </li>
<li>
<button type="button" class="topbar-item" @click="toggleDesigner">
<i class="pi pi-pencil"></i>
</button>
</li>
<li> <li>
<button <button
v-styleclass="{ selector: '@next', enterFromClass: 'hidden', enterActiveClass: 'animate-scalein', leaveToClass: 'hidden', leaveActiveClass: 'animate-fadeout', hideOnOutsideClick: true }" v-styleclass="{ selector: '@next', enterFromClass: 'hidden', enterActiveClass: 'animate-scalein', leaveToClass: 'hidden', leaveActiveClass: 'animate-fadeout', hideOnOutsideClick: true }"
@ -237,6 +242,9 @@ export default {
}, },
containerRef(el) { containerRef(el) {
this.container = el; this.container = el;
},
toggleDesigner() {
this.$appState.designerActive = !this.$appState.designerActive;
} }
}, },
components: { components: {

View File

@ -9,6 +9,7 @@
<slot></slot> <slot></slot>
</div> </div>
</div> </div>
<AppDesigner />
<AppFooter /> <AppFooter />
<Toast /> <Toast />
<Toast position="top-left" group="tl" /> <Toast position="top-left" group="tl" />
@ -22,6 +23,7 @@ import { blockBodyScroll, unblockBodyScroll } from '@primeuix/utils/dom';
import AppFooter from './AppFooter.vue'; import AppFooter from './AppFooter.vue';
import AppMenu from './AppMenu.vue'; import AppMenu from './AppMenu.vue';
import AppNews from './AppNews.vue'; import AppNews from './AppNews.vue';
import AppDesigner from './AppDesigner.vue';
import AppTopBar from './AppTopBar.vue'; import AppTopBar from './AppTopBar.vue';
export default { export default {
@ -82,7 +84,8 @@ export default {
AppTopBar, AppTopBar,
AppMenu, AppMenu,
AppFooter, AppFooter,
AppNews AppNews,
AppDesigner
} }
}; };
</script> </script>

View File

@ -13,7 +13,8 @@ const $appState = {
sourceType: 'options-api', sourceType: 'options-api',
newsActive: false, newsActive: false,
announcement: null, announcement: null,
storageKey: 'primevue' storageKey: 'primevue',
designerActive: false
}); });
} }
}; };