vue3-bootstrap5-modal:使用Bootstrap 5的简单vue 3模态组件

时间:2021-04-04 07:19:10
【文件属性】:
文件名称:vue3-bootstrap5-modal:使用Bootstrap 5的简单vue 3模态组件
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-04 07:19:10
Vue #vue3-bootstrap-5-modal-component使用引导程序5的vue 3的简单模态组件 依存关系: 该组件需要安装Bootstrap 5和Popper npm install bootstrap@next npm install @popperjs/core 然后可以将它们包含在main.js文件中: import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap' 组件设置: 您可以将其main.js导入到您的main.js文件中: import Modal form 'path to file/Modal.vue' ... app.component('Modal', Modal); 或者,您可以在需要时将其本地导入每个组件中: import Modal from 'path to file
【文件预览】:
vue3-bootstrap5-modal-main
----.gitignore(39B)
----package.json(384B)
----package-lock.json(19KB)
----src()
--------components()
--------main.js(156B)
--------assets()
--------App.vue(579B)
----public()
--------favicon.ico(4KB)
----vite.config.js(174B)
----README.md(3KB)
----index.html(337B)

网友评论