'use strict';

require('../../../../utils/index.js');
var runtime = require('../../../../utils/props/runtime.js');

"use strict";
const jsonTableColumns = [
  {
    title: "\u5B57\u6BB5\u540D",
    key: "name",
    dataIndex: "name",
    span: 6
  },
  {
    title: "\u7C7B\u578B",
    key: "type",
    dataIndex: "type",
    span: 4
  },
  {
    title: "Mock",
    key: "mock",
    dataIndex: "mock",
    span: 4
  },
  {
    title: "\u4E2D\u6587\u540D",
    key: "chineseName",
    dataIndex: "chineseName",
    span: 4
  },
  {
    title: "\u8BF4\u660E",
    key: "description",
    dataIndex: "description",
    span: 6
  }
];
const jsonXmlOptions = [
  {
    value: "json",
    payload: {
      title: "\u53C2\u6570\u503C"
    }
  },
  {
    value: "data",
    payload: {
      title: "\u6570\u636E\u7ED3\u6784"
    }
  }
];
const DEFAULT_TYPE = "data";
const customOverlay = [
  {
    label: "\u4EC5\u751F\u6210\u5B57\u6BB5\u540D"
  },
  {
    label: "\u4F18\u5148\u4F7F\u7528\u5B57\u6BB5\u9ED8\u8BA4\u503C"
  },
  {
    label: "\u4F18\u5148\u4F7F\u7528\u5B57\u6BB5\u793A\u4F8B\u503C"
  }
];
const jsonXmlTypeOptions = [
  {
    label: "string",
    value: "string"
  },
  {
    label: "interger",
    value: "interger"
  },
  {
    label: "boolean",
    value: "boolean"
  },
  {
    label: "array",
    value: "array"
  },
  {
    label: "object",
    value: "object"
  },
  {
    label: "number",
    value: "number"
  },
  {
    label: "null",
    value: "null"
  },
  {
    label: "any",
    value: "any"
  },
  {
    label: "\u81EA\u5B9A\u4E49",
    value: "other"
  }
];
const jsonXmlProps = runtime.buildProps({
  value: {
    type: Object,
    default: () => {
    }
  },
  type: {
    type: runtime.definePropType(String),
    default: "json"
  }
});
const jsonXmlEmits = {
  "update:value": (value) => !!value
};
const jsonXmlTableProps = runtime.buildProps({
  dataSource: {
    type: runtime.definePropType(Array),
    default: () => []
  },
  type: {
    type: runtime.definePropType(String)
  }
});
const jsonXmlTableEmits = {
  change: (value) => !!value
};
const jsonXmlTableRowProps = runtime.buildProps({
  data: {
    type: runtime.definePropType(Object),
    default: () => {
    }
  },
  list: {
    type: runtime.definePropType(Array),
    default: () => []
  },
  parentData: {
    type: runtime.definePropType(Object),
    default: () => null
  },
  layer: {
    type: Number,
    default: 0
  },
  treeKey: {
    type: String,
    default: ""
  }
});
const jsonXmlTableRowEmits = {
  change: (val) => !!val
};

exports.DEFAULT_TYPE = DEFAULT_TYPE;
exports.customOverlay = customOverlay;
exports.jsonTableColumns = jsonTableColumns;
exports.jsonXmlEmits = jsonXmlEmits;
exports.jsonXmlOptions = jsonXmlOptions;
exports.jsonXmlProps = jsonXmlProps;
exports.jsonXmlTableEmits = jsonXmlTableEmits;
exports.jsonXmlTableProps = jsonXmlTableProps;
exports.jsonXmlTableRowEmits = jsonXmlTableRowEmits;
exports.jsonXmlTableRowProps = jsonXmlTableRowProps;
exports.jsonXmlTypeOptions = jsonXmlTypeOptions;
//# sourceMappingURL=json-xml.js.map
