import { defineComponent as _, resolveComponent as o, openBlock as n, createBlock as l, withCtx as i, createElementBlock as u, Fragment as d, renderList as r, createVNode as k, createTextVNode as x, toDisplayString as D, createCommentVNode as w } from "vue";
import { aG as U } from "./index-Doqdo_uO.js";
const L = /* @__PURE__ */ _({
  __name: "Label-删除",
  props: {
    configData: {
      type: Object,
      default: {}
    }
  },
  setup(a) {
    U();
    const p = [
      { title: "标题", bind: "name", type: "input", placeholder: "" },
      { title: "key", bind: "key", type: "input", placeholder: "" },
      { title: "是否必填", bind: "required", type: "switch", placeholder: "" },
      { title: "大小", bind: "font", type: "inputnumber", placeholder: "" },
      { title: "颜色", bind: "color", type: "input", placeholder: "" },
      {
        title: "位置",
        bind: "align",
        type: "radiogroup",
        children: [
          { title: "居左", value: "left" },
          { title: "居中", value: "center" },
          { title: "居右", value: "right" }
        ]
      },
      { title: "样式扩展", bind: "cssextended", type: "textarea", placeholder: "" },
      { title: "扩展", bind: "extended", type: "textarea", placeholder: "", rows: "5" }
    ];
    return (C, c) => {
      const f = o("a-input"), b = o("a-textarea"), v = o("a-input-number"), y = o("a-radio-button"), g = o("a-radio-group"), m = o("a-switch"), s = o("a-form-item"), h = o("a-form");
      return n(), l(h, {
        layout: "vertical",
        model: a.configData,
        autocomplete: "off"
      }, {
        default: i(() => [
          (n(), u(d, null, r(p, (e, B) => k(s, {
            label: e.title
          }, {
            default: i(() => [
              e.type == "input" ? (n(), l(f, {
                key: 0,
                value: a.configData[e.bind],
                "onUpdate:value": (t) => a.configData[e.bind] = t
              }, null, 8, ["value", "onUpdate:value"])) : e.type == "textarea" ? (n(), l(b, {
                key: 1,
                value: a.configData[e.bind],
                "onUpdate:value": (t) => a.configData[e.bind] = t,
                placeholder: "",
                rows: e.rows
              }, null, 8, ["value", "onUpdate:value", "rows"])) : e.type == "inputnumber" ? (n(), l(v, {
                key: 2,
                value: a.configData[e.bind],
                "onUpdate:value": (t) => a.configData[e.bind] = t,
                min: 12,
                max: 80
              }, null, 8, ["value", "onUpdate:value"])) : e.type == "radiogroup" ? (n(), l(g, {
                key: 3,
                value: a.configData.align,
                "onUpdate:value": c[0] || (c[0] = (t) => a.configData.align = t)
              }, {
                default: i(() => [
                  (n(!0), u(d, null, r(e.children, (t, N) => (n(), l(y, {
                    value: t.value
                  }, {
                    default: i(() => [
                      x(D(t.title), 1)
                    ]),
                    _: 2
                  }, 1032, ["value"]))), 256))
                ]),
                _: 2
              }, 1032, ["value"])) : e.type == "switch" ? (n(), l(m, {
                key: 4,
                checked: a.configData[e.bind],
                "onUpdate:checked": (t) => a.configData[e.bind] = t
              }, null, 8, ["checked", "onUpdate:checked"])) : w("", !0)
            ]),
            _: 2
          }, 1032, ["label"])), 64))
        ]),
        _: 1
      }, 8, ["model"]);
    };
  }
});
export {
  L as default
};
