import { n as a, p as n, h as s, j as c } from "./index-16cc6938.mjs";
import "vue";
function r(e, t, l, i) {
  const o = a("el-collapse", e, t);
  return o["#"] = p(e), o;
}
function p(e) {
  const t = [];
  let l = 0;
  for (const i of e._container || [])
    t.push(d(i, l++));
  return t;
}
function d(e, t) {
  const l = n("el-collapse-item", e);
  return l.name = "" + t, l;
}
const f = {
  key: "_collapse",
  name: "Collapse",
  description: "Basic collapse",
  icon: "mdiArrowCollapseVertical",
  sequence: 23,
  transform: r,
  editor: {
    basic: {
      ui: [
        //If accordion is true,the modelValue is a String
        //So far only one data type is supported
        // {
        //   '~component': 'el-switch',
        //   '~label': 'Accordion',
        //   '~prop': 'accordion'
        // },
        {
          "~component": "lc-editable-list",
          "~label": "Items",
          "~prop": "_container",
          labelColumn: "title",
          editConfig: [s("title"), c("disabled")]
        }
      ],
      init: {
        accordion: !1,
        _container: [
          {
            title: "Collapse 1"
          },
          {
            title: "Collapse 2"
          },
          {
            title: "Collapse 3"
          }
        ]
      }
    },
    data: {
      // modelValueName:'model',
      //readonly:true,
      type: "Array"
    },
    display: {
      init: {
        style: {
          display: "block",
          width: "100%",
          margin: "4px 0 4px 0"
        }
      }
    }
  }
};
export {
  f as default
};
