Git Product home page Git Product logo

deformation's Introduction

  • 👋 Hi, I’m @PUGE
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

deformation's People

Contributors

puge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deformation's Issues

一点建议~

试了下这个组件,从一个使用者的角度,希望功能可以再扩展下 (当然,也可能是我使用的姿势不对)
比如说我今天的需求:
我是在做一个编辑器时找到的这个组件,我的需求是只可以通过左右边界来改变宽度。
但是试过之后发现,这个需求需要 draggable=true resizable=true。
这样一来就产生了很多副作用,比如它是可以左右拖动(draggable),自由改变宽高的(resizable)

我简单粗暴的改了下组件代码,添加了对拖动(move: Boolean) 和改变大小(size: Stirng[x, y, both]) 的限制,实现了我想要的效果,供您参考。这里是 Demo
我个人觉得这些可以集成到draggable,resizable里,让使用者可以: 左右/上下/自由/禁止 地设置拖动和改变大小

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.