Bootstrap-Vue和Bootstrap 4之间的比较 [英] Comparison between Bootstrap-Vue and Bootstrap 4

查看:751
本文介绍了Bootstrap-Vue和Bootstrap 4之间的比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Vuejs开发前端,现在必须对其进行样式设置. 我遇到了 Bootstrap-vue .最好使用Bootstrap 4或Bootstrap-vue.它们相同还是使用Bootstap-vue有优势.

I have used Vuejs for developing my frontend and now I have to style it. I came across Bootstrap-vue . Which will be better to use Bootstrap 4 or Bootstrap-vue. Are they same or is there is an advantage to use Bootstap-vue.

推荐答案

某些Bootstrap 4函数需要 jQuery Popper.js ,这些函数将与Vue冲突. (这些函数直接修改DOM.Vue不会跟踪这些修改.使用jQuery进行的任何更改都可能被Vue覆盖.)

Some Bootstrap 4 functions require jQuery, Popper.js, and these functions will conflict with Vue. (These functions modify the DOM directly. Vue won't keep track of these modifications. Any changes made using jQuery could be overwritten by Vue.)

这些功能包括:

  • 后缀
  • 警报
  • 按钮
  • 轮播
  • 折叠
  • 下拉
  • 模态
  • Popover
  • Scrollspy
  • Tab
  • 工具提示
  • Affix
  • Alert
  • Button
  • Carousel
  • Collapse
  • Dropdown
  • Modal
  • Popover
  • Scrollspy
  • Tab
  • Tooltip

Bootstrap-vue将其中的大多数功能转换为Vue,以使其按预期工作.

Bootstrap-vue converted most of these functions into Vue, so that it works as expected.

如果您只想使用Bootstrap CSS而不是与JS相关的功能,直接使用Bootstrap 4会更直接,并且花费更少的时间来学习Bootstrap-vue的工作方式.

If you only want to use Bootstrap CSS and not its JS related functions, using Bootstrap 4 directly will be more straight forward and requires less time spent learning how Bootstrap-vue works.

其他,请使用Bootstrap-vue.

如果不确定,Bootstrap-vue似乎是一个风险较小的选择.

If you are not sure, Bootstrap-vue seems like a less risky choice.

这篇关于Bootstrap-Vue和Bootstrap 4之间的比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