Skip to content

Commit

Permalink
Merge pull request #1325 from easyops-cn/zekun/text-tooltip
Browse files Browse the repository at this point in the history
style( eo-text-tooltip): 样式调整
  • Loading branch information
WHChen-Alex committed Aug 28, 2024
2 parents 09d18eb + 752fe8b commit abacae6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
52 changes: 26 additions & 26 deletions bricks/advanced/docs/eo-text-tooltip.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
构件 `eo-text-tooltip`
eo-text-tooltip

## Examples

### Basic

```yaml preview
brick: div
properties:
style:
display: flex
flex-direction: column
gap: 16px
children:
- brick: eo-text-tooltip
properties:
style:
width: 180px
label: 不省略不省略不省略不省略不省略不省略不省略不省略不省略不省略不省略不省略
lineClamp: 0
- brick: eo-text-tooltip
properties:
style:
width: 180px
label: 单行不超出不显示tips
lineClamp: 1
- brick: eo-text-tooltip
properties:
style:
width: 180px
label: 单行超出省略显示tips单行超出省略显示tips单行超出省略显示tips
lineClamp: 1
- brick: div
properties:
style:
display: flex
flex-direction: column
gap: 16px
children:
- brick: eo-text-tooltip
properties:
style:
width: 180px
label: 不省略不省略不省略不省略不省略不省略不省略不省略不省略不省略不省略不省略
lineClamp: 0
- brick: eo-text-tooltip
properties:
style:
width: 180px
label: 单行不超出不显示tips
lineClamp: 1
- brick: eo-text-tooltip
properties:
style:
width: 180px
label: 单行超出省略显示tips单行超出省略显示tips单行超出省略显示tips
lineClamp: 1
```
1 change: 1 addition & 0 deletions bricks/advanced/src/text-tooltip/styles.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: var(--line-clamp);
white-space: normal;
overflow: hidden;
}

0 comments on commit abacae6

Please sign in to comment.