Skip to content

Commit

Permalink
fix(site): fix the bug of mouseenter trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Apr 19, 2021
1 parent 7b13d6e commit d2e4b6d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/varlet-cli/site/pc/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
<var-icon name="chevron-down" color="#666" />

<transition name="fade">
<div class="language-list var-elevation--5" v-if="isOpenMenu">
<div
class="language-list var-elevation--5"
v-show="isOpenMenu"
:style="{ pointerEvents: isOpenMenu ? 'auto' : 'none' }"
>
<var-cell
v-for="(value, key) in languageList"
:key="key"
Expand Down Expand Up @@ -98,7 +102,7 @@ export default defineComponent({
[Cell.name]: Cell,
[Icon.name]: Icon,
[Menu.name]: Menu,
[Loading.name]: Loading,
[Loading.name]: Loading
},
setup() {
const menu: Ref<Menu[]> = ref([])
Expand Down Expand Up @@ -153,7 +157,7 @@ export default defineComponent({
if (index !== -1) {
childrenElement[index].scrollIntoView({
block: 'center',
inline: 'start',
inline: 'start'
})
}
})
Expand Down Expand Up @@ -224,9 +228,9 @@ export default defineComponent({
nav,
code,
changeRoute,
changeLanguage,
changeLanguage
}
},
}
})
</script>

Expand Down

0 comments on commit d2e4b6d

Please sign in to comment.