Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayideyia committed Oct 19, 2024
1 parent a586728 commit bd7291f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/InputList/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, useTemplateRef } from 'vue'
import Input from '@/components/Input/index.vue'
import { DraggableOptions } from '@/constant'
Expand All @@ -13,7 +14,7 @@ withDefaults(defineProps<Props>(), { autofocus: true })
const list = defineModel<string[]>({ default: [] })
const value = ref('')
const inputRef = useTemplateRef('inputRef')
const inputRef = useTemplateRef<typeof Input>('inputRef')
const handleAdd = () => {
if (!value.value) return
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/views/CommandView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import { useMessage } from '@/hooks'
import { getCommands } from '@/utils/command'
import { useAppSettingsStore, usePluginsStore } from '@/stores'
import { debounce } from '@/utils'
import Input from '@/components/Input/index.vue'
const loading = ref(false)
const showCommandPanel = ref(false)
const userInput = ref('')
const selected = ref(0)
const inputRef = useTemplateRef<HTMLInputElement>('inputRef')
const inputRef = useTemplateRef<typeof Input>('inputRef')
const commands = ref(getCommands())
let commandsRefMap: Record<string, HTMLElement> = {}
Expand Down

0 comments on commit bd7291f

Please sign in to comment.