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

Animate导致Button block属性失效 #2715

Open
MoonBite666 opened this issue Nov 8, 2024 · 0 comments
Open

Animate导致Button block属性失效 #2715

MoonBite666 opened this issue Nov 8, 2024 · 0 comments

Comments

@MoonBite666
Copy link

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.7.0

平台

h5

重现链接

https://codesandbox.io/p/devbox/cool-lena-8gtxmg?workspaceId=c8bc3786-2eac-4df1-a0db-e4f77d228eb1

重现步骤

正常使用Button组件中的block属性时,元素可以作为块级元素占据所有宽度。

<Button type="primary" block size="large">
      NutUI React 2.0
</Button>

image

如果外层嵌套Animate组件,Button就无法占据所有宽度

<Animate type="flicker" loop>
  <Button type="primary" block size="large">
     NutUI React 2.0
  </Button>
</Animate>

image

期望的结果是什么?

Animate包裹下,Button的block属性生效

实际的结果是什么?

Animate包裹下,Button的block属性未生效

环境信息

Taro CLI 4.0.7 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 22.7.0 - ~\scoop\apps\nodejs\current\node.EXE
Yarn: 1.22.22 - ~\scoop\apps\yarn\current\bin\yarn.CMD
npm: 10.8.2 - ~\scoop\apps\nodejs\current\npm.CMD
npmPackages:
@tarojs/cli: 4.0.7 => 4.0.7
@tarojs/components: 4.0.7 => 4.0.7
@tarojs/helper: 4.0.7 => 4.0.7
@tarojs/plugin-framework-react: 4.0.7 => 4.0.7
@tarojs/plugin-html: ^4.0.7 => 4.0.7
@tarojs/plugin-platform-alipay: 4.0.7 => 4.0.7
@tarojs/plugin-platform-h5: 4.0.7 => 4.0.7
@tarojs/plugin-platform-harmony-hybrid: 4.0.7 => 4.0.7
@tarojs/plugin-platform-jd: 4.0.7 => 4.0.7
@tarojs/plugin-platform-qq: 4.0.7 => 4.0.7
@tarojs/plugin-platform-swan: 4.0.7 => 4.0.7
@tarojs/plugin-platform-tt: 4.0.7 => 4.0.7
@tarojs/plugin-platform-weapp: 4.0.7 => 4.0.7
@tarojs/react: 4.0.7 => 4.0.7
@tarojs/runtime: 4.0.7 => 4.0.7
@tarojs/shared: 4.0.7 => 4.0.7
@tarojs/taro: 4.0.7 => 4.0.7
@tarojs/taro-loader: 4.0.7 => 4.0.7
@tarojs/webpack5-runner: 4.0.7 => 4.0.7
babel-preset-taro: 4.0.7 => 4.0.7
eslint-config-taro: 4.0.7 => 4.0.7
react: ^18.0.0 => 18.3.1

其他补充信息

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