Vue3 golden layout and extensions - successor of vue-golden-layout
npm install
npm run dev
npm run build
<template>
<golden-layout :router="true" :config="layoutConfig">
<template #myTemplate>
...
</template>
</golden-layout>
</template>
<script lang="ts">
import { GoldenLayout } from "v3-gl-ext";
const layoutconfig = {
root: {
type: "component",
title: "One tab",
header: { show: "top" },
isClosable: false,
componentType: "myTemplate"
}
};
</script>
If router
is true, every route change will either open a new tab or select the good one if already opened. Also, the url changes with tab change.
- Config watching through property
- Route sub-components
- Route whole config (adds in the column/row instead of the stack)