Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar日历组件和Tabbar组件冲突,日历组件无法覆盖Tabbar,导致确定按钮无法显示。 #1991

Open
HenryOoO opened this issue Mar 6, 2024 · 0 comments

Comments

@HenryOoO
Copy link

HenryOoO commented Mar 6, 2024

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.3.10

平台

weapp

重现链接

仅手机端可重现,无法提供在线实例

重现步骤

import RootLayout from '@components/RootLayout'
import SearchParams from '@components/SearchParams'
import { Calendar, Popup, Tabbar } from '@nutui/nutui-react-taro'
import { Button, ScrollView, View } from '@tarojs/components'
import { observer } from 'mobx-react'
import { useState } from 'react'

function Index() {
    const [visible, setVisible] = useState(false)
    return (
        <View>
            <ScrollView showScrollbar={false} enhanced scrollY style={{ height: 475 }}>
                <Button onClick={() => setVisible(true)}>Open </Button>
                <Calendar visible={visible} type='range' onClose={() => setVisible(false)} />
            </ScrollView>
            <Tabbar inactiveColor='#7d7e80' activeColor='#1989fa' safeArea fixed className=' global-tabbar '>
                <Tabbar.Item title='首页' />
                <Tabbar.Item title='发现' />
            </Tabbar>
        </View>
    )
}

export default observer(Index)

期望的结果是什么?

弹窗层级比tabbar高,且能正常显示日历的按钮

实际的结果是什么?

微信开发者工具正常显示,但在我的手机设备上(iphone15)任何弹窗(目前试了Calendar和Popup)均无法覆盖Tabbar
image
image

环境信息

👽 Taro v3.6.24

Taro CLI 3.6.24 environment info:
System:
OS: macOS 14.3.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
npmPackages:
@tarojs/cli: 3.6.23 => 3.6.23
@tarojs/components: 3.6.23 => 3.6.23
@tarojs/helper: 3.6.23 => 3.6.23
@tarojs/plugin-framework-react: 3.6.23 => 3.6.23
@tarojs/plugin-html: 3.6.23 => 3.6.23
@tarojs/plugin-platform-alipay: 3.6.23 => 3.6.23
@tarojs/plugin-platform-h5: 3.6.23 => 3.6.23
@tarojs/plugin-platform-jd: 3.6.23 => 3.6.23
@tarojs/plugin-platform-qq: 3.6.23 => 3.6.23
@tarojs/plugin-platform-swan: 3.6.23 => 3.6.23
@tarojs/plugin-platform-tt: 3.6.23 => 3.6.23
@tarojs/plugin-platform-weapp: 3.6.23 => 3.6.23
@tarojs/react: 3.6.23 => 3.6.23
@tarojs/runtime: 3.6.23 => 3.6.23
@tarojs/shared: 3.6.23 => 3.6.23
@tarojs/taro: 3.6.23 => 3.6.23
@tarojs/taro-loader: 3.6.23 => 3.6.23
@tarojs/webpack5-runner: 3.6.23 => 3.6.23
babel-preset-taro: 3.6.23 => 3.6.23
eslint-config-taro: 3.6.23 => 3.6.23
react: ^18.0.0 => 18.2.0

其他补充信息

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant