| <!-- |
| Copyright (c) 2008,2020 Silicon Labs. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <template> |
| <div> |
| <q-splitter v-model="splitterModel" style="height: 100%"> |
| <template v-slot:before> |
| <q-tabs v-model="tab" vertical class="text-teal"> |
| <q-tab name="user" icon="mdi-wrench" label="User settings" /> |
| <q-tab name="package" icon="mdi-lan" label="Zcl packages" /> |
| <q-tab |
| name="gen" |
| icon="mdi-file-document-edit-outline" |
| label="Generation" |
| /> |
| <q-tab name="about" icon="mdi-lan" label="About" /> |
| </q-tabs> |
| </template> |
| |
| <template v-slot:after> |
| <q-tab-panels |
| v-model="tab" |
| animated |
| swipeable |
| vertical |
| transition-prev="jump-up" |
| transition-next="jump-up" |
| > |
| <q-tab-panel name="user"> |
| <PreferenceUser /> |
| </q-tab-panel> |
| <q-tab-panel name="package"> |
| <PreferencePackage /> |
| </q-tab-panel> |
| |
| <q-tab-panel name="gen"> |
| <PreferenceGeneration /> |
| </q-tab-panel> |
| |
| <q-tab-panel name="about"> |
| <About /> |
| </q-tab-panel> |
| </q-tab-panels> |
| </template> |
| </q-splitter> |
| </div> |
| </template> |
| <script> |
| import PreferencePackage from './preferences/PreferencePackage.vue' |
| import PreferenceGeneration from './preferences/PreferenceGeneration.vue' |
| import PreferenceUser from './preferences/PreferenceUser.vue' |
| import About from './preferences/AboutPage.vue' |
| export default { |
| name: 'PreferencePage', |
| components: { |
| PreferencePackage, |
| PreferenceGeneration, |
| PreferenceUser, |
| About |
| }, |
| data() { |
| return { |
| tab: 'user', |
| splitterModel: 20 |
| } |
| } |
| } |
| </script> |