-
Notifications
You must be signed in to change notification settings - Fork 2
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
@amcss/transformer 模块 #23
Labels
Processing
This task is processing
Comments
transformer 模块需要做的事情:需要处理最小单元的 需要实现的规则
具体实现的语法,需要参考 Tailwind.css 中的语法 需要实现的 api
类型 type CompilePureClassName = (className: string) => TransformerReturnValue | null TransformerReturnValue 类型 type TransformerReturnValue = {
attrs: Record<string, string>
} |
transformer 职责梳理已确认从形如
提取失败时,返回 null 已被确认暂不考虑
todo
|
希望后续将一下功能考虑进去
|
希望再提供一个字段 "bg-red"
{
"className": "bg-red"
} 就是抄一遍传来的字符串 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述
此函数为将普通css模块转换为AmNode 接受w-10 w-[10px]等参数
目标仓库
https://github.com/developer-plus/amcss
截止日期
No response
其他补充
No response
The text was updated successfully, but these errors were encountered: