((typeof self !== 'undefined' ? self : this)["webpackJsonpvue3_jsonschema_editor"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpvue3_jsonschema_editor"] || []).push([[1],{

/***/ "0e2b":
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, ".schema-item .name-input-row[data-v-f6b1d862]{position:relative}.schema-item .name-input-row .ant-input.error[data-v-f6b1d862]{color:red;border:1px solid red}", ""]);
// Exports
module.exports = exports;


/***/ }),

/***/ "85bb":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_f6b1d862_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c91c");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_f6b1d862_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_index_vue_vue_type_style_index_0_id_f6b1d862_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "a892":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/packages/JsonSchemaEditor/components/Schema/components/SchemaItem/index.vue?vue&type=template&id=f6b1d862&scoped=true

const _withScopeId = n => (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-f6b1d862"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n);
const _hoisted_1 = {
  class: "schema-item"
};
const _hoisted_2 = {
  class: "name-input-row"
};
const _hoisted_3 = {
  class: "option-formStyle"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_CaretDownOutlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretDownOutlined");
  const _component_CaretRightOutlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("CaretRightOutlined");
  const _component_a_col = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-col");
  const _component_a_input = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-input");
  const _component_InputView = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("InputView");
  const _component_a_checkbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-checkbox");
  const _component_a_tooltip = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-tooltip");
  const _component_a_row = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-row");
  const _component_a_select_option = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select-option");
  const _component_a_select = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-select");
  const _component_a_input_number = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-input-number");
  const _component_EditOutlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EditOutlined");
  const _component_a_button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-button");
  const _component_a_input_group = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-input-group");
  const _component_DefaultValue = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("DefaultValue");
  const _component_MinusSquareOutlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MinusSquareOutlined");
  const _component_DropPlus = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("DropPlus");
  const _component_PlusSquareOutlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("PlusSquareOutlined");
  const _component_schema_array = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("schema-array");
  const _component_schema_object = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("schema-object");
  const _component_ValueListDialog = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ValueListDialog");
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_row, {
    align: "middle"
  }, {
    default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.nameSpanNum,
      style: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeStyle"])(_ctx.tagPaddingLeftStyle),
      class: "col-item name-item col-item-name"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_row, {
        align: "middle",
        justify: "space-around"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
          span: 2,
          class: "down-style-col"
        }, {
          default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [_ctx.itemValue.type === 'object' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
            key: 0,
            onClick: _cache[0] || (_cache[0] = (...args) => $setup.handleClickIcon && $setup.handleClickIcon(...args)),
            class: "down-style"
          }, [_ctx.showIcon ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_CaretDownOutlined, {
            key: 0
          })) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_CaretRightOutlined, {
            key: 1
          }))])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]),
          _: 1
        }), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
          span: 22
        }, {
          default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
            showAll: "",
            style: {
              "flex-grow": "1",
              "overflow": "hidden",
              "width": "100px"
            },
            value: _ctx.paramsName,
            disabled: _ctx.itemValue.disabled
          }, {
            default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input, {
              style: {
                "width": "100%"
              },
              class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])([_ctx.isError ? 'error' : '']),
              value: _ctx.paramsName,
              "onUpdate:value": _cache[1] || (_cache[1] = $event => _ctx.paramsName = $event),
              disabled: _ctx.itemValue.disabled,
              onBlur: $setup.handleChangeName
            }, null, 8, ["class", "value", "disabled", "onBlur"])]),
            _: 1
          }, 8, ["value", "disabled"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_tooltip, {
            title: "全选",
            placement: "top",
            class: "check-all show-all"
          }, {
            default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_checkbox, {
              checked: _ctx.isChecked,
              "onUpdate:checked": _cache[2] || (_cache[2] = $event => _ctx.isChecked = $event),
              onChange: $setup.handleEnableRequire
            }, null, 8, ["checked", "onChange"])]),
            _: 1
          })])]),
          _: 1
        })]),
        _: 1
      })]),
      _: 1
    }, 8, ["span", "style"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum,
      class: "col-item"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        select: "",
        value: _ctx.itemValue.type,
        placeholder: "类型",
        disabled: _ctx.itemValue.disabled && !_ctx.itemValue.canChangeType
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_select, {
          placeholder: "类型",
          disabled: _ctx.itemValue.disabled && !_ctx.itemValue.canChangeType,
          value: _ctx.itemValue.type,
          "onUpdate:value": _cache[3] || (_cache[3] = $event => _ctx.itemValue.type = $event),
          onChange: $setup.handleChangeType
        }, {
          default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.SCHEMA_TYPE, item => {
            return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_select_option, {
              key: item,
              label: item,
              value: item
            }, null, 8, ["label", "value"]);
          }), 128))]),
          _: 1
        }, 8, ["disabled", "value", "onChange"])]),
        _: 1
      }, 8, ["value", "disabled"])]),
      _: 1
    }, 8, ["span"]), $props.showAll ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
      key: 0
    }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum,
      class: "col-item col-item-format"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        select: "",
        value: _ctx.itemValue.format,
        placeholder: "格式",
        disabled: $setup.formatDisable
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_select, {
          disabled: $setup.formatDisable,
          value: _ctx.itemValue.format,
          "onUpdate:value": _cache[4] || (_cache[4] = $event => _ctx.itemValue.format = $event),
          allowClear: "",
          placeholder: "格式"
        }, {
          default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.SCHEMA_FORMAT, item => {
            return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_select_option, {
              key: item,
              label: item,
              value: item
            }, null, 8, ["label", "value"]);
          }), 128))]),
          _: 1
        }, 8, ["disabled", "value"])]),
        _: 1
      }, 8, ["value", "disabled"])]),
      _: 1
    }, 8, ["span"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum,
      class: "col-item"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        value: _ctx.itemValue.minLength,
        disabled: $setup.lengthDisable,
        placeholder: "最小长度"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input_number, {
          controls: false,
          disabled: $setup.lengthDisable,
          onBlur: _cache[5] || (_cache[5] = $event => $setup.checkMin(true)),
          placeholder: "最小长度",
          value: _ctx.itemValue.minLength,
          "onUpdate:value": _cache[6] || (_cache[6] = $event => _ctx.itemValue.minLength = $event)
        }, null, 8, ["disabled", "value"])]),
        _: 1
      }, 8, ["value", "disabled"])]),
      _: 1
    }, 8, ["span"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum,
      class: "col-item"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        value: _ctx.itemValue.maxLength,
        disabled: $setup.lengthDisable,
        placeholder: "最大长度"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input_number, {
          controls: false,
          disabled: $setup.lengthDisable,
          min: _ctx.itemValue.minLength,
          placeholder: "最大长度",
          value: _ctx.itemValue.maxLength,
          "onUpdate:value": _cache[7] || (_cache[7] = $event => _ctx.itemValue.maxLength = $event)
        }, null, 8, ["disabled", "min", "value"])]),
        _: 1
      }, 8, ["value", "disabled"])]),
      _: 1
    }, 8, ["span"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        value: _ctx.itemValue.min,
        disabled: $setup.numberDisable,
        placeholder: "最小值"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input_number, {
          controls: false,
          disabled: $setup.numberDisable,
          min: -9007199254740992,
          onBlur: _cache[8] || (_cache[8] = $event => $setup.checkMin(false)),
          placeholder: "最小值",
          value: _ctx.itemValue.min,
          "onUpdate:value": _cache[9] || (_cache[9] = $event => _ctx.itemValue.min = $event)
        }, null, 8, ["disabled", "value"])]),
        _: 1
      }, 8, ["value", "disabled"])]),
      _: 1
    }, 8, ["span"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        value: _ctx.itemValue.max,
        disabled: $setup.numberDisable,
        placeholder: "最大值"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input_number, {
          controls: false,
          disabled: $setup.numberDisable,
          max: 9007199254740992,
          min: _ctx.itemValue.min,
          placeholder: "最大值",
          value: _ctx.itemValue.max,
          "onUpdate:value": _cache[10] || (_cache[10] = $event => _ctx.itemValue.max = $event)
        }, null, 8, ["disabled", "min", "value"])]),
        _: 1
      }, 8, ["value", "disabled"])]),
      _: 1
    }, 8, ["span"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum,
      class: "col-item value-list"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input_group, {
        compact: ""
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input, {
          disabled: $setup.valueListDisable,
          value: _ctx.itemValue.valueList,
          "onUpdate:value": _cache[11] || (_cache[11] = $event => _ctx.itemValue.valueList = $event),
          placeholder: "值列表"
        }, null, 8, ["disabled", "value"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_button, {
          onClick: $setup.showValueList,
          disabled: $setup.valueListDisable
        }, {
          icon: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EditOutlined)]),
          _: 1
        }, 8, ["onClick", "disabled"])]),
        _: 1
      })]),
      _: 1
    }, 8, ["span"])], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.spanNum,
      class: "col-item"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        value: _ctx.itemValue.title,
        placeholder: "标题"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_input, {
          placeholder: "标题",
          value: _ctx.itemValue.title,
          "onUpdate:value": _cache[12] || (_cache[12] = $event => _ctx.itemValue.title = $event)
        }, null, 8, ["value"])]),
        _: 1
      }, 8, ["value"])]),
      _: 1
    }, 8, ["span"]), $props.showAll ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_col, {
      key: 1,
      span: $setup.spanNum,
      class: "col-item"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_InputView, {
        disabled: $setup.defaultValueDisable,
        value: _ctx.itemValue.defaultValue,
        placeholder: "默认值"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_DefaultValue, {
          ref: "defaultValueRef",
          disabled: $setup.defaultValueDisable,
          inputType: _ctx.itemValue.type,
          value: _ctx.itemValue.defaultValue,
          "onUpdate:value": _cache[13] || (_cache[13] = $event => _ctx.itemValue.defaultValue = $event),
          placeholder: "默认值"
        }, null, 8, ["disabled", "inputType", "value"])]),
        _: 1
      }, 8, ["disabled", "value"])]),
      _: 1
    }, 8, ["span"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_col, {
      span: $setup.actionSpanNum,
      class: "col-item col-item-setting"
    }, {
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_button, {
        danger: "",
        type: "link",
        onClick: $setup.handleDelete,
        class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])([_ctx.itemValue.disabled ? 'hidden' : '', 'close'])
      }, {
        icon: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MinusSquareOutlined)]),
        _: 1
      }, 8, ["onClick", "class"]), _ctx.itemValue.type === 'object' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_DropPlus, {
        key: 0,
        name: $props.name,
        prefix: $props.prefix,
        onAddField: $setup.handleAdd
      }, null, 8, ["name", "prefix", "onAddField"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_tooltip, {
        key: 1,
        title: "添加兄弟节点",
        placement: "top"
      }, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_button, {
          type: "link",
          onClick: _cache[14] || (_cache[14] = $event => $setup.handleAdd(false))
        }, {
          icon: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_PlusSquareOutlined)]),
          _: 1
        })]),
        _: 1
      }))]),
      _: 1
    }, 8, ["span"])]),
    _: 1
  }), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_3, [_ctx.itemValue.type === 'array' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_schema_array, {
    key: 0,
    showAll: $props.showAll,
    data: _ctx.itemValue,
    "editor-id": $props.editorId,
    prefix: $setup.prefixArray
  }, null, 8, ["showAll", "data", "editor-id", "prefix"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.itemValue.type === 'object' ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_schema_object, {
    key: 1,
    ref: "schemaObjRef",
    showAll: $props.showAll,
    data: _ctx.itemValue,
    "editor-id": $props.editorId,
    prefix: $setup.nameArray
  }, null, 8, ["showAll", "data", "editor-id", "prefix"])), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showIcon]]) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ValueListDialog, {
    visible: _ctx.showValueListDialog,
    "onUpdate:visible": _cache[15] || (_cache[15] = $event => _ctx.showValueListDialog = $event),
    value: _ctx.itemValue.valueList,
    "onUpdate:value": _cache[16] || (_cache[16] = $event => _ctx.itemValue.valueList = $event)
  }, null, 8, ["visible", "value"])], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.isShow]]);
}
// CONCATENATED MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/SchemaItem/index.vue?vue&type=template&id=f6b1d862&scoped=true

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
var es_array_push = __webpack_require__("14d9");

// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/utils/const.js
var utils_const = __webpack_require__("cff1");

// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/DefaultValue/index.vue + 4 modules
var DefaultValue = __webpack_require__("3eba");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/packages/JsonSchemaEditor/components/Schema/components/DropPlus/index.vue?vue&type=template&id=1ba94d7e

function DropPlusvue_type_template_id_1ba94d7e_render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_PlusSquareOutlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("PlusSquareOutlined");
  const _component_a_button = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-button");
  const _component_a_menu_item = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-menu-item");
  const _component_a_menu = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-menu");
  const _component_a_dropdown = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-dropdown");
  const _component_a_tooltip = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-tooltip");
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_tooltip, {
    placement: "left",
    title: "添加兄弟/子节点"
  }, {
    default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_dropdown, {
      trigger: "click",
      placement: "bottom"
    }, {
      overlay: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_menu, null, {
        default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_menu_item, null, {
          default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
            onClick: _cache[0] || (_cache[0] = $event => $setup.addFieldAction(false))
          }, "兄弟节点")]),
          _: 1
        }), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_menu_item, null, {
          default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", {
            onClick: _cache[1] || (_cache[1] = $event => $setup.addFieldAction(true))
          }, "子节点")]),
          _: 1
        })]),
        _: 1
      })]),
      default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_a_button, {
        type: "link"
      }, {
        icon: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_PlusSquareOutlined)]),
        _: 1
      })]),
      _: 1
    })]),
    _: 1
  });
}
// CONCATENATED MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/DropPlus/index.vue?vue&type=template&id=1ba94d7e

