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

嵌套使用AtAccordion组件,第二级展开高度错误 #1656

Closed
rock-eb opened this issue Aug 23, 2023 · 1 comment
Closed

嵌套使用AtAccordion组件,第二级展开高度错误 #1656

rock-eb opened this issue Aug 23, 2023 · 1 comment
Assignees
Labels
bug Something isn't working fixed but not released 已修复但未发布

Comments

@rock-eb
Copy link

rock-eb commented Aug 23, 2023

问题描述
嵌套使用AtAccordion组件,第二级展开高度错误,应该使用了第一个手风琴的展开高度

复现步骤

import React from 'react';
import { View } from '@tarojs/components';
import { AtAccordion } from 'taro-ui';

const Demo = () => {
  const [fOpen, setFOpen] = React.useState(false);
  const [sOpen, setSOpen] = React.useState(false);
  return (
    <View style={{ minHeight: '100%', background: 'aliceblue' }}>
      <AtAccordion title="第一级" open={fOpen} onClick={() => setFOpen(!fOpen)}>
        <AtAccordion
          title="第二级"
          open={sOpen}
          onClick={() => setSOpen(!sOpen)}
        >
          <View style={{ width: '100%', height: '300px', background: 'red' }}>
            测试文字1
          </View>
        </AtAccordion>
      </AtAccordion>
    </View>
  );
};

export default Demo;

期望行为
展开高度正常

报错信息

系统信息

  • Taro 版本 [v.3.6.13]
  • Taro UI 版本 [ v.3.1.1]
  • 报错平台 [ weapp]

补充信息
#1364

@taro-ui-bot
Copy link

taro-ui-bot bot commented Aug 23, 2023

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@robinv8 robinv8 self-assigned this Aug 23, 2023
@robinv8 robinv8 added the bug Something isn't working label Aug 29, 2023
@robinv8 robinv8 added the fixed but not released 已修复但未发布 label Nov 9, 2023
robinv8 added a commit that referenced this issue Nov 17, 2023
New Features

- 添加 Timeline 获取节点信息事件 (#1650)
- List 组件支持自定义 icon 属性 (#1626)
- Card 组件 extra 属性支持 ReactNode (#1684)

Bug Fixes

- 修复 AtAccordion 组件展开高度错误的问题 (#1656)
- 修复 enableNative 属性不存在的问题 (#1654)

Improvements

- yarn 升级到 pnpm
- 完善 CI 流程
- 更新 Taro-UI 文档地址
robinv8 added a commit that referenced this issue Nov 19, 2023
New Features

- 添加 Timeline 获取节点信息事件 (#1650)
- List 组件支持自定义 icon 属性 (#1626)
- Card 组件 extra 属性支持 ReactNode (#1684)

Bug Fixes

- 修复 AtAccordion 组件展开高度错误的问题 (#1656)
- 修复 enableNative 属性不存在的问题 (#1654)
- 修复日历组件无法正常加载的问题

Improvements

- yarn 升级到 pnpm
- 完善 CI 流程
- 更新 Taro-UI 文档地址
@robinv8 robinv8 closed this as completed Nov 19, 2023
This was referenced Nov 19, 2023
robinv8 added a commit that referenced this issue Nov 20, 2023
New Features

- 添加 Timeline 获取节点信息事件 (#1650)
- List 组件支持自定义 icon 属性 (#1626)
- Card 组件 extra 属性支持 ReactNode (#1684)

Bug Fixes

- 修复 AtAccordion 组件展开高度错误的问题 (#1656)
- 修复 enableNative 属性不存在的问题 (#1654)
- 修复日历组件无法正常加载的问题

Improvements

- yarn 升级到 pnpm
- 完善 CI 流程
- 更新 Taro-UI 文档地址
robinv8 added a commit that referenced this issue Nov 20, 2023
New Features

- 添加 Timeline 获取节点信息事件 (#1650)
- List 组件支持自定义 icon 属性 (#1626)
- Card 组件 extra 属性支持 ReactNode (#1684)

Bug Fixes

- 修复 AtAccordion 组件展开高度错误的问题 (#1656)
- 修复 enableNative 属性不存在的问题 (#1654)
- 修复日历组件无法正常加载的问题

Improvements

- yarn 升级到 pnpm
- 完善 CI 流程
- 更新 Taro-UI 文档地址
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed but not released 已修复但未发布
Projects
None yet
Development

No branches or pull requests

2 participants