使用splitpane可以对窗口进行拆分,这个splitpane组件还是比较好用的,

首先安装:

npm install vue-splitpane

引入使用:

import splitPane from 'vue-splitpane'
Vue.component('split-pane', splitPane);

分割成两列:

<split-pane v-on:resize="resize" :min-percent='' :default-percent='' split="vertical">
<template slot="paneL">
A
</template>
<template slot="paneR">
B
</template>
</split-pane>

分割成三列:

<split-pane v-on:resize="resize" :min-percent='' :default-percent='' split="vertical">
<template slot="paneL">
A
</template>
<template slot="paneR">
<split-pane split="horizontal">
<template slot="paneL">
B
</template>
<template slot="paneR">
C
</template>
</split-pane>
</template>
</split-pane>

参考文档:https://www.npmjs.com/package/vue-splitpane

最新文章

  1. Mercurial笔记(hg命令)
  2. [PointCloud] GICP
  3. js中test()函数在正则中使用
  4. Nginx基础教程PPT
  5. QTableView另类打印解决方案(复用render函数去解决print问题)
  6. java正則表達式的坑
  7. java邮件发送(以163邮箱为例)
  8. CSS3 :target伪类的理解与使用
  9. Javascript中的url编码与解码(详解)
  10. 对啊英语音标---二、ghywr这些辅音怎么发音
  11. docker实战系列之快速删除docker中的容器
  12. linux 的常用命令---------第九阶段
  13. free命令中的buffer和cached的比较(转)
  14. LPC-Link2 CMSIS-DAP firmware source
  15. ZT C语言链表操作(新增单向链表的逆序建立)
  16. winscp以命令行方式同步服务器数据到PC机磁盘上
  17. Tensorflow笔记——神经网络图像识别(四)搭建模块化的神经网络八股(正则化,指数衰减学习率,滑动平均等优化)
  18. docker启动容器关于防火墙报错
  19. MemSQL start[c]up Round 1.b
  20. IIS发布错误记录

热门文章

  1. windows下用纯C实现一个简陋的imshow:基于GDI
  2. 基于GDI显示png图像
  3. JWT对SpringCloud进行系统认证和服务鉴权
  4. ng add ng-zorro-antd 安装时报错 已经是管理员还需要权限Error: EPERM: operation not permitted, lstat &#39;C:\ngWorkspace\qd\node_modules\fsevents\node_modules&#39;
  5. linux查看redis安装目录
  6. Reprint: CMake or Make
  7. 类型擦除对Java调用Kotlin的影响
  8. HTTP get post 请求实例
  9. VS2005编译QT4.8.2
  10. Linux中在vim/vi模式下对文本的查找和替换