Guest User

Untitled

a guest
May 14th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. <template>
  2. <section class="payroll-conference-page">
  3. <c-table-builder
  4. :trColStyle="trColStyle"
  5. :trRowStyle="trRowStyle"
  6. :tdRowStyle="tdRowStyle"
  7. :rowStyle="rowStyle"
  8. :totalStyle="totalStyle"
  9. :cols="cols"
  10. :rows="rows"
  11. :total="total"
  12. />
  13. </section>
  14. </template>
  15.  
  16. <script>
  17. import CTableBuilder from '@common/CTableBuilder'
  18.  
  19. const trCol = { 'color': '#5E6784', 'font-family': 'Ubuntu', 'font-size': '14px', 'line-height': '16px' }
  20.  
  21. export default {
  22. components: { CTableBuilder },
  23.  
  24. data () {
  25. return {
  26. trColStyle: { 'height': '75px', 'background-color': '#E7E9F0', 'border': '1px solid #E7E9F0' },
  27. trRowStyle: { 'border': '1px solid #E7E9F0' },
  28. tdRowStyle: { 'padding-top': '20px', 'padding-bottom': '20px' },
  29. rowStyle: { 'color': '#5E6784', 'opacity': '0.8', 'font-size': '14px' },
  30. totalStyle: { 'height': '75px', 'color': '#7543D2', 'font-weight': 'bold', 'opacity': '0.8' },
  31. cols: [
  32. { label: 'Nome', row: 'name', icon: '', styles: trCol, sortable: { all: true, single: true }},
  33. { label: 'E-mail', row: 'email', icon: '', styles: trCol },
  34. { label: 'Idade', row: 'age', icon: '', styles: trCol, sortable: { single: true} , hasTotal: true },
  35. { label: 'Malícia', row: 'malice', icon: '', styles: trCol, sortable: { all: true }, hasTotal: true }
  36. ],
  37. rows: [
  38. { name: '1', email: 'coe1.mane@gmail.com', age: 4 },
  39. { name: '2', email: 'coe2.mane@gmail.com', age: 3, malice: 2 },
  40. { name: '3', email: 'coe3.mane@gmail.com', age: 2 },
  41. { name: '4', email: 'coe4.mane@gmail.com', age: 1, malice: 10 },
  42. ],
  43. total: { enable: true, label: 'Total CaRaiw', colPosition: 'email' }
  44. }
  45. }
  46. }
  47. </script>
Add Comment
Please, Sign In to add comment