vue-split-pane
vue-split-pane copied to clipboard
Split-Pane component built with vue2.0, can be split vertically or horizontally. http://panjiachen.github.io/split-pane/demo/index.html
我按照例子做的没有那根分割线。查了代码发现是因为这里的height设为0造成的。不知道这个css类是用来干嘛的。谢谢。 .clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
unusable
``` if (percent > this.minPercent && percent < this.maxPercent) { this.percent = percent } else if (percent < this.minPercent) { this.percent = this.minPercent } else { this.percent = this.maxPercent }...
splitPane能不能提供一个方法,可以直接设定percent的值,以此能够动态改变paneL or paneR的值,然后以动画的形式来过渡。 我简单的看splitPane的源码, defaultPercent貌似并没有参与计算,能不能以此计算defaultPercent,然后通过方法改变这个值,来实现动态的splitPane的比例呢