Skip to content

Commit

Permalink
feat: BaseSearchMenu transition effect
Browse files Browse the repository at this point in the history
  • Loading branch information
flingyp committed Sep 13, 2023
1 parent f0d8d6e commit 7d0f734
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@vueuse/core": "^9.13.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"animate.css": "^4.1.1",
"axios": "^1.5.0",
"colord": "^2.9.3",
"dayjs": "^1.11.9",
Expand Down Expand Up @@ -94,7 +95,7 @@
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
},
"lint-staged": {
"*": "pnpm run lint:fix"
"src/*": "pnpm run lint:fix"
},
"config": {
"commitizen": {
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/layout/components/layout/BaseSearchMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,17 @@ const inputKeyword = useDebounce(() => {
</template>
</NInput>

<Transition name="fade-scale">
<Transition
:duration="{ enter: 500, leave: 300 } "
enter-active-class="animate__animated animate__lightSpeedInRight"
leave-active-class="animate__animated animate__lightSpeedOutRight"
>
<div
v-show="isShowSearchMenu && searchMenuList.length"
class="
absolute w-64 z-50 p-2 top-[6%] rounded space-y-1
border border-vBorderLight dark:border-vBorderDark bg-vPageBgColor dark:bg-vPageBgDarkColor
"
"
>
<template
v-for="item in searchMenuList"
Expand Down
1 change: 1 addition & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
@import 'driver.js/dist/driver.min.css';
@import 'vue3-photo-preview/dist/index.css';
@import 'driver.js/dist/driver.min.css';
@import 'animate.css';

0 comments on commit 7d0f734

Please sign in to comment.