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

无互相关联组件 #826

Open
28 of 29 tasks
SunLxy opened this issue May 13, 2022 · 7 comments
Open
28 of 29 tasks

无互相关联组件 #826

SunLxy opened this issue May 13, 2022 · 7 comments

Comments

@SunLxy
Copy link
Collaborator

SunLxy commented May 13, 2022

主要使用 styled-components 进行开发,组件内部不使用css变量,⚠️:css样式顺序
主题变量规则:[样式]+[功能]+[状态?] ,⚠️特殊情况下可以使用: [样式] + [组件名称(+位置?)] + [功能?] + [状态?]+[伪类?]

目的:

  1. 剔除css样式文件
  2. 剔除组件内部直接引入 icon 图标
  3. 主题化

组件:

@nullptr-z @cuilanxin 可以先选择一个组件 ,在自己的仓库创建一个demo,使用styled-components试一试

@SunLxy
Copy link
Collaborator Author

SunLxy commented May 13, 2022

示例这个只是把button按钮样式直接拿来用的,有些地方是重复的

@nullptr-z
Copy link
Collaborator

@SunLxy 好的

@SunLxy
Copy link
Collaborator Author

SunLxy commented May 14, 2022

  1. vscode 安装vscode-styled-components插件 styled-components写css 有提示功能

@nullptr-z
Copy link
Collaborator

@SunLxy 可以

@SunLxy SunLxy added this to In progress in v5 tasks May 16, 2022
SunLxy added a commit that referenced this issue May 20, 2022
SunLxy pushed a commit that referenced this issue May 20, 2022
SunLxy added a commit that referenced this issue May 28, 2022
@jaywcjlove
Copy link
Member

#845
@SunLxy 是不是重复了

@SunLxy
Copy link
Collaborator Author

SunLxy commented May 28, 2022

我两种分开做的 @jaywcjlove

@jaywcjlove
Copy link
Member

我两种分开做的 @jaywcjlove

👌

SunLxy pushed a commit that referenced this issue Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v5 tasks
In progress
Development

No branches or pull requests

3 participants