index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!--
  2. - Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
  3. -
  4. - Licensed under the GNU Affero General Public License, Version 3 (the "License");
  5. - you may not use this file except in compliance with the License.
  6. - You may obtain a copy of the License at
  7. -
  8. - https://www.gnu.org/licenses/agpl-3.0.html
  9. -
  10. - Unless required by applicable law or agreed to in writing, software
  11. - distributed under the License is distributed on an "AS IS" BASIS,
  12. - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. - See the License for the specific language governing permissions and
  14. - limitations under the License.
  15. -->
  16. <script lang="ts" setup>
  17. import SvgIcon from '@/components/SvgIcon/index.vue';
  18. import router from '@/router';
  19. import { ref } from 'vue-demi';
  20. import Preview from './components/preview.vue';
  21. import Edit from './components/edit.vue';
  22. const active = ref('1');
  23. </script>
  24. <template>
  25. <div class="w-full h-full px-4 my-3 pb-8 flex flex-col">
  26. <div class="flex w-full items-center justify-between mb-4">
  27. <n-button dashed size="small" type="primary" @click="router.back()">
  28. <SvgIcon class="text-lg" icon="carbon:return" />
  29. 返回列表
  30. </n-button>
  31. <n-tabs v-model:value="active" class="flex items-center">
  32. <n-tab name="1">
  33. <SvgIcon class="text-lg" icon="uil:setting" />
  34. <span class="pl-2">应用配置</span>
  35. </n-tab>
  36. <n-tab name="2">
  37. <SvgIcon class="text-lg" icon="grommet-icons:console" />
  38. <span class="pl-2">应用接入</span>
  39. </n-tab>
  40. </n-tabs>
  41. <div></div>
  42. </div>
  43. <div class="flex-1 overflow-y-auto">
  44. <div class="flex gap-4 h-full w-full">
  45. <Preview class="w-3/5" />
  46. <Edit class="w-full" />
  47. </div>
  48. </div>
  49. </div>
  50. </template>
  51. <style lang="less" scoped></style>