EntityIndexGridItem.vue 963 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <q-card class="EntityIndexGridItem">
  3. <q-card-section v-if="inputData.props?.cols && inputData.props.cols.length > 0">
  4. <div v-for="(col, colIndex) in inputData.props.cols"
  5. :key="colIndex"
  6. class="table-column">
  7. <slot name="col"
  8. :col="col"
  9. :row="inputData.props.row">
  10. <div class="label"
  11. v-html="col.label" />
  12. <div class="value"
  13. v-html="col.field(inputData.props.row)" />
  14. </slot>
  15. </div>
  16. </q-card-section>
  17. </q-card>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'EntityIndexGridItem',
  22. props: {
  23. inputData: {
  24. type: Object,
  25. default () {
  26. return {}
  27. }
  28. }
  29. },
  30. methods: {}
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. .EntityIndexGridItem {
  35. width: 100%;
  36. margin-bottom: 8px;
  37. .table-column {
  38. margin-bottom: 16px;
  39. .label {
  40. color: #616161;
  41. }
  42. .value {}
  43. }
  44. }
  45. </style>