Skip to content

[Dialog] classname 的错误挂载 #2619

@NWYLZW

Description

@NWYLZW

tdesign-react 版本

重现链接

重现步骤

使用 Dialog 相关组件的同时为其添加 classname。

期望结果

只在一个 div 节点上添加。

实际结果

55063bae-6352-4c1d-8585-95a79966bead

框架版本

18.2.0

浏览器版本

系统版本

Node版本

补充说明

如果在俩个节点上添加后,想控制某一特定节点时就必须附加上别的选择器才能选择到对应的元素。

比如说我需要控制 .t-dialog 我就必须写这个选择器 .t-dialog.xxx-class,控制上面 ctx 必须写 .t-dialog__ctx.xxx-class
否则就无法选择到准确的目标的节点。

Metadata

Metadata

Assignees

Labels

to be publishedfixed, not be published🎨 designsomething about design or style

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions