| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <q-card :flat="flat"
- class="EntityIndexGridItem">
- <q-card-section v-if="inputData.props?.cols && inputData.props.cols.length > 0">
- <div v-for="(col, colIndex) in inputData.props.cols"
- :key="colIndex"
- class="table-column">
- <slot name="col"
- :col="col"
- :row="inputData.props.row">
- <div class="label"
- v-html="col.label" />
- <div class="value"
- v-html="col.field(inputData.props.row)" />
- </slot>
- </div>
- </q-card-section>
- </q-card>
- </template>
- <script>
- export default {
- name: 'EntityIndexGridItem',
- props: {
- inputData: {
- type: Object,
- default () {
- return {}
- }
- },
- flat: {
- type: Boolean,
- default: false
- }
- },
- methods: {}
- }
- </script>
- <style scoped lang="scss">
- .EntityIndexGridItem {
- width: 100%;
- margin-bottom: 8px;
- .table-column {
- margin-bottom: 16px;
- .label {
- color: #616161;
- }
- .value {}
- }
- }
- </style>
|