Vue实现拖拽式分割布局

本文实例为大家分享了Vue实现拖拽式分割布局的具体代码,供大家参考,具体内容如下
示例展示 Vue实现拖拽式分割布局
文章图片

代码 特地写了一个demo代码,可以直接复制下来运行

Documenttopbottombody{margin: 0; }.container{/* padding: 20px; */height: 90vh; width: 90vw; display: flex; flex-direction: column; }.top{width: 100%; height: 300px; background-color: blue; }.bar{width: 100%; height: 10px; cursor: n-resize; background-color: black; }.bottom{width: 100%; flex: auto; background-color: red; }

【Vue实现拖拽式分割布局】以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

    推荐阅读