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