Vue EasyUI 调整大小v-Resizable的坑
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Vue EasyUI 调整大小v-Resizable的坑,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2255字,纯文字阅读大概需要4分钟。
内容图文
![Vue EasyUI 调整大小v-Resizable的坑](/upload/InfoBanner/zyjiaocheng/1305/0c5e5754b6b24bf9a8d96583726e4183.jpg)
具体安装,参考
https://www.w3cschool.cn/vueeasyui/vueeasyui-p8h937nn.html
坑:
这样无效 v-Resizable 直接套在 LayoutPanel 标签里面
< template > < div > < Layout style ="width: 700px; height: 250px" > < LayoutPanel region ="north" style ="height: 50px" > < div class ="title" >North Region</div></LayoutPanel><LayoutPanel region="south" style="height: 50px"><div class="title">South Region</div></LayoutPanel><LayoutPanel region="west" style="width: 120px"><div class="title">West Region</div></LayoutPanel><LayoutPanel region="east" style="width: 120px"><div class="title">East Region</div></LayoutPanel><LayoutPanel region="center" id="center" v-Resizable="{ resizeStart: () => resize(), resizing:() => resize(), resizeStop: () => resize() }"><div class="title">Center Region</div><div class="title">Center Region</div></LayoutPanel></Layout></div></template><script> export default { methods: { resize () { console.log(111) } } }; </script>
这样有效 LayoutPanel 里面在套一层 div, v-Resizable才会生效
< template > < div > < Layout style ="width: 700px; height: 250px" > < LayoutPanel region ="north" style ="height: 50px" > < div class ="title" >North Region</div></LayoutPanel><LayoutPanel region="south" style="height: 50px"><div class="title">South Region</div></LayoutPanel><LayoutPanel region="west" style="width: 120px"><div class="title">West Region</div></LayoutPanel><LayoutPanel region="east" style="width: 120px"><div class="title">East Region</div></LayoutPanel><LayoutPanel region="center" id="center"><div v-Resizable="{ resizeStart: () => resize(), resizing:() => resize(), resizeStop: () => resize() }"><div class="title">Center Region</div><div class="title">Center Region</div></div></LayoutPanel></Layout></div></template><script> export default { methods: { resize () { console.log(111) } } }; </script>
原文:https://www.cnblogs.com/-roc/p/14646843.html
内容总结
以上是互联网集市为您收集整理的Vue EasyUI 调整大小v-Resizable的坑全部内容,希望文章能够帮你解决Vue EasyUI 调整大小v-Resizable的坑所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。