Code Monkey home page Code Monkey logo

Comments (4)

ruofee avatar ruofee commented on June 11, 2024

antd的select里使用要把display:-webkit-box给disabled掉才能截断,不知道什么原因

@MrSteins 我在 select 没发现你说的属性呀,能否给个截图

from react-ellipsis.

chenquincy avatar chenquincy commented on June 11, 2024

未复现,无响应

from react-ellipsis.

MrSteins avatar MrSteins commented on June 11, 2024

@ruofee
截屏2022-07-19 上午10 11 14
截屏2022-07-19 上午10 11 36
截屏2022-07-19 上午10 12 50

from react-ellipsis.

canvascat avatar canvascat commented on June 11, 2024

原因在于继承了父元素的 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.