style: 优化warnings

This commit is contained in:
a20070322 2024-03-04 17:54:19 +08:00
parent f2ace023cf
commit 3e8519361f
10 changed files with 36 additions and 21 deletions

View File

@ -447,16 +447,20 @@ export default {
inject: ['globalLoading'],
props: {
nodeId: {
type: String
type: String,
default: ''
},
projectId: {
type: String
type: String,
default: ''
},
runMode: {
type: String
type: String,
default: ''
},
absPath: {
type: String
type: String,
default: ''
}
},
emits: ['goReadFile', 'goConsole'],

View File

@ -68,10 +68,12 @@ import { renderSize, parseTime } from '@/utils/const'
export default {
props: {
nodeId: {
type: String
type: String,
default: ''
},
projectId: {
type: String
type: String,
default: ''
}
},
data() {

View File

@ -35,7 +35,8 @@ export default {
inject: ['globalLoading'],
props: {
machineId: {
type: String
type: String,
default: ''
}
},
data() {

View File

@ -42,7 +42,8 @@ export default {
},
props: {
machineId: {
type: String
type: String,
default: ''
}
},
data() {

View File

@ -26,6 +26,7 @@ export default {
default: ''
}
},
emits: ['confirm'],
computed: { ...mapState(useAppStore, ['getWorkspaceId']) },
methods: {
confirm(data) {
@ -34,7 +35,6 @@ export default {
handerConfirm() {
this.$refs.repository.handerConfirm()
}
},
emits: ['confirm']
}
}
</script>

View File

@ -80,9 +80,10 @@ export default {
},
props: {
id: {
type: String
type: String,
default: ''
},
defArgs: { type: String }
defArgs: { type: String, default: '' }
},
data() {
return {

View File

@ -435,6 +435,7 @@ export default {
default: ''
}
},
emits: ['cancel', 'confirm'],
data() {
return {
// choose: this.choose,
@ -865,7 +866,6 @@ export default {
this.$emit('confirm', `${selectData.id}`)
}
}
},
emits: ['cancel', 'confirm']
}
}
</script>

View File

@ -22,7 +22,8 @@ export default {
},
props: {
temp: {
type: Object
type: Object,
default: () => ({})
},
visible: {
type: Boolean,

View File

@ -24,7 +24,8 @@ export default {
},
props: {
temp: {
type: Object
type: Object,
default: () => ({})
},
height: {
type: String,

View File

@ -67,25 +67,29 @@ export default {
},
props: {
machineId: {
type: String
type: String,
default: ''
},
name: {
type: String
type: String,
default: ''
},
tab: {
type: String,
default: ''
}
},
computed: {
...mapState(useAppStore, ['getCollapsed'])
},
emits: ['close'],
data() {
return {
current: this.tab || 'info'
}
},
computed: {
...mapState(useAppStore, ['getCollapsed'])
},
mounted() {}
}
</script>