UNPKG

@vue-interface/dropdown-menu

Version:
51 lines (50 loc) 1.36 kB
import { openBlock as o, createElementBlock as t, renderSlot as r, defineComponent as l, normalizeClass as i } from "vue"; const d = (e, n) => { const s = e.__vccOpts || e; for (const [c, a] of n) s[c] = a; return s; }, _ = {}, f = { class: "dropdown-header" }; function u(e, n) { return o(), t("h3", f, [ r(e.$slots, "default") ]); } const b = /* @__PURE__ */ d(_, [["render", u]]), m = {}, p = { class: "dropdown-item" }; function h(e, n) { return o(), t("div", p, [ r(e.$slots, "default") ]); } const y = /* @__PURE__ */ d(m, [["render", h]]), w = {}, $ = { class: "dropdown-item-text" }; function g(e, n) { return o(), t("div", $, [ r(e.$slots, "default") ]); } const k = /* @__PURE__ */ d(w, [["render", g]]), v = ["aria-labelledby"], x = /* @__PURE__ */ l({ __name: "DropdownMenu", props: { align: { default: "left" }, show: { type: Boolean } }, setup(e) { return (n, s) => (o(), t("div", { class: i(["dropdown-menu", { "dropdown-menu-left": e.align === "left", "dropdown-menu-right": e.align === "right", show: e.show }]), "aria-labelledby": n.$attrs.id }, [ r(n.$slots, "default") ], 10, v)); } }); export { b as DropdownHeader, y as DropdownItem, k as DropdownItemText, x as DropdownMenu }; //# sourceMappingURL=dropdown-menu.js.map