Comparison between Bootstrap-Vue and Bootstrap 4

前端 未结 1 618
轻奢々
轻奢々 2021-02-05 00:30

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 o

1条回答
  •  再見小時候
    2021-02-05 01:30

    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.)

    These functions include:

    • Affix
    • Alert
    • Button
    • Carousel
    • Collapse
    • Dropdown
    • Modal
    • Popover
    • Scrollspy
    • Tab
    • Tooltip

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

    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.

    Else, use Bootstrap-vue.

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

    0 讨论(0)
提交回复
热议问题