Rulr Editor 作成
This commit is contained in:
@@ -50,6 +50,19 @@ import { ref } from 'vue';
|
|||||||
import EssentialLink, { EssentialLinkProps } from 'components/EssentialLink.vue';
|
import EssentialLink, { EssentialLinkProps } from 'components/EssentialLink.vue';
|
||||||
|
|
||||||
const essentialLinks: EssentialLinkProps[] = [
|
const essentialLinks: EssentialLinkProps[] = [
|
||||||
|
{
|
||||||
|
title: 'ホーム',
|
||||||
|
caption: 'home',
|
||||||
|
icon: 'home',
|
||||||
|
link: '/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'ルールエディター',
|
||||||
|
caption: 'rule',
|
||||||
|
icon: 'rule',
|
||||||
|
link: '/#/ruleEditor'
|
||||||
|
}
|
||||||
|
,
|
||||||
{
|
{
|
||||||
title: 'Docs',
|
title: 'Docs',
|
||||||
caption: 'quasar.dev',
|
caption: 'quasar.dev',
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-page>
|
<q-page>
|
||||||
|
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
|
<div class="q-gutter-sm row items-start">
|
||||||
|
<q-breadcrumbs>
|
||||||
|
<q-breadcrumbs-el icon="home" label="ホーム" />
|
||||||
|
</q-breadcrumbs>
|
||||||
|
</div>
|
||||||
<div class="q-gutter-sm row items-start">
|
<div class="q-gutter-sm row items-start">
|
||||||
<doc-uploader></doc-uploader>
|
<doc-uploader></doc-uploader>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,16 +2,48 @@
|
|||||||
<q-page>
|
<q-page>
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<div class="q-gutter-sm row items-start">
|
<div class="q-gutter-sm row items-start">
|
||||||
|
<q-breadcrumbs>
|
||||||
|
<q-breadcrumbs-el icon="home" to="/" />
|
||||||
|
<q-breadcrumbs-el :label="title" icon="rule" />
|
||||||
|
</q-breadcrumbs>
|
||||||
|
</div>
|
||||||
|
<div id="q-app" style="min-height: 100vh;">
|
||||||
|
<div class="q-pa-md">
|
||||||
|
<q-btn-dropdown
|
||||||
|
split
|
||||||
|
color="primary"
|
||||||
|
label="ルール新規作成"
|
||||||
|
size="lg"
|
||||||
|
>
|
||||||
|
<q-list>
|
||||||
|
<q-item
|
||||||
|
v-for="action in actions"
|
||||||
|
clickable v-close-popup
|
||||||
|
@click="onItemClick"
|
||||||
|
:key="action"
|
||||||
|
>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>{{ action }}</q-item-label>
|
||||||
|
</q-item-section>
|
||||||
|
</q-item>
|
||||||
|
</q-list>
|
||||||
|
</q-btn-dropdown>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-page>
|
</q-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Todo, Meta } from 'components/models';
|
interface Props {
|
||||||
import DocUploader from 'components/DocUpload.vue';
|
title: string;
|
||||||
// import ExampleComponent from 'components/ExampleComponent.vue';
|
actions:string[];
|
||||||
import { ref } from 'vue';
|
}
|
||||||
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
title:"ルールエディター",
|
||||||
|
actions:()=>["フィールド制御","一覧画面","その他"]
|
||||||
|
});
|
||||||
|
function onItemClick(evt: Event){
|
||||||
|
return;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -6,6 +6,11 @@ const routes: RouteRecordRaw[] = [
|
|||||||
component: () => import('layouts/MainLayout.vue'),
|
component: () => import('layouts/MainLayout.vue'),
|
||||||
children: [{ path: '', component: () => import('pages/IndexPage.vue') }],
|
children: [{ path: '', component: () => import('pages/IndexPage.vue') }],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/ruleEditor/',
|
||||||
|
component: () => import('layouts/MainLayout.vue'),
|
||||||
|
children: [{ path: '', component: () => import('pages/RuleEditor.vue') }],
|
||||||
|
},
|
||||||
|
|
||||||
// Always leave this as last one,
|
// Always leave this as last one,
|
||||||
// but you can also remove it
|
// but you can also remove it
|
||||||
|
|||||||
Reference in New Issue
Block a user