team.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div class="team">
  3. <el-row :gutter="20">
  4. <el-col :span="4">
  5. <div>
  6. <el-input class="search-input" v-model="teamValue" placeholder="团队名称查找" prefix-icon="Search"></el-input>
  7. </div>
  8. <el-button class="add-btn" link icon="plus">添加团队</el-button>
  9. </el-col>
  10. <el-col :span="20">
  11. 222
  12. </el-col>
  13. </el-row>
  14. </div>
  15. </template>
  16. <script setup lang="ts">
  17. import { ref } from 'vue'
  18. // 团队
  19. let teamTree = ref([
  20. {
  21. label: '团队1',
  22. value: '1',
  23. children: [
  24. {
  25. label: '团队1-1',
  26. value: '1-1',
  27. children: [
  28. {
  29. label: '团队1-1-1',
  30. value: '1-1-1',
  31. }
  32. ]
  33. }
  34. ]
  35. },{
  36. label: '团队2',
  37. value: '2',
  38. children: [
  39. {
  40. label: '团队2-1',
  41. value: '2-1',
  42. children: [
  43. {
  44. label: '团队2-1-1',
  45. value: '2-1-1',
  46. }
  47. ]
  48. }
  49. ]
  50. }
  51. ])
  52. let teamValue = ref('')
  53. </script>
  54. <style scoped lang="scss">
  55. .team{
  56. background: #00a0f4;
  57. height: 100% !important;
  58. .search-input{
  59. margin: 10px 20px;
  60. }
  61. .add-btn{
  62. display: block;
  63. margin: 0 auto;
  64. }
  65. }
  66. </style>