feat: use defineComponent wrapper
This commit is contained in:
parent
a3329f1b42
commit
ba9f69344a
75 changed files with 309 additions and 236 deletions
|
|
@ -35,6 +35,8 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent} from 'vue'
|
||||
|
||||
import {createRandomID} from '@/helpers/randomId'
|
||||
|
||||
const DEFAULT_COLORS = [
|
||||
|
|
@ -46,7 +48,7 @@ const DEFAULT_COLORS = [
|
|||
'#00db60',
|
||||
]
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
name: 'colorPicker',
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -105,7 +107,7 @@ export default {
|
|||
this.update(true)
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
Reference in a new issue