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

Style Error #9

Closed
Nokecy opened this issue Jun 21, 2019 · 17 comments
Closed

Style Error #9

Nokecy opened this issue Jun 21, 2019 · 17 comments

Comments

@Nokecy
Copy link
Contributor

Nokecy commented Jun 21, 2019

因为在Table上套了一层Div 导致原AntTable 有些样式不生效了。比如size fixed=“right” 等等

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

看了antTable的less 都是className > table {} 这样导致table 必须是子元素 ,中间套个div 就不生效了

@wubostc
Copy link
Owner

wubostc commented Jun 21, 2019

并不是这个原因,你可以把components去掉看看原来的,fixed设定后,样式的变更发生在顶层DOM上

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

image

image

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

麻烦看下图一和图二的对比 ,中间套了个div导致样式没有应用上。。。。

@wubostc
Copy link
Owner

wubostc commented Jun 21, 2019

README.md有写:maybe you need to fix your style
你可以自己加啊-=

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

明白了 ,可以在那个套的div上加个className 吗 例如 vt-table

@wubostc
Copy link
Owner

wubostc commented Jun 21, 2019

具体怎么弄?

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

把ant-table的less 文件拷过来 改 在必要位置加上 那个套的div的class 那个vt-table 是我加地
image

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

现在还有一个问题 当fixed=‘right’ 时 主table和right table 中间会有一个滚动条的空白,这个修复有思路吗?
image

@wubostc
Copy link
Owner

wubostc commented Jun 21, 2019

顶层样式的问题,你可以去掉vt看看和原来有什么区别

@wubostc
Copy link
Owner

wubostc commented Jun 21, 2019

目前不太好解决,

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

去掉就正常了。。。。

@wubostc
Copy link
Owner

wubostc commented Jun 21, 2019

less整个文件复制过来是不是处理的有问题?

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

不是 空白的,去掉自定义的less一样有 ,因为vt-table 那个div的宽度和父级不一样 ,父级有一个滚动条。

@Nokecy
Copy link
Contributor Author

Nokecy commented Jun 21, 2019

@wubostc
Copy link
Owner

wubostc commented Jun 22, 2019

你得把scroll的x也要加上去,不然样式就有问题,还有col2字段也要赋值-=

@wubostc
Copy link
Owner

wubostc commented Jun 28, 2019

新版本提交了
@Nokecy

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

No branches or pull requests

2 participants