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'], inject: ['globalLoading'],
props: { props: {
nodeId: { nodeId: {
type: String type: String,
default: ''
}, },
projectId: { projectId: {
type: String type: String,
default: ''
}, },
runMode: { runMode: {
type: String type: String,
default: ''
}, },
absPath: { absPath: {
type: String type: String,
default: ''
} }
}, },
emits: ['goReadFile', 'goConsole'], emits: ['goReadFile', 'goConsole'],

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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