Spaces:
Running
Running
Add debug logging and styling for MiniEchart in Join Arena page
Browse files
src/views/RequestView.vue
CHANGED
|
@@ -175,6 +175,7 @@ const MiniEchart = {
|
|
| 175 |
return { _chart: null, _ro: null, _raf: 0 }
|
| 176 |
},
|
| 177 |
mounted() {
|
|
|
|
| 178 |
nextTick(() => this.initChartSafely())
|
| 179 |
},
|
| 180 |
beforeUnmount() {
|
|
@@ -195,6 +196,7 @@ const MiniEchart = {
|
|
| 195 |
return
|
| 196 |
}
|
| 197 |
this._chart = echarts.init(el, null, { renderer: 'canvas' })
|
|
|
|
| 198 |
this.render(this.data)
|
| 199 |
|
| 200 |
// Listen for container resize
|
|
@@ -471,7 +473,7 @@ export default {
|
|
| 471 |
.type-stock { background:#f6fffb; border-color:#d9fbe6; color:#064e3b; }
|
| 472 |
|
| 473 |
.asset-body{ display:flex; flex-direction:column; gap:10px; }
|
| 474 |
-
.spark-wrap{ width:100%; height:90px; overflow:hidden; border-radius:8px; }
|
| 475 |
.asset-stats{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
|
| 476 |
.stat{ background:#F6F8FB; border:1px solid #E7ECF3; border-radius:10px; padding:8px; min-width:0; }
|
| 477 |
.stat-label{ font-size:11px; color:#6b7280; margin-bottom:2px; }
|
|
|
|
| 175 |
return { _chart: null, _ro: null, _raf: 0 }
|
| 176 |
},
|
| 177 |
mounted() {
|
| 178 |
+
console.log('[MiniEchart] Mounted with data:', this.data?.length || 0, 'items')
|
| 179 |
nextTick(() => this.initChartSafely())
|
| 180 |
},
|
| 181 |
beforeUnmount() {
|
|
|
|
| 196 |
return
|
| 197 |
}
|
| 198 |
this._chart = echarts.init(el, null, { renderer: 'canvas' })
|
| 199 |
+
console.log('[MiniEchart] Chart initialized, rendering data:', this.data?.length || 0)
|
| 200 |
this.render(this.data)
|
| 201 |
|
| 202 |
// Listen for container resize
|
|
|
|
| 473 |
.type-stock { background:#f6fffb; border-color:#d9fbe6; color:#064e3b; }
|
| 474 |
|
| 475 |
.asset-body{ display:flex; flex-direction:column; gap:10px; }
|
| 476 |
+
.spark-wrap{ width:100%; height:90px; overflow:hidden; border-radius:8px; background:#F6F8FB; border:1px solid #E7ECF3; }
|
| 477 |
.asset-stats{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
|
| 478 |
.stat{ background:#F6F8FB; border:1px solid #E7ECF3; border-radius:10px; padding:8px; min-width:0; }
|
| 479 |
.stat-label{ font-size:11px; color:#6b7280; margin-bottom:2px; }
|