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

Commit

Permalink
feat: update inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 8, 2023
1 parent 0331436 commit ce5bd81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/MiscEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ defineProps<{
@update:value="v => updateEditOn(edit, 'is_sub', v)"
></NSwitch>
</div>
<ClearButton
propkey="inverse"
:value="value.inverse ?? null"
:edit="applyEditOn(edit, 'inverse')"
>
识别反转
</ClearButton>
<div>
<NSwitch
:value="value.inverse ?? false"
@update:value="v => updateEditOn(edit, 'inverse', v)"
></NSwitch>
</div>
<ClearButton
propkey="timeout"
:value="value.timeout ?? null"
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export type Task = Recognition &
Action & {
next?: string | string[]
is_sub?: boolean
inverse?: boolean
timeout?: number
timeout_next?: string | string[]
times_limit?: number
Expand Down

0 comments on commit ce5bd81

Please sign in to comment.