// EXTERNAL MODULE: ./node_modules/@ant-design/icons-vue/es/icons/PlusSquareOutlined.js + 1 modules
var PlusSquareOutlined = __webpack_require__("ff4a");

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/packages/JsonSchemaEditor/components/Schema/components/DropPlus/index.vue?vue&type=script&lang=js

/* harmony default export */ var DropPlusvue_type_script_lang_js = ({
  name: 'index',
  components: {
    PlusSquareOutlined: PlusSquareOutlined["a" /* default */]
  },
  props: {
    prefix: {
      type: Array,
      default: () => []
    },
    name: {
      type: String,
      default: ''
    }
  },
  setup(props, {
    emit
  }) {
    const addFieldAction = isChild => {
      emit('add-field', isChild);
    };
    return {
      addFieldAction
    };
  }
});
// CONCATENATED MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/DropPlus/index.vue?vue&type=script&lang=js
 
// EXTERNAL MODULE: ./node_modules/vue-loader-v16/dist/exportHelper.js
var exportHelper = __webpack_require__("6b0d");
var exportHelper_default = /*#__PURE__*/__webpack_require__.n(exportHelper);

// CONCATENATED MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/DropPlus/index.vue





const __exports__ = /*#__PURE__*/exportHelper_default()(DropPlusvue_type_script_lang_js, [['render',DropPlusvue_type_template_id_1ba94d7e_render]])

