index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!-- image -->
  2. <template>
  3. <div class="ai-image">
  4. <div class="left">
  5. <div class="segmented">
  6. <el-segmented v-model="value" :options="options" />
  7. </div>
  8. <div class="modal-switch-container">
  9. <Dall3 />
  10. </div>
  11. </div>
  12. <div class="main">
  13. main
  14. </div>
  15. <div class="right">
  16. right
  17. </div>
  18. </div>
  19. </template>
  20. <script setup lang="ts">
  21. import Dall3 from './dall3/index.vue'
  22. // 定义属性
  23. const value = ref('DALL3绘画')
  24. const options = ['DALL3绘画', 'MJ绘画']
  25. </script>
  26. <style scoped lang="scss">
  27. .ai-image {
  28. position: absolute;
  29. left: 0;
  30. right: 0;
  31. bottom: 0;
  32. top: 0;
  33. display: flex;
  34. flex-direction: row;
  35. height: 100%;
  36. width: 100%;
  37. .left {
  38. display: flex;
  39. flex-direction: column;
  40. padding: 20px;
  41. width: 350px;
  42. .segmented {
  43. }
  44. .segmented .el-segmented {
  45. --el-border-radius-base: 16px;
  46. --el-segmented-item-selected-color: #fff;
  47. background-color: #ececec;
  48. width: 350px;
  49. }
  50. .modal-switch-container {
  51. height: 100%;
  52. overflow-y: auto;
  53. margin-top: 30px;
  54. }
  55. }
  56. .main {
  57. flex: 1;
  58. background-color: #fff;
  59. }
  60. .right {
  61. width: 350px;
  62. background-color: #f7f8fa;
  63. }
  64. }
  65. </style>