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

Commit

Permalink
fix: small optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 7, 2023
1 parent c55fc8d commit e02c750
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/task/SingleNavigateEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
TranslateOutlined,
WavingHandOutlined
} from '@vicons/material'
import { NAutoComplete, NButton, NIcon, NPopover } from 'naive-ui'
import { NAutoComplete, NButton, NIcon, NInput, NPopover } from 'naive-ui'
import { computed } from 'vue'
import { navigate } from '@/data'
Expand Down Expand Up @@ -65,8 +65,9 @@ const options = computed(() => {
</NIcon>
</template>
</NButton>
<NInput v-if="readonly" readonly :value="value"></NInput>
<NAutoComplete
:readonly="readonly"
v-else
:value="value"
@update:value="
v => {
Expand Down

0 comments on commit e02c750

Please sign in to comment.