2 Star 11 Fork 4

武松 / flow-chart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
resize.md 982 Bytes
一键复制 编辑 原始数据 按行查看 历史
newpanjing 提交于 2019-03-10 11:42 . 实现基本功能

resize.js

js div 拉伸改变大小

用法:

    new Resize(options).register(el)

options:

名称 参数 说明
onBegin data 开始拉伸
onResize data 拉伸中
onEnd data 结束拉伸

支持jquery


$.fn.resize=function() {
    var options={
        onBegin:function(data) {
          
        },
        onEnd:function(data) {
          
        },
        onResize:function(data) {
          
        }
    }
  new Resize(options).register(this);
}

jquery使用:

 $(".aa").resize();

支持vue


    Vue.directive('resize', {
        inserted(el, binding) {
            var options={};
            new Resize(options).register(el);
        }});

vue使用:

<div v-resize="{aa:123}"></div>
JavaScript
1
https://gitee.com/tompeppa/flow-chart.git
git@gitee.com:tompeppa/flow-chart.git
tompeppa
flow-chart
flow-chart
master

搜索帮助