Skip to content

Commit

Permalink
perf(components): components name is converted to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbowe committed Mar 6, 2024
1 parent 9ea8789 commit 04aa10b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/layouts/modules/global-search/components/search-modal.vue
Expand Up @@ -82,7 +82,7 @@ onKeyStroke('ArrowDown', handleDown);
</script>

<template>
<n-modal
<NModal
v-model:show="modelShow"
:segmented="{ footer: 'soft' }"
:closable="false"
Expand All @@ -93,23 +93,23 @@ onKeyStroke('ArrowDown', handleDown);
:class="[isMobile ? 'size-full top-0px rounded-0' : 'w-630px top-50px']"
@after-leave="handleClose"
>
<n-input-group>
<n-input v-model:value="keyword" clearable placeholder="请输入关键词搜索" @input="handleSearch">
<NInputGroup>
<NInput v-model:value="keyword" clearable placeholder="请输入关键词搜索" @input="handleSearch">
<template #prefix>
<icon-uil-search class="text-15px text-#c2c2c2" />
</template>
</n-input>
<n-button v-if="isMobile" type="primary" ghost @click="handleClose">取消</n-button>
</n-input-group>
</NInput>
<NButton v-if="isMobile" type="primary" ghost @click="handleClose">取消</NButton>
</NInputGroup>

<div class="mt-20px">
<n-empty v-if="resultOptions.length === 0" description="暂无搜索结果" />
<NEmpty v-if="resultOptions.length === 0" description="暂无搜索结果" />
<SearchResult v-else v-model:path="activePath" :options="resultOptions" @enter="handleEnter" />
</div>
<template #footer>
<SearchFooter v-if="!isMobile" />
</template>
</n-modal>
</NModal>
</template>

<style lang="scss" scoped></style>
Expand Up @@ -31,7 +31,7 @@ function handleTo() {
</script>

<template>
<n-scrollbar>
<NScrollbar>
<div class="pb-12px">
<template v-for="item in options" :key="item.routePath">
<div
Expand All @@ -51,7 +51,7 @@ function handleTo() {
</div>
</template>
</div>
</n-scrollbar>
</NScrollbar>
</template>

<style lang="scss" scoped></style>

0 comments on commit 04aa10b

Please sign in to comment.