arco-design-vue
arco-design-vue copied to clipboard
style(dropdown): the label is not aligned
Types of changes
- [ ] New feature
- [ ] Bug fix
- [ ] Enhancement
- [x] Component style change
- [ ] Typescript definition change
- [ ] Documentation change
- [ ] Coding style change
- [ ] Refactoring
- [ ] Test cases
- [ ] Continuous integration
- [ ] Breaking change
- [ ] Others
Background and context
当 Dropdown 组件的 Dsubmenu 内容长度不一致时标签没有对齐 #3057
Solution
将 Dsubmenu 元素中的标签元素宽度设置为 100%
How is the change tested?
Changelog
| Component | Changelog(CN) | Changelog(EN) | Related issues |
|---|---|---|---|
| dropdown | 修复标签未对齐 | fix the label is not aligned | #3057 |
Checklist:
- [x] Test suite passes (
npm run test) - [x] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
- [x] Changes are submitted to the appropriate branch (e.g. features should be submitted to
featurebranch and others should be submitted tomainbranch)
Other information
@ikxin
使用选择器 如果没有设置图标时 suffix 将变成第二个 span 元素导致与预期不符:
希望有空改一下这个 PR,使用 flex 1,此外参考其他已合并 PR 完善补充一下 Changelog😀
@LIjiAngChen8 感谢建议,已更新 pr
该 pr 已经很久没有合并了,目前进展如何