From a8972fa01b1e7ec438e3d4c53d2fa2a57bb33fe8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 2 Mar 2021 00:13:18 +0300 Subject: [PATCH] Add column widths --- src/views/overlaypanel/OverlayPanelDemo.vue | 6 +++--- src/views/overlaypanel/OverlayPanelDoc.vue | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/overlaypanel/OverlayPanelDemo.vue b/src/views/overlaypanel/OverlayPanelDemo.vue index 0bb5c13ee..d3c6df9ea 100755 --- a/src/views/overlaypanel/OverlayPanelDemo.vue +++ b/src/views/overlaypanel/OverlayPanelDemo.vue @@ -13,13 +13,13 @@ - - + + - + diff --git a/src/views/overlaypanel/OverlayPanelDoc.vue b/src/views/overlaypanel/OverlayPanelDoc.vue index 930700b09..ef1873771 100755 --- a/src/views/overlaypanel/OverlayPanelDoc.vue +++ b/src/views/overlaypanel/OverlayPanelDoc.vue @@ -162,13 +162,13 @@ toggle(event) { <OverlayPanel ref="op" appendTo="body" :showCloseIcon="true" id="overlay_panel" style="width: 450px"> <DataTable :value="products" v-model:selection="selectedProduct" selectionMode="single" :paginator="true" :rows="5" @row-select="onProductSelect" responsiveLayout="scroll"> - <Column field="name" header="Name" sortable></Column> - <Column header="Image"> + <Column field="name" header="Name" sortable style="width: 50%"></Column> + <Column header="Image" style="width: 20%"> <template #body="slotProps"> <img :src="'demo/images/product/' + slotProps.data.image" :alt="slotProps.data.image" class="product-image" /> </template> </Column> - <Column field="price" header="Price" sortable> + <Column field="price" header="Price" sortable style="width: 30%"> <template #body="slotProps"> {{formatCurrency(slotProps.data.price)}} </template> @@ -231,13 +231,13 @@ export default { - - + + - +