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

Commit

Permalink
feat: alter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 3, 2023
1 parent bbb245c commit ecb01e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/components/NavigateEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const val = defineModel<string | string[] | null>('value', {
<SingleArrayEdit
v-model:value="val"
:nullable="true"
:no-single="true"
:def="() => 'FakeTask'"
:def="() => ''"
:is-t="(v: string | string[]) => (typeof v === 'string')"
>
<template #edit="{ value, update }">
Expand Down
4 changes: 2 additions & 2 deletions src/components/RecognizerEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const taskCustomRecoParam = wrapProp(task, 'custom_recognizer_param')
<SingleArrayEdit
v-model:value="taskReplace"
:nullable="true"
:def="() => (['aaa', 'bbb'] as TextRepl)"
:def="() => (['', ''] as TextRepl)"
:is-t="(v: TextRepl | TextRepl[]) => (v.length === 2 && typeof v[0] === 'string')"
>
<template #edit="{ value, update }">
Expand Down Expand Up @@ -121,7 +121,7 @@ const taskCustomRecoParam = wrapProp(task, 'custom_recognizer_param')
<template v-if="taskRecoValue === 'Custom'">
<ClearButton v-model="taskCustomReco" invalid> 识别器 </ClearButton>
<NInput
:value="taskCustomReco ?? 'demo_reco'"
:value="taskCustomReco ?? ''"
@update:value="v => (taskCustomReco = v)"
></NInput>
<ClearButton v-model="taskCustomRecoParam"> 识别参数 </ClearButton>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SingleNavigateEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const options = computed(() => {
autocomplete: 'disabled'
}"
:options="options"
placeholder="邮箱"
placeholder="task"
></NAutoComplete>
</div>
</template>
8 changes: 6 additions & 2 deletions src/components/TemplateEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ClearButton from './ClearButton.vue'
import SingleArrayButton from './SingleArrayButton.vue'
import FloatInput from './FloatInput.vue'
const templDef = 'template/temp.png'
const templDef = ''
const threDef = 0.7
const taskTemplate = defineModel<string | string[] | null>('template', {
Expand Down Expand Up @@ -80,7 +80,11 @@ const fixThre = (v: number) => {
>
<template #edit="{ value, update, index }">
<div class="flex gap-2">
<NInput :value="value" @update:value="update"></NInput>
<NInput
:value="value"
@update:value="update"
placeholder="template"
></NInput>
<FloatInput
v-if="!isThresholdSingle"
:nullable="false"
Expand Down

0 comments on commit ecb01e7

Please sign in to comment.