vue---splitpane分割
2024-08-20 07:25:41
使用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
最新文章
- Mercurial笔记(hg命令)
- [PointCloud] GICP
- js中test()函数在正则中使用
- Nginx基础教程PPT
- QTableView另类打印解决方案(复用render函数去解决print问题)
- java正則表達式的坑
- java邮件发送(以163邮箱为例)
- CSS3 :target伪类的理解与使用
- Javascript中的url编码与解码(详解)
- 对啊英语音标---二、ghywr这些辅音怎么发音
- docker实战系列之快速删除docker中的容器
- linux 的常用命令---------第九阶段
- free命令中的buffer和cached的比较(转)
- LPC-Link2 CMSIS-DAP firmware source
- ZT C语言链表操作(新增单向链表的逆序建立)
- winscp以命令行方式同步服务器数据到PC机磁盘上
- Tensorflow笔记——神经网络图像识别(四)搭建模块化的神经网络八股(正则化,指数衰减学习率,滑动平均等优化)
- docker启动容器关于防火墙报错
- MemSQL start[c]up Round 1.b
- IIS发布错误记录
热门文章
- windows下用纯C实现一个简陋的imshow:基于GDI
- 基于GDI显示png图像
- JWT对SpringCloud进行系统认证和服务鉴权
- ng add ng-zorro-antd 安装时报错 已经是管理员还需要权限Error: EPERM: operation not permitted, lstat &#39;C:\ngWorkspace\qd\node_modules\fsevents\node_modules&#39;
- linux查看redis安装目录
- Reprint: CMake or Make
- 类型擦除对Java调用Kotlin的影响
- HTTP get post 请求实例
- VS2005编译QT4.8.2
- Linux中在vim/vi模式下对文本的查找和替换