UNPKG

bootstrap-vue-wrapper

Version:

Bootstrap 5 components in Vue3 wrapper.

51 lines (50 loc) 1.4 kB
import n from "./BsModal.vue2.js"; import { openBlock as e, createElementBlock as t, createElementVNode as s, normalizeClass as i, renderSlot as d, toDisplayString as r, createCommentVNode as l } from "vue"; import m from "../../_virtual/_plugin-vue_export-helper.js"; const c = { ref: "modalRef", class: "modal fade", tabindex: "-1" }, f = { class: "modal-content" }, p = { key: 0, class: "modal-header" }, h = ["textContent"], u = { key: 1, class: "modal-body" }, _ = { key: 2, class: "modal-footer" }; function y(o, a, b, v, $, k) { return e(), t("div", c, [ s("div", { class: i(["modal-dialog", o.classDialog]) }, [ s("div", f, [ o.hideHeader ? l("", !0) : (e(), t("div", p, [ d(o.$slots, "header", {}, () => [ s("div", { class: "h5 modal-title", textContent: r(o.title) }, null, 8, h), a[0] || (a[0] = s("button", { type: "button", class: "btn-close", "data-bs-dismiss": "modal" }, null, -1)) ]) ])), o.hideBody ? l("", !0) : (e(), t("div", u, [ d(o.$slots, "body") ])), o.hideFooter ? l("", !0) : (e(), t("div", _, [ d(o.$slots, "footer") ])) ]) ], 2) ], 512); } const D = /* @__PURE__ */ m(n, [["render", y]]); export { D as default };