|
@@ -154,6 +156,15 @@
Issue Listinfo
Issues List
+
+
+ |
+ |
+ |
+ |
+ |
+
+
|
@@ -502,8 +513,9 @@ export default {
color: '#334155',
align: 'inner',
callback: function(value, index, values) {
- if (value === 0) return `${value * 100}%`;
- else if (value === 1) return `${value * 100}%`;
+ if (value === 0 || value === 1) {
+ return `${value * 100}%`;
+ }
},
},
grid: {
@@ -587,8 +599,9 @@ export default {
color: '#334155',
align: 'inner',
callback: function(value, index, values) {
- if (index === 0) return shortScaleNumber(value);
- else if (index === values.length - 1) return shortScaleNumber(value);
+ if (index === 0 || index === values.length - 1) {
+ return shortScaleNumber(value);
+ }
},
},
grid: {
@@ -617,7 +630,7 @@ export default {
let max = yMax * 1.1;
let xVal = timeRange(xMin, xMax, 100);
let yVal = yTimeRange(data, 100, yMin, yMax);
- data = xVal.map((x, index) => ({ x, y: yVal[index] }));
+ xVal.map((x, index) => ({ x, y: yVal[index] }));
let formattedXVal = xVal.map(value => formatTime(value));
formattedXVal = formatMaxTwo(formattedXVal);
let selectTimeMinIndex = getXIndex(xVal, this.selectDurationTime.min);
diff --git a/src/components/Discover/Conformance/ConformanceSidebar/ActSeqDrag.vue b/src/components/Discover/Conformance/ConformanceSidebar/ActSeqDrag.vue
index e02c3cf..007ff95 100644
--- a/src/components/Discover/Conformance/ConformanceSidebar/ActSeqDrag.vue
+++ b/src/components/Discover/Conformance/ConformanceSidebar/ActSeqDrag.vue
@@ -113,7 +113,9 @@ export default {
// 拖曳結束要顯示箭頭,但最後一個不用
const lastChild = evt.item.lastChild;
const listIndex = this.listSequence.length - 1
- evt.oldIndex !== listIndex ? lastChild.style.display = '' : null;
+ if (evt.oldIndex !== listIndex) {
+ lastChild.style.display = '';
+ }
// reset: 拖曳最後一個元素時,倒數第二的元素的箭頭要隱藏
this.lastItemIndex = null;
},
| |