Skip to content

Commit 6c960fa

Browse files
committed
VueUiQuadrant fix flex layout in table first col
1 parent 8f05a50 commit 6c960fa

File tree

3 files changed

+18
-23
lines changed

3 files changed

+18
-23
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "1.9.17",
4+
"version": "1.9.18",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-quadrant.vue

+15-20
Original file line numberDiff line numberDiff line change
@@ -882,17 +882,21 @@ defineExpose({
882882
<tbody>
883883
<tr v-for="(tr, i) in table.body">
884884
<td v-for="(td, j) in tr" :style="`background:${quadrantConfig.table.td.backgroundColor};color:${quadrantConfig.table.td.color};outline:${quadrantConfig.table.td.outline}`">
885-
<svg v-if="j === 0" height="14" width="14" viewBox="0 0 20 20">
886-
<Shape
887-
:plot="{ x: 10, y: 10 }"
888-
:color="table.itsShapes[i].color"
889-
:shape="table.itsShapes[i].shape"
890-
:radius="8"
891-
:stroke="quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
892-
:strokeWidth="quadrantConfig.style.chart.layout.plots.outlineWidth"
893-
/>
894-
</svg>
895-
{{ isNaN(td) ? td : td.toFixed(quadrantConfig.table.td.roundingValue) }}
885+
<div style="display:flex;align-items:center;gap:3px;justify-content:flex-end">
886+
<svg v-if="j === 0" height="14" width="14" viewBox="0 0 20 20">
887+
<Shape
888+
:plot="{ x: 10, y: 10 }"
889+
:color="table.itsShapes[i].color"
890+
:shape="table.itsShapes[i].shape"
891+
:radius="8"
892+
:stroke="quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
893+
:strokeWidth="quadrantConfig.style.chart.layout.plots.outlineWidth"
894+
/>
895+
</svg>
896+
<span>
897+
{{ isNaN(td) ? td : td.toFixed(quadrantConfig.table.td.roundingValue) }}
898+
</span>
899+
</div>
896900
</td>
897901
</tr>
898902
</tbody>
@@ -954,15 +958,6 @@ path, line, rect, circle, polygon {
954958
cursor: pointer;
955959
height: 24px;
956960
}
957-
.vue-ui-quadrant-tooltip {
958-
border: 1px solid #e1e5e8;
959-
border-radius: 4px;
960-
box-shadow: 0 6px 12px -6px rgba(0,0,0,0.2);
961-
max-width: 300px;
962-
position: fixed;
963-
padding:12px;
964-
z-index:1;
965-
}
966961
967962
/** */
968963
.vue-ui-quadrant table {

0 commit comments

Comments
 (0)