VUEJS项目可以导入Bootstrap.min.js文件吗?
我在VUEJS中有一个项目,该项目已经安装了Bootstrap。我使用的是HTML,CSS项目,并转换为使用Bootstrap类的VUEJS。但是,下拉式引导类别不起作用,例如,下面的类在单击和正常的HTML文件显示Show类时,并未添加Show类。
下拉访问 下拉菜,
我有
"bootstrap": "^5.1.3",
"bootstrap-vue": "^2.22.0",
"@popperjs/core": "^2.11.5",
有人可以建议吗?
谢谢
I have a project in vuejs which bootstrap is already installed. I am using html, css project and converting into vuejs which bootstrap classes are used. However, dropdown bootstrap classes are not working for example, the below classes are not adding Show class when its getting clicked and normal html file is showing show class.
dropdown-toggle
dropdown-menu
I have
"bootstrap": "^5.1.3",
"bootstrap-vue": "^2.22.0",
"@popperjs/core": "^2.11.5",
Can someone please suggest something?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
show
或<代码>显示in Bootstrap-vue中没有单击事件,但是它确实在下拉列表出现前不久会发出显示事件,包括单击时。
它立即随之而来。
您的代码:(
因为他们没有制作库,所以您在Vue网站上没有找到它的信息。)
Use
show
orshown
The in Bootstrap-Vue doesn't have a click event, but it does emit a show event shortly before the dropdown appears, including when it's clicked.
It immediately follows.
Your code:
(You didn't find information for it on Vue's site because they didn't make the library.)