feat: 回车检测&restore添加标签
This commit is contained in:
@@ -19,8 +19,9 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
//const emit = defineEmits([
|
||||
//])
|
||||
const emit = defineEmits([
|
||||
'restore'
|
||||
])
|
||||
|
||||
const versionsList = ref([])
|
||||
|
||||
@@ -70,7 +71,8 @@ const openTree = (state)=>{
|
||||
treeState.value = state
|
||||
}
|
||||
|
||||
const versionRestore = ()=>{
|
||||
const versionRestore = () => {
|
||||
|
||||
let id = ''
|
||||
if(selectItem.value?.children?.length > 0){
|
||||
function findMaxForYourFormat(items) {
|
||||
@@ -99,6 +101,7 @@ const versionRestore = ()=>{
|
||||
findAndAddChild(versionsList.value, selectItem.value?.versionId, addObj)
|
||||
selectItem.value = {...addObj}
|
||||
treeKey.value++
|
||||
emit('restore')
|
||||
}
|
||||
const versionDelete = (versionDetail)=>{
|
||||
if(!selectItem.value?.versionId)return
|
||||
|
||||
Reference in New Issue
Block a user