dragKanban.vue 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div class="components-container board">
  3. <Kanban :key="1" class="kanban todo" :list="list1" :options="options" header-text="Todo"/>
  4. <Kanban :key="2" class="kanban working" :list="list2" :options="options" header-text="Working"/>
  5. <Kanban :key="3" class="kanban done" :list="list3" :options="options" header-text="Done"/>
  6. </div>
  7. </template>
  8. <script>
  9. import Kanban from '@/components/Kanban'
  10. export default {
  11. name: 'dragKanban-demo',
  12. components: {
  13. Kanban
  14. },
  15. data() {
  16. return {
  17. options: {
  18. group: 'mission'
  19. },
  20. list1: [
  21. { name: 'Mission', id: 1 },
  22. { name: 'Mission', id: 2 },
  23. { name: 'Mission', id: 3 },
  24. { name: 'Mission', id: 4 }
  25. ],
  26. list2: [
  27. { name: 'Mission', id: 5 },
  28. { name: 'Mission', id: 6 },
  29. { name: 'Mission', id: 7 }
  30. ],
  31. list3: [
  32. { name: 'Mission', id: 8 },
  33. { name: 'Mission', id: 9 },
  34. { name: 'Mission', id: 10 }
  35. ]
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. .board {
  42. width: 1000px;
  43. margin-left: 20px;
  44. display: flex;
  45. justify-content: space-around;
  46. flex-direction: row;
  47. align-items: flex-start;
  48. }
  49. .kanban {
  50. &.todo {
  51. .board-column-header {
  52. background: #4A9FF9;
  53. }
  54. }
  55. &.working {
  56. .board-column-header {
  57. background: #f9944a;
  58. }
  59. }
  60. &.done {
  61. .board-column-header {
  62. background: #2ac06d;
  63. }
  64. }
  65. }
  66. </style>