UNPKG

dk-plus

Version:
46 lines (45 loc) 1.53 kB
import h from "./index2.js"; import { resolveComponent as y, openBlock as e, createElementBlock as r, Fragment as o, renderList as a, createBlock as n, withCtx as d, resolveDynamicComponent as c, createTextVNode as i, toDisplayString as p } from "vue"; import C from "../../_virtual/index.js"; const V = { ref: "dkCollapse", class: "dk-collapse", role: "tablist", "aria-multiselectable": "true" }; function g(s, $, b, v, x, B) { const m = y("dk-collapse-item"); return e(), r("div", V, [ (e(!0), r(o, null, a(s.slotList, (t, f) => (e(), n(m, { ref_for: !0, ref: "dkCollapseItem", key: f, modelValue: t.modelValue, "onUpdate:modelValue": (l) => t.modelValue = l, title: t.title, name: t.name, onChange: s.handleChange }, { default: d(() => [ (e(!0), r(o, null, a(t.children, (l, _) => (e(), n(c(l.type), { key: _ }, { default: d(() => [ typeof l.children == "object" ? (e(!0), r(o, { key: 0 }, a(l.children, (u, k) => (e(), n(c(u.type), { key: k }, { default: d(() => [ i(p(u.children), 1) ]), _: 2 }, 1024))), 128)) : (e(), r(o, { key: 1 }, [ i(p(l.children), 1) ], 64)) ]), _: 2 }, 1024))), 128)) ]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "name", "onChange"]))), 128)) ], 512); } const j = /* @__PURE__ */ C(h, [["render", g]]); export { j as default };