/* harmony default export */ var DropPlus = (__exports__);
// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/SchemaArray/index.vue + 4 modules
var SchemaArray = __webpack_require__("c1cb");

// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/SchemaObject/index.vue + 4 modules
var SchemaObject = __webpack_require__("c2ce");

// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/components/ValueListDialog/index.vue + 4 modules
var ValueListDialog = __webpack_require__("185a");

// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/InputView/index.vue + 4 modules
var InputView = __webpack_require__("3a90");

// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/utils/tools.js
var tools = __webpack_require__("34a3");

// EXTERNAL MODULE: ./node_modules/@ant-design/icons-vue/es/icons/CaretDownOutlined.js + 1 modules
var CaretDownOutlined = __webpack_require__("3585");

// EXTERNAL MODULE: ./node_modules/@ant-design/icons-vue/es/icons/CaretRightOutlined.js + 1 modules
var CaretRightOutlined = __webpack_require__("b527");

// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/MinusSquareOutlined.js
// This icon file is generated automatically.
var MinusSquareOutlined_MinusSquareOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { "tag": "path", "attrs": { "d": "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, "name": "minus-square", "theme": "outlined" };
/* harmony default export */ var asn_MinusSquareOutlined = (MinusSquareOutlined_MinusSquareOutlined);

// EXTERNAL MODULE: ./node_modules/@ant-design/icons-vue/es/components/AntdIcon.js + 4 modules
var AntdIcon = __webpack_require__("b3f0");

// CONCATENATED MODULE: ./node_modules/@ant-design/icons-vue/es/icons/MinusSquareOutlined.js


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var icons_MinusSquareOutlined_MinusSquareOutlined = function MinusSquareOutlined(props, context) {
  var p = _objectSpread({}, props, context.attrs);

  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(AntdIcon["a" /* default */], _objectSpread({}, p, {
    "icon": asn_MinusSquareOutlined
  }), null);
};

icons_MinusSquareOutlined_MinusSquareOutlined.displayName = 'MinusSquareOutlined';
icons_MinusSquareOutlined_MinusSquareOutlined.inheritAttrs = false;
/* harmony default export */ var icons_MinusSquareOutlined = (icons_MinusSquareOutlined_MinusSquareOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons-vue/es/icons/EditOutlined.js + 1 modules
var EditOutlined = __webpack_require__("ba98");

// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
var lodash = __webpack_require__("2ef0");

// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 75 modules
var message = __webpack_require__("f64c");

// EXTERNAL MODULE: ./node_modules/vuex/dist/vuex.esm-browser.js + 3 modules
var vuex_esm_browser = __webpack_require__("5502");

// CONCATENATED MODULE: ./src/store/userMapper.js



// type mapFunctionType = typeof mapState | typeof mapGetters

const userMapper = (mapper, mapFn) => {
  const store = Object(vuex_esm_browser["c" /* useStore */])();
  const storeStateFns = mapFn(mapper);
  const storeState = {};
  Object.keys(storeStateFns).forEach(keyFn => {
    const fn = storeStateFns[keyFn].bind({
      $store: store
    });
    storeState[keyFn] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(fn);
  });
  return storeState;
};
const userMapState = (moduleName, mapper) => {
  let mapperFn = vuex_esm_browser["b" /* mapState */];
  let params = null;
  if (typeof moduleName === 'string' && moduleName.length > 0) {
    mapperFn = Object(vuex_esm_browser["a" /* createNamespacedHelpers */])(moduleName).mapState;
    params = mapper;
  } else {
    params = moduleName;
  }
  return userMapper(params, mapperFn);
};

// export const useGetters = (moduleName: string | null, mapper: Array<string>) => {
//   let mapperFn = mapGetters
//   if (typeof moduleName === 'string' && moduleName.length > 0) {
//     mapperFn = createNamespacedHelpers(moduleName).mapGetters
//   } else {
//     mapper = moduleName
//   }
//   return userMapper(mapper, mapperFn)
//   // return userMapper(mapper, mapGetters)
// }
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/packages/JsonSchemaEditor/components/Schema/components/SchemaItem/index.vue?vue&type=script&lang=js















/* harmony default export */ var SchemaItemvue_type_script_lang_js = ({
  name: 'SchemaItem',
  components: {
    DefaultValue: DefaultValue["a" /* default */],
    InputView: InputView["a" /* default */],
    DropPlus: DropPlus,
    'schema-array': SchemaArray["a" /* default */],
    'schema-object': SchemaObject["a" /* default */],
    ValueListDialog: ValueListDialog["a" /* default */],
    CaretDownOutlined: CaretDownOutlined["a" /* default */],
    CaretRightOutlined: CaretRightOutlined["a" /* default */],
    PlusSquareOutlined: PlusSquareOutlined["a" /* default */],
    MinusSquareOutlined: icons_MinusSquareOutlined,
    EditOutlined: EditOutlined["a" /* default */]
  },
  props: {
    showAll: {
      type: Boolean,
      default: true
    },
    editorId: {
      type: String,
      default: 'editor_id'
    },
    name: {
      type: String,
      default: ''
    },
    prefix: {
      type: Array,
      default: () => []
    },
    data: {
      type: Object,
      default: () => {}
    }
  },
  emits: ['lock', 'unlock', 'updateName', 'delete'],
  setup(props, {
    emit
  }) {
    var _props$data$required;
    const store = Object(vuex_esm_browser["c" /* useStore */])();
    const defaultValueRef = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null);
    const schemaObjRef = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null);
    const state = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
      isError: false,
      isShow: true,
      SCHEMA_FORMAT: utils_const["c" /* SCHEMA_FORMAT */],
      SCHEMA_TYPE: utils_const["d" /* SCHEMA_TYPE */],
      showIcon: true,
      tagPaddingLeftStyle: {},
      itemValue: {},
      paramsName: props.name,
      isChecked: ((_props$data$required = props.data.required) === null || _props$data$required === void 0 ? void 0 : _props$data$required.includes(props.name)) || false,
      showValueListDialog: false
    });
    const {
      allRequiredMap
    } = userMapState('jsonSchemaStore', ['allRequiredMap']);
    const isAllRequired = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => allRequiredMap.value ? allRequiredMap.value[props.editorId] : false);
    const nameSpanNum = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => props.showAll ? 4 : 8);
    const actionSpanNum = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => props.showAll ? 2 : 4);
    const spanNum = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => props.showAll ? 2 : 4);
    const paramKeys = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => props.data.properties ? Object.keys(props.data.properties) : []);
    const prefixArray = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => [...props.prefix, props.name]);
    const nameArray = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => [...prefixArray.value, 'properties']);
    const formatDisable = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => !['string', 'number', 'integer'].includes(state.itemValue.type));
    const lengthDisable = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => state.itemValue.type !== 'string');
    const numberDisable = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => !['number', 'integer'].includes(state.itemValue.type));
    const valueListDisable = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => !['string', 'number', 'integer'].includes(state.itemValue.type));
    const defaultValueDisable = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(() => ['object', 'array'].includes(state.itemValue.type));
    Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(() => isAllRequired.value, value => {
      state.isChecked = value;
      handleEnableRequire();
    });
    const init = () => {
      state.itemValue = props.data.properties[props.name];
      const length = props.prefix.filter(name => name !== 'properties').length;
      state.tagPaddingLeftStyle = {
        paddingLeft: `${10 * (length + 1)}px`
      };
    };
    init();

    //改变名称
    const handleChangeName = e => {
      var _props$data$required2;
      let {
        value
      } = e.target;
      if (value.trim() === props.name) return;
      const reg = /^[a-zA-Z][a-zA-Z0-9_]*$/g;
      // state.isError = !reg.test(value)
      if (!reg.test(value)) {
        state.paramsName = props.name;
        return message["a" /* default */].warning('参数名称由字符、数字、下划线组成，且必须以字母开头！');
      }
      if (paramKeys.value.includes(value)) {
        state.paramsName = props.name;
        return message["a" /* default */].warning('参数名称已存在！');
      }
      emit('lock');
      const oldName = props.name;
      const copy = Object(lodash["cloneDeep"])(state.itemValue);
      try {
        // delete props.data.properties[props.name]
        Object(lodash["unset"])(props.data.properties, [props.name]);
        props.data.properties[value] = copy;
      } catch (e) {
        emit('unlock');
      }
      emit('updateName', {
        oldName,
        newName: value
      });
      const _index = (_props$data$required2 = props.data.required) === null || _props$data$required2 === void 0 ? void 0 : _props$data$required2.findIndex(item => item === props.name);
      if (_index >= 0) {
        props.data.required.splice(_index, 1, value);
      }
    };

    //  是否必须
    const handleEnableRequire = () => {
      var _props$data$required3;
      if (!props.data.required) props.data.required = [];
      const _index = (_props$data$required3 = props.data.required) === null || _props$data$required3 === void 0 ? void 0 : _props$data$required3.findIndex(item => item === props.name);
      if (state.isChecked && _index < 0) {
        props.data.required.push(props.name);
      }
      if (!state.isChecked && _index >= 0) {
        props.data.required.splice(_index, 1);
      }
    };
    //  切换参数类型
    const handleChangeType = value => {
      var _defaultValueRef$valu;
      props.data.properties[props.name] = Object(lodash["cloneDeep"])(utils_const["f" /* defaultSchema */][value]);
      state.itemValue = props.data.properties[props.name];
      (_defaultValueRef$valu = defaultValueRef.value) === null || _defaultValueRef$valu === void 0 ? void 0 : _defaultValueRef$valu.clearInputValue();
    };
    const handleAdd = isChild => {
      const newName = 'field_' + Object(tools["e" /* uuid */])();
      if (isChild) {
        var _schemaObjRef$value;
        state.itemValue.properties[newName] = Object(lodash["cloneDeep"])(utils_const["f" /* defaultSchema */].string);
        (_schemaObjRef$value = schemaObjRef.value) === null || _schemaObjRef$value === void 0 ? void 0 : _schemaObjRef$value.handleAdd({
          newName
        });
      } else {
        props.data.properties[newName] = Object(lodash["cloneDeep"])(utils_const["f" /* defaultSchema */].string);
        emit('add', {
          prevName: state.paramsName,
          newName
        });
      }
      store.commit('jsonSchemaStore/CALL_SCROLL_FUNCTION', props.editorId);
    };
    const handleDelete = () => {
      var _props$data$required4;
      // omit(props.data, ['properties', props.name])
      // delete props.data.properties[props.name]
      state.isShow = false;
      Object(lodash["unset"])(props.data.properties, [props.name]);
      emit('delete', props.name);
      if ((_props$data$required4 = props.data.required) !== null && _props$data$required4 !== void 0 && _props$data$required4.length) {
        var _props$data$required5;
        const _index = (_props$data$required5 = props.data.required) === null || _props$data$required5 === void 0 ? void 0 : _props$data$required5.findIndex(item => item === props.name);
        props.data.required.splice(_index, 1);
      }
    };

    //校验大小值
    const checkMin = isLength => {
      const {
        maxLength,
        minLength,
        max,
        min
      } = state.itemValue;
      if (isLength) {
        if (!maxLength || maxLength < minLength) {
          state.itemValue.maxLength = minLength;
        }
      } else {
        if (!max || max < min) {
          state.itemValue.max = min;
        }
      }
    };

    //显示 值列表
    const showValueList = () => {
      if (valueListDisable.value) return;
      state.showValueListDialog = true;
    };
    const handleClickIcon = () => {
      state.showIcon = !state.showIcon;
    };
    Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onMounted"])(() => {});
    Object(external_commonjs_vue_commonjs2_vue_root_Vue_["onUnmounted"])(() => {});
    return {
      defaultValueRef,
      schemaObjRef,
      ...Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(state),
      nameSpanNum,
      actionSpanNum,
      spanNum,
      handleClickIcon,
      handleChangeName,
      handleEnableRequire,
      handleChangeType,
      checkMin,
      showValueList,
      handleDelete,
      handleAdd,
      nameArray,
      prefixArray,
      formatDisable,
      lengthDisable,
      numberDisable,
      valueListDisable,
      defaultValueDisable
    };
  }
});
// CONCATENATED MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/SchemaItem/index.vue?vue&type=script&lang=js
 
// EXTERNAL MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/SchemaItem/index.vue?vue&type=style&index=0&id=f6b1d862&scoped=true&lang=less
var SchemaItemvue_type_style_index_0_id_f6b1d862_scoped_true_lang_less = __webpack_require__("85bb");

// CONCATENATED MODULE: ./src/packages/JsonSchemaEditor/components/Schema/components/SchemaItem/index.vue







const SchemaItem_exports_ = /*#__PURE__*/exportHelper_default()(SchemaItemvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-f6b1d862"]])

/* harmony default export */ var SchemaItem = __webpack_exports__["default"] = (SchemaItem_exports_);

/***/ }),

/***/ "c91c":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("0e2b");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("27ff7b5d", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

}]);