complex-data
Advanced tools
+3
-0
@@ -24,2 +24,5 @@ | ||
| ### 4.9.4 | ||
| - fix:修正TrackData.pushData未重新计算maxIndex的BUG | ||
| ### 4.9.3 | ||
@@ -26,0 +29,0 @@ - feat:TrackData添加pushData方法 |
+1
-1
| { | ||
| "name": "complex-data", | ||
| "version": "4.9.3", | ||
| "version": "4.9.4", | ||
| "description": "a complex data", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -204,2 +204,3 @@ import { getNum } from "complex-utils" | ||
| const lastSize = this.data.dict[this.data.dict.length - 1] | ||
| this.data.maxIndex++ | ||
| if (target === 'last') { | ||
@@ -418,2 +419,8 @@ this.data.dict[this.data.dict.length - 1] = lastSize + 1 | ||
| } | ||
| getCurrentIndex() { | ||
| return this.$index.current.data | ||
| } | ||
| getCurrentValue() { | ||
| return this.data.list[this.getCurrentIndex()] | ||
| } | ||
| setIndex(index?: number) { | ||
@@ -420,0 +427,0 @@ this.$setIndex(index) |
269079
0.09%6859
0.1%