Skip to content

Commit

Permalink
fix(comp:text): the lineClamp does not work (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm authored Jul 6, 2023
1 parent da0a9bf commit f9a33e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/text/demo/Expandable.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div style="width: 200px">
<IxText expandable>
<IxText lineClamp="2" expandable>
@idux 是一套企业级中后台 UI 组件库, 致力于提供高效愉悦的开发体验。 基于 Vue 3.x + TypeScript 开发,
全部代码开源并遵循 MIT 协议,任何企业、组织及个人均可免费使用。
</IxText>
Expand Down
4 changes: 3 additions & 1 deletion packages/components/text/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
overflow: hidden;

&-line-clamp {
display: inline-box;
/* stylelint-disable */
display: -webkit-inline-box;
/* stylelint-enable */
-webkit-box-orient: vertical;
}

Expand Down
1 change: 1 addition & 0 deletions packages/pro/search/src/segments/createCustomSegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { createTreeSelectSegment } from './CreateTreeSelectSegment'
import { createInputSegment } from './createInputSegment'

export function createCustomSegment(prefixCls: string, dateConfig: DateConfig, config: CustomSegmentConfig): Segment {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let extendedSegment: Segment<any> | undefined
if ('extends' in config) {
extendedSegment = createExtendedSegment(prefixCls, dateConfig, config.extends, config.config)
Expand Down

0 comments on commit f9a33e5

Please sign in to comment.