Comments (4)
antd的select里使用要把display:-webkit-box给disabled掉才能截断,不知道什么原因
@MrSteins 我在 select 没发现你说的属性呀,能否给个截图
from react-ellipsis.
未复现,无响应
from react-ellipsis.
from react-ellipsis.
原因在于继承了父元素的 white-space: nowrap;
const App = () => (<div style={{ width: 400, whiteSpace: 'nowrap' }}>
<Ellipsis ellipsis text="高性能、可自定义的 react 文本缩略组件。支持自定义缩略符、html 自定义缩略符、尾字符过滤、缩略回调等功能。" maxLine={1} />
</div>)
from react-ellipsis.
Related Issues (16)
- [bug] 纯数字不会进行缩略
- [BUG] 似乎RAF中延迟更新会导致闪烁问题
- 可支持IE吗 HOT 1
- `ellipsis` prop doesn't work if `resizeOnReflow` is set to `true` HOT 9
- `resizeOnReflow` prop won't work after `ellipsis` is toggled once HOT 8
- useLayoutEffect warning when using with Next.js HOT 2
- 怎么实现长文本的展示和收起呢 HOT 2
- small initial text HOT 3
- Uncaught TypeError: Cannot read properties of null (reading 'style') HOT 1
- 使用ellipsisNode这个属性就会报错 HOT 2
- 在手机上切换ellipsis时,文字出现不连续现象,发生抖动,影响体验 HOT 3
- 能否提供一个完成 ellipsis DOM 操作之后的回调 HOT 34
- 部分浏览器中文缩略显示异常 HOT 5
- 折叠的行数和显示的行数分开 HOT 24
- 查看更多永远展示在右边 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-ellipsis.