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

1. fix: 修复 Table 组件单独引入时分页功能没有样式的问题;2. docs: 修改示例代码的一处不影响功能的错误;3. fix: 修复 TimePicker 组件无法用首字母大写的形式引入的问题。 #51

Merged
merged 3 commits into from
Mar 29, 2021

Conversation

Lohoyo
Copy link
Collaborator

@Lohoyo Lohoyo commented Mar 29, 2021

No description provided.

@Lohoyo Lohoyo changed the title fix: 修复 Table 组件单独引入时分页功能没有样式的问题 fix: 修复 Table 组件的分页功能没有样式的问题 Mar 29, 2021
import './index.less';
import '../../pagination/style/index';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方有点问题,这个style应该是跟pagination.js放到一起,这么引就显得模块化设计做的不好

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其它组件也都是这么干的

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多个组件的style全搞到一起了啊

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

每个组件自己会引自己的style,如果某个组件还依赖其它组件的style,那就会再引入其它组件的style。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

合理的设计应该是组件依赖其他组件,不需要再额外显示去引入style

@Lohoyo Lohoyo changed the title fix: 修复 Table 组件的分页功能没有样式的问题 修复 3 个 bug Mar 29, 2021
@Lohoyo Lohoyo changed the title 修复 3 个 bug fix: 修复 Table 组件单独引入时分页功能没有样式的问题;docs: 修改示例代码的一处不影响功能的错误;fix: 修复 TimePicker 组件无法用首字母大写的形式引入的问题。 Mar 29, 2021
@Lohoyo Lohoyo changed the title fix: 修复 Table 组件单独引入时分页功能没有样式的问题;docs: 修改示例代码的一处不影响功能的错误;fix: 修复 TimePicker 组件无法用首字母大写的形式引入的问题。 1. fix: 修复 Table 组件单独引入时分页功能没有样式的问题;2. docs: 修改示例代码的一处不影响功能的错误;3. fix: 修复 TimePicker 组件无法用首字母大写的形式引入的问题。 Mar 29, 2021
@jinzhan jinzhan merged commit 998cbdc into ecomfe:master Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants