Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template v-slot:item="props">
- <div
- class="q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition"
- :style="props.selected ? 'transform: scale(0.95);' : ''"
- >
- <q-card :class="props.selected ? 'bg-grey-2' : ''">
- <q-card-section>
- <q-checkbox dense v-model="props.selected" :label="props.row.name" ></q-checkbox>
- </q-card-section>
- <q-separator ></q-separator>
- <q-list dense>
- <q-item v-for="col in props.cols.filter(col => col.name !== 'desc')" :key="col.name">
- <q-item-section>
- <q-item-label>{{ col.label }}</q-item-label>
- </q-item-section>
- <q-item-section side>
- <q-item-label caption>{{ col.value }}</q-item-label>
- </q-item-section>
- </q-item>
- </q-list>
- </q-card>
- </div>
- </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement