Skip to content

Commit

Permalink
Merge pull request #310 from qianjue520/u-tooltip
Browse files Browse the repository at this point in the history
fix(u-tooltip):修复u-tooltip报错问题
  • Loading branch information
orangepro11 authored Jan 24, 2022
2 parents 9168f8b + 286a8e2 commit 829208a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pages/example/components.nvue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// #ifdef APP-NVUE
// 目前安卓nvue下,由于overflow只能为hidden,所以布局上的原因,暂不支持steps和tooltip等组件
if(uni.$u.os() === 'android') {
const noSupportForAndroid = ['steps', 'tooltip']
const noSupportForAndroid = ['steps']
for(let i = 0; i < noSupportForAndroid.length; i ++) {
if(path.indexOf(noSupportForAndroid[i]) > -1) {
return uni.$u.toast('安卓nvue下暂不支持此组件')
Expand Down
6 changes: 2 additions & 4 deletions uni_modules/uview-ui/components/u-tooltip/u-tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@
v-if="showCopy && buttons.length > 0"
length="18"
></u-line>
<template v-for="(item , index) in buttons">
<block v-for="(item , index) in buttons" :key="index">
<view
class="u-tooltip__wrapper__popup__list__btn"
hover-class="u-tooltip__wrapper__popup__list__btn--hover"
:key="index"
>
<text
class="u-tooltip__wrapper__popup__list__btn__text"
Expand All @@ -80,9 +79,8 @@
color="#8d8e90"
v-if="index < buttons.length - 1"
length="18"
:key="index"
></u-line>
</template>
</block>
</view>
</view>
</u-transition>
Expand Down

0 comments on commit 829208a

Please sign in to comment.