perf(components): components name is converted to uppercase

This commit is contained in:
燕博文 2024-03-06 11:05:54 +08:00
parent 9ea878915e
commit 04aa10b477
2 changed files with 10 additions and 10 deletions

View File

@ -82,7 +82,7 @@ onKeyStroke('ArrowDown', handleDown);
</script> </script>
<template> <template>
<n-modal <NModal
v-model:show="modelShow" v-model:show="modelShow"
:segmented="{ footer: 'soft' }" :segmented="{ footer: 'soft' }"
:closable="false" :closable="false"
@ -93,23 +93,23 @@ onKeyStroke('ArrowDown', handleDown);
:class="[isMobile ? 'size-full top-0px rounded-0' : 'w-630px top-50px']" :class="[isMobile ? 'size-full top-0px rounded-0' : 'w-630px top-50px']"
@after-leave="handleClose" @after-leave="handleClose"
> >
<n-input-group> <NInputGroup>
<n-input v-model:value="keyword" clearable placeholder="请输入关键词搜索" @input="handleSearch"> <NInput v-model:value="keyword" clearable placeholder="请输入关键词搜索" @input="handleSearch">
<template #prefix> <template #prefix>
<icon-uil-search class="text-15px text-#c2c2c2" /> <icon-uil-search class="text-15px text-#c2c2c2" />
</template> </template>
</n-input> </NInput>
<n-button v-if="isMobile" type="primary" ghost @click="handleClose">取消</n-button> <NButton v-if="isMobile" type="primary" ghost @click="handleClose">取消</NButton>
</n-input-group> </NInputGroup>
<div class="mt-20px"> <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" /> <SearchResult v-else v-model:path="activePath" :options="resultOptions" @enter="handleEnter" />
</div> </div>
<template #footer> <template #footer>
<SearchFooter v-if="!isMobile" /> <SearchFooter v-if="!isMobile" />
</template> </template>
</n-modal> </NModal>
</template> </template>
<style lang="scss" scoped></style> <style lang="scss" scoped></style>

View File

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