feat: use defineComponent wrapper
This commit is contained in:

committed by
kolaente

parent
a3329f1b42
commit
ba9f69344a
@ -161,6 +161,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
|
||||
import AsyncEditor from '@/components/input/AsyncEditor'
|
||||
import {mapState} from 'vuex'
|
||||
import { i18n } from '@/i18n'
|
||||
@ -175,7 +177,7 @@ import Rights from '../../models/constants/rights.json'
|
||||
|
||||
import Multiselect from '@/components/input/multiselect.vue'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'EditTeam',
|
||||
data() {
|
||||
return {
|
||||
@ -297,7 +299,7 @@ export default {
|
||||
this.foundUsers = []
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -26,9 +26,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
import TeamService from '../../services/team'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'ListTeams',
|
||||
data() {
|
||||
return {
|
||||
@ -47,7 +48,7 @@ export default {
|
||||
this.teams = await this.teamService.getAll()
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -29,11 +29,12 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
import TeamModel from '../../models/team'
|
||||
import TeamService from '../../services/team'
|
||||
import CreateEdit from '@/components/misc/create-edit.vue'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'NewTeam',
|
||||
data() {
|
||||
return {
|
||||
@ -64,5 +65,5 @@ export default {
|
||||
this.$message.success({message: this.$t('team.create.success') })
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user