mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added func for changed color for ratio-show in crash
This commit is contained in:
@@ -152,6 +152,11 @@
|
|||||||
transition: .3s ease;
|
transition: .3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lost-ratio {
|
||||||
|
color: #EF4444;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
/* /Crash-Graph */
|
/* /Crash-Graph */
|
||||||
|
|
||||||
/* Crash-Players */
|
/* Crash-Players */
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
:options="options"
|
:options="options"
|
||||||
v-else
|
v-else
|
||||||
/>
|
/>
|
||||||
<h2>{{ crashdata.CurrentX ? crashdata.CurrentX.toFixed(2) : '' }}</h2>
|
<h2 :class="{ 'lost-ratio' : crashdata.Status === 'GameEnd' }">{{ crashdata.CurrentX ? crashdata.CurrentX.toFixed(2) : '' }}</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -72,7 +72,7 @@ export default {
|
|||||||
{
|
{
|
||||||
label: "Foo",
|
label: "Foo",
|
||||||
data: this.dataValues,
|
data: this.dataValues,
|
||||||
borderColor: "#4E5EF2",
|
borderColor: '#4E5EF2',
|
||||||
pointStyle: "circle",
|
pointStyle: "circle",
|
||||||
pointRadius: 0,
|
pointRadius: 0,
|
||||||
pointHoverRadius: 2,
|
pointHoverRadius: 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user