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

【Collapse】组件样式不一致 #2462

Closed
Leo-Jackr opened this issue Jul 19, 2024 · 2 comments
Closed

【Collapse】组件样式不一致 #2462

Leo-Jackr opened this issue Jul 19, 2024 · 2 comments
Labels
to be closed 未提供最小化可复现 demo 且长期无进展的 issue

Comments

@Leo-Jackr
Copy link

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.6.13

平台

h5

重现链接

https://nutui.jd.com/taro/react/2x/#/zh-CN/component/collapse

重现步骤

<Collapse defaultActiveName={['1', '2']} expandIcon={<ArrowDown />}>
  <Collapse.Item title="标题1" name="1">
    京东“厂直优品计划”首推“政府优品馆” 3年覆盖80%镇级政府
  </Collapse.Item>
  <Collapse.Item title="标题2" name="2">
    京东“厂直优品
  </Collapse.Item>
  <Collapse.Item title="标题3" name="3" disabled>
    京东“厂直优品计划”首推“政府优品馆”
  </Collapse.Item>
</Collapse>


<Collapse defaultActiveName={['1', '2']} expandIcon={<ArrowDown />}>
  <Collapse.Item title="标题1" name="1">
    京东“厂直优品计划”首推
  </Collapse.Item>
  <Collapse.Item title="标题2" name="2">
    京东“厂直优品计划”首推“政府
  </Collapse.Item>
  <Collapse.Item title="标题3" name="3" disabled>
    京东“厂直优品计划”首推“政府优品馆”
  </Collapse.Item>
</Collapse>

期望的结果是什么?

样式一致

实际的结果是什么?

根据内容是否换行,两者的样式不一致

环境信息

No response

其他补充信息

No response

@Alex-huxiyang
Copy link
Collaborator

没太理解你提到的“样式不一致”的含义,你的意思是不应该自动换行吗?

@xiaoyatong
Copy link
Collaborator

目前表现是如下,是支持换行的,没有特别的处理。
如果有需要的话,可以修改 nut-collapse-item-content-text 的样式。
image

@Alex-huxiyang Alex-huxiyang added the to be closed 未提供最小化可复现 demo 且长期无进展的 issue label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be closed 未提供最小化可复现 demo 且长期无进展的 issue
Projects
None yet
Development

No branches or pull requests

3 participants