mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
fix(n-ellipsis, n-data-table): ellpisis content mis-vertical-aligned
This commit is contained in:
parent
a78f143282
commit
371078a6a2
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.4.2
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix `n-ellipsis` & `n-data-table` ellpisis cell mis-vertical-aligned.
|
||||
|
||||
## 2.4.1
|
||||
|
||||
### Fixes
|
||||
|
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.4.2
|
||||
|
||||
### Fixes
|
||||
|
||||
- 修正 `n-ellipsis` & `n-data-table` ellpisis 单元格文本垂直排列错位
|
||||
|
||||
## 2.4.1
|
||||
|
||||
### Fixes
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { TreeNode, TreeMate } from 'treemate'
|
||||
import { CSSProperties, VNodeChild } from 'vue'
|
||||
import { EllipsisProps } from '../../ellipsis/src'
|
||||
import { EllipsisProps } from '../../ellipsis/src/Ellipsis'
|
||||
import { NLocale } from '../../locales'
|
||||
import { MergedTheme } from '../../_mixins'
|
||||
import { DataTableTheme } from '../styles'
|
||||
|
@ -211,6 +211,7 @@ export default c([
|
||||
`),
|
||||
cE('ellipsis', `
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
@ -1 +1 @@
|
||||
export { default as NEllipsis } from './src'
|
||||
export { default as NEllipsis } from './src/Ellipsis'
|
||||
|
@ -6,6 +6,7 @@ export default cB('ellpisis', {
|
||||
cNotM('line-clamp', `
|
||||
white-space: nowrap;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
max-width: 100%;
|
||||
`),
|
||||
cM('line-clamp', `
|
||||
|
@ -1 +1 @@
|
||||
export default '2.4.0'
|
||||
export default '2.4.1'
|
||||
|
Loading…
Reference in New Issue
Block a user