2021-08-24 15:20:01 +08:00
|
|
|
<template>
|
2022-01-19 19:28:03 +08:00
|
|
|
<div @click="(evt) => evt.stopPropagation()">
|
2021-08-24 15:20:01 +08:00
|
|
|
<q-tabs
|
|
|
|
v-model="tab_value"
|
|
|
|
dense
|
|
|
|
class="text-grey"
|
|
|
|
active-color="primary"
|
|
|
|
indicator-color="primary"
|
|
|
|
align="justify"
|
|
|
|
narrow-indicator
|
|
|
|
>
|
2022-07-04 14:20:00 +08:00
|
|
|
<q-tab no-caps name="mode" :label="$t('mode')" />
|
|
|
|
<q-tab no-caps name="plan" :label="$t('plan')" />
|
2021-08-24 15:20:01 +08:00
|
|
|
</q-tabs>
|
|
|
|
<q-separator />
|
|
|
|
|
|
|
|
<q-tab-panels v-model="tab_value" animated>
|
|
|
|
<q-tab-panel name="mode">
|
|
|
|
<mode-tree />
|
|
|
|
</q-tab-panel>
|
|
|
|
|
|
|
|
<q-tab-panel name="plan">
|
2021-08-25 17:30:02 +08:00
|
|
|
<plan-tree />
|
2021-08-24 15:20:01 +08:00
|
|
|
</q-tab-panel>
|
|
|
|
</q-tab-panels>
|
|
|
|
</div>
|
2021-08-27 09:13:57 +08:00
|
|
|
<slot />
|
2021-08-24 15:20:01 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent, ref } from "vue";
|
|
|
|
import ModeTree from "src/components/ModeTree.vue";
|
2021-08-25 17:30:02 +08:00
|
|
|
import PlanTree from "src/components/PlanTree.vue";
|
2021-08-24 15:20:01 +08:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: "PageRightToolBar",
|
|
|
|
|
2021-08-25 17:30:02 +08:00
|
|
|
components: { ModeTree, PlanTree },
|
2021-08-24 15:20:01 +08:00
|
|
|
|
|
|
|
setup() {
|
2021-08-26 15:42:34 +08:00
|
|
|
let tab_value = ref("mode");
|
2021-08-24 15:20:01 +08:00
|
|
|
return { tab_value };
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|