Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/FiDA_Front
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
@input="onInput"
|
@input="onInput"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
@paste.prevent
|
@paste.prevent
|
||||||
|
@keydown.stop
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -77,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
> .input {
|
> .input {
|
||||||
outline: none;
|
outline: none;
|
||||||
min-width: 1px;
|
min-width: 2px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export class EventManager {
|
|||||||
item.position.y = position.y
|
item.position.y = position.y
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.stateManager.recordState()
|
||||||
}
|
}
|
||||||
/** 处理点击 */
|
/** 处理点击 */
|
||||||
handleClick(event: any) {
|
handleClick(event: any) {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export class StateManager {
|
|||||||
/** 记录状态 */
|
/** 记录状态 */
|
||||||
recordState() {
|
recordState() {
|
||||||
if (this.historyIndex.value < this.historyList.value.length - 1) {
|
if (this.historyIndex.value < this.historyList.value.length - 1) {
|
||||||
this.historyList.value.splice(this.historyIndex.value)
|
this.historyList.value.splice(this.historyIndex.value + 1)
|
||||||
}
|
}
|
||||||
const state = {
|
const state = {
|
||||||
nodes: JSON.stringify(this.nodes.value)
|
nodes: JSON.stringify(this.nodes.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user