chore: improve types and imports

This commit is contained in:
Benjamin Canac
2022-07-21 23:33:06 +02:00
parent 7b3263a621
commit 6b813bd3b3
26 changed files with 93 additions and 62 deletions

View File

@@ -30,7 +30,7 @@
<script setup lang="ts">
import type { Ref } from 'vue'
import { ref, computed, onMounted } from 'vue'
import Icon from '../elements/Icon'
import Icon from '../elements/Icon.vue'
import { classNames } from '../../utils'
import $ui from '#build/ui'
@@ -72,7 +72,7 @@ const props = defineProps({
default: null
},
spellcheck: {
type: String,
type: Boolean,
default: null
},
icon: {

View File

@@ -45,7 +45,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { get } from 'lodash-es'
import Icon from '../elements/Icon'
import Icon from '../elements/Icon.vue'
import { classNames } from '../../utils'
import $ui from '#build/ui'

View File

@@ -83,6 +83,7 @@
<script setup lang="ts">
import { ref, computed } from 'vue'
import type { PropType } from 'vue'
import {
Combobox,
ComboboxButton,
@@ -90,7 +91,7 @@ import {
ComboboxOption,
ComboboxInput
} from '@headlessui/vue'
import Icon from '../elements/Icon'
import Icon from '../elements/Icon.vue'
import { classNames, usePopper } from '../../utils'
import $ui from '#build/ui'
@@ -100,7 +101,7 @@ const props = defineProps({
default: ''
},
options: {
type: Array,
type: Array as PropType<{ disabled?: boolean }[]>,
default: () => []
},
placement: {

View File

@@ -17,7 +17,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { Switch } from '@headlessui/vue'
import Icon from '../elements/Icon'
import Icon from '../elements/Icon.vue'
import $ui from '#build/ui'
const props = defineProps({