Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | <template>
<div class="w-100">
<orders
:orders="orders.slice(0, itemsPerPage) /* current orders */"
class="d-none d-lg-block orders ps-5"></orders>
<orders-mobile
:orders="orders.slice(0, itemsPerPage) /* current orders */"
class="d-lg-none orders-mobile"></orders-mobile>
<div class="d-flex justify-content-end">
<span class="page-select-text">Records per page:</span>
<custom-select
v-model="itemsPerPage"
:selectSpecs="{
label: 'Select number of items per page', // select label
arrowPos: 'left', // position of dropdown arrow
isHidden: false, // is first option hidden
options: ['4', '8', '12'], // select options
bgColor: 'transparent', // background color of select
fontColor: 'rgb(0, 21, 44)', // select font color
fontWeight: 'SoleilRegular' // select font weight
}"
></custom-select>
<span class="page-select-text ms-2">
{{`${Math.min(1, this.orders.length)}-${Math.min(this.itemsPerPage, this.orders.length)} / ${this.orders.length}`}}
</span>
</div>
<div class="d-lg-none specific-breakpoint line px-2 my-3"></div>
</div>
</template>
<script>
import orders from '../../../../components/account/orders.vue';
import ordersMobile from '../../../../components/account/orders-mobile.vue';
import customSelect from '../../../../components/utilities/form-utils/custom-select.vue';
export default {
components: {orders, ordersMobile, customSelect},
data() {
return {
itemsPerPage: 4,
orders: [
{
'id': '1',
'date': '05-Feb-2020',
'val': '1400',
'status': 'Procesare',
'plata': 'Online-card',
'livrare': 'curier'
},
{
'id': '2',
'date': '05-Feb-2020',
'val': '1500',
'status': 'Procesare',
'plata': 'Online-card',
'livrare': 'curier'
},
{
'id': '3',
'date': '05-Feb-2020',
'val': '500',
'status': 'Procesare',
'plata': 'Online-card',
'livrare': 'curier'
},
{
'id': '4',
'date': '05-Feb-2020',
'val': '800',
'status': 'Livrata',
'plata': 'Online-card',
'livrare': 'curier'
},
{
'id': '5',
'date': '05-Feb-2020',
'val': '100',
'status': 'Anulata',
'plata': 'Online-card',
'livrare': 'curier'
},
]
}
}
}
</script>
<style lang="scss" scoped>
.page-select-text {
font-size: 1.2rem;
}
.line {
height: 0.5px;
background-color: rgb(154, 117, 63);
}
@media screen and #{$ipad-pro-landscape-breakpoint},
screen and #{$ipad-pro-portrait-breakpoint},
screen and #{$ipad-landscape-breakpoint} {
::v-deep.custom-select {
font-size: 1.3rem;
}
.page-select-text {
font-size: 1.3rem;
}
.line {
height: 1px;
}
.orders {
display: none !important;
}
.orders-mobile {
display: block !important;
}
}
@include media-breakpoint-down(lg) {
.page-select-text {
font-size: 1.2rem;
}
.line {
height: 1px;
}
}
@include media-breakpoint-down(sm) {
.page-select-text {
font-size: 1rem;
}
}
</style>
|