pabo99 / v3-gl-ext-omegaup

This repository is intended for testing the functionality of v3-gl-ext on omegaUp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v3-gl-ext

Vue3 golden layout and extensions - successor of vue-golden-layout

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Usage

<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>

Screenshots

Vue-Golden-Layout

Properties

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.

TODOs

  • Config watching through property
  • Route sub-components
  • Route whole config (adds in the column/row instead of the stack)

About

This repository is intended for testing the functionality of v3-gl-ext on omegaUp.

License:MIT License


Languages

Language:Vue 73.3%Language:TypeScript 17.8%Language:CSS 7.1%Language:JavaScript 1.0%Language:HTML 0.9%