Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 9, 2023
1 parent 4611198 commit abca87a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/RecognizerEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { computed } from 'vue'
import { wrapProp } from '@/misc'
import type { Rect, Task, TextRepl } from '@/types'
import TemplateEdit from './TemplateEdit.vue'
import ArrayEdit from '@/components/array/ArrayEdit.vue'
import ArrayStringEdit from '@/components/array/ArrayStringEdit.vue'
import ClearButton from '@/components/atomic/ClearButton.vue'
import JsonEdit from '@/components/atomic/JsonEdit.vue'
import RectEdit from '@/components/atomic/RectEdit.vue'
import TemplateEdit from '@/components/task/TemplateEdit.vue'
import FormLayout from '@/layout/FormLayout.vue'
const props = defineProps<{
Expand Down
10 changes: 9 additions & 1 deletion src/components/task/FreezeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ const wfMethod = wrapProp(value as Ref<WaitFreezes>, 'method')
</div>
<FormLayout>
<template v-if="notObject">
<NInputNumber v-model:value="value as number | null" placeholder="0">
<NInputNumber
:value="value as number | null"
@update:value="
v => {
value = v
}
"
placeholder="0"
>
<template #suffix> ms </template>
</NInputNumber>
</template>
Expand Down
17 changes: 15 additions & 2 deletions src/components/task/TargetEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,22 @@ const marks = {
</div>
<SingleNavigateEdit
v-if="state === 2"
v-model:value="target as string"
value="(target as string)"
@update:value="
v => {
target = v
}
"
></SingleNavigateEdit>
<RectEdit v-if="state === 3" v-model:value="target as Rect"></RectEdit>
<RectEdit
v-if="state === 3"
:value="target as Rect"
@update:value="
v => {
target = v
}
"
></RectEdit>
</div>
<ClearButton :propkey="`${propkey}_offset`" v-model:value="offset">
{{ name }}偏移
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ const fixThre = (v: number) => {
v-if="isThresholdSingle"
:nullable="true"
:def="threDef"
v-model:value="threshold as number"
:value="threshold as number"
@update:value="
v => {
threshold = v
}
"
:alter="fixThre"
></FloatInput>
</div>
Expand Down

0 comments on commit abca87a

Please sign in to comment.