fix(data-table): spin style penetration (#662)

* fix(data-table): spin style penetration

* Update CHANGELOG.en-US.md

* Update CHANGELOG.zh-CN.md

Co-authored-by: Jiwen Bai <56228105@qq.com>
Co-authored-by: Yugang Cao <34439652+Talljack@users.noreply.github.com>
This commit is contained in:
Mr.Bai 2021-07-26 23:38:16 +08:00 committed by GitHub
parent 371e9e6e58
commit 6797557535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Fixes
- Fix `n-data-table` the style penetration of the `n-spin`, closes[#663](https://github.com/TuSimple/naive-ui/issues/663).
## 2.15.7 (2021-07-25)
### Feats

View File

@ -1,5 +1,9 @@
# CHANGELOG
### Fixes
- 修复 `n-data-table` `n-spin`的样式穿透问题,关闭 [#663](https://github.com/TuSimple/naive-ui/issues/663)
## 2.15.7 (2021-07-25)
### Feats

View File

@ -82,7 +82,8 @@ export default c([
])
])
]),
cB('base-loading', `
c('>', [
cB('base-loading', `
color: var(--loading-color);
font-size: var(--loading-size);
position: absolute;
@ -91,9 +92,10 @@ export default c([
transform: translateX(-50%) translateY(-50%);
transition: color .3s var(--bezier);
`, [
fadeInScaleUpTransition({
originalTransform: 'translateX(-50%) translateY(-50%)'
})
fadeInScaleUpTransition({
originalTransform: 'translateX(-50%) translateY(-50%)'
})
])
]),
cB('data-table-expand-trigger', 'cursor: pointer;'),
cB('data-table-expand-placeholder', `