feat: use defineComponent wrapper
This commit is contained in:

committed by
kolaente

parent
a3329f1b42
commit
ba9f69344a
@ -97,6 +97,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
import LabelModel from '../../models/label'
|
||||
@ -105,7 +106,7 @@ import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
|
||||
import AsyncEditor from '@/components/input/AsyncEditor'
|
||||
import ColorPicker from '@/components/input/colorPicker'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'ListLabels',
|
||||
components: {
|
||||
ColorPicker,
|
||||
@ -160,5 +161,5 @@ export default {
|
||||
this.$nextTick(() => this.editorActive = true)
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
@ -35,13 +35,14 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
import LabelModel from '../../models/label'
|
||||
import CreateEdit from '@/components/misc/create-edit.vue'
|
||||
import ColorPicker from '../../components/input/colorPicker'
|
||||
import {mapState} from 'vuex'
|
||||
import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'NewLabel',
|
||||
data() {
|
||||
return {
|
||||
@ -75,5 +76,5 @@ export default {
|
||||
this.$message.success({message: this.$t('label.create.success')})
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user