ant-design / antd-style

css-in-js library with antd v5 token system

Home Page:https://ant-design.github.io/antd-style/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

👑 [需求] 是否可以有继承的机制

anyone-yuren opened this issue · comments

🥰 需求描述

如一个公共组件,里面包含组件的基础样式,在实际使用的时候,希望能在变体中重写基础样式。

🧐 解决方案

🚑 其他信息

有 stylish 来实现这个需求,不过目前的使用上还没完全想好,因此文档没有透出。如果需要可以查阅下我们的使用案例 https://github.com/lobehub/lobe-ui/blob/master/src/styles/theme/customStylish.ts