当前位置:   article > 正文

vue中使用vue-splitpane 拉伸缩小插件_vue splitpanes

vue splitpanes

1.下载插件(vue2

npm i splitpanes@legacy

2.组件中使用

  1. import { Splitpanes, Pane } from 'splitpanes'
  2. import 'splitpanes/dist/splitpanes.css'
  3. export default {
  4. components: { Splitpanes, Pane },
  5. ...
  6. }
  1. <splitpanes style="height: 400px">
  2. <pane min-size="20">1</pane>
  3. <pane>
  4. <splitpanes horizontal>
  5. <pane>2</pane>
  6. <pane>3</pane>
  7. <pane>4</pane>
  8. </splitpanes>
  9. </pane>
  10. <pane>5</pane>
  11. </splitpanes>
  12. //css样式
  13. .splitpanes__pane {
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. font-family: Helvetica, Arial, sans-serif;
  18. color: rgba(255, 255, 255, 0.6);
  19. font-size: 5em;
  20. }

3.官网  Splitpanes (antoniandre.github.io)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/76838
推荐阅读
相关标签
  

闽ICP备14008679号