fix(n-ellipsis, n-data-table): ellpisis content mis-vertical-aligned

This commit is contained in:
07akioni 2021-04-07 23:06:28 +08:00
parent a78f143282
commit 371078a6a2
8 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## 2.4.2
### Fixes
- Fix `n-ellipsis` & `n-data-table` ellpisis cell mis-vertical-aligned.
## 2.4.1
### Fixes

View File

@ -1,5 +1,11 @@
# CHANGELOG
## 2.4.2
### Fixes
- 修正 `n-ellipsis` & `n-data-table` ellpisis 单元格文本垂直排列错位
## 2.4.1
### Fixes

View File

@ -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'

View File

@ -211,6 +211,7 @@ export default c([
`),
cE('ellipsis', `
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;

View File

@ -1 +1 @@
export { default as NEllipsis } from './src'
export { default as NEllipsis } from './src/Ellipsis'

View File

@ -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', `

View File

@ -1 +1 @@
export default '2.4.0'
export default '2.4.1'