"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Page = require("./Page.vue.js");
const PageGoBack = require("./PageGoBack.vue.js");
const Request = require("./Request.vue.js");
const FormSubmit = require("./FormSubmit.vue2.js");
const FormSetValue = require("./FormSetValue.vue2.js");
const Message = require("./Message.vue.js");
const Confirm = require("./Confirm.vue.js");
const TableRefresh = require("./TableRefresh.vue2.js");
const TableChildRefresh = require("./TableChildRefresh.vue2.js");
const TableRowDelete = require("./TableRowDelete.vue2.js");
const Dialog = require("./Dialog.vue.js");
const Upload = require("./Upload.vue2.js");
const TableChildSelection = require("./TableChildSelection.vue2.js");
const RiskSch = require("./RiskSch.vue.js");
const menuData = [
  {
    index: "page",
    label: "页面",
    items: [
      {
        index: "page-jump",
        label: "跳转页面",
        desc: "跳转到指定页面",
        component: Page.default,
        default: {
          transitionType: "page",
          routePath: "",
          routeParams: []
        }
      },
      { index: "page-refresh", label: "刷新页面", desc: "刷新当前页面" },
      {
        index: "page-go-back",
        label: "页面返回",
        desc: "返回之前访问的页面",
        component: PageGoBack.default,
        default: {
          backLevel: 1,
          showConfirm: false,
          confirmTitle: "确认返回",
          confirmMessage: "确定要返回到上一页吗？",
          noHistoryAction: "none"
        }
      }
    ]
  },
  {
    index: "ui",
    label: "交互",
    items: [
      {
        index: "ui-dialog",
        label: "打开弹层",
        desc: "打开指定的弹层",
        component: Dialog.default,
        default: {
          dialogSource: "global",
          selectionMode: "none",
          fieldMapping: []
        }
      },
      {
        index: "ui-message",
        label: "显示提示信息",
        desc: "显示消息提示",
        component: Message.default,
        default: {
          messageType: "success",
          message: ""
        }
      },
      {
        index: "ui-confirm",
        label: "确认弹窗",
        desc: "显示确认对话框",
        component: Confirm.default,
        default: {
          messageType: "warning",
          title: "确认操作",
          message: "此操作将永久删除该记录, 是否继续?",
          confirmText: "确定",
          cancelText: "取消",
          showCancel: true,
          confirmAction: "continue"
        }
      },
      {
        index: "ui-upload",
        label: "文件上传",
        desc: "上传文件到服务器",
        component: Upload.default,
        default: {
          acceptType: [
            "doc",
            "xls",
            "ppt",
            "pdf",
            "text",
            "image",
            "video",
            "audio",
            "zip"
          ],
          maxSize: "0",
          multipleUpload: false
        }
      },
      {
        index: "riskSchDialog",
        label: "风险拦截校验",
        desc: "弹出风险拦截提示信息",
        component: RiskSch.default,
        default: {
          formValidate: true,
          schName: [],
          schNo: "",
          params: []
        }
      }
    ]
  },
  {
    index: "form",
    label: "表单",
    items: [
      {
        index: "form-setValue",
        label: "请求表单赋值",
        desc: "通过请求设置表单字段的值",
        component: FormSetValue.default,
        default: { fieldMapping: [] }
      },
      {
        index: "form-submit",
        label: "请求表单提交",
        desc: "提交表单数据到后台服务",
        component: FormSubmit.default,
        default: { formValidate: true, fieldMapping: [], extraParams: [] }
      }
    ]
  },
  {
    index: "table",
    label: "列表",
    items: [
      {
        index: "table-refresh",
        label: "列表数据刷新",
        desc: "刷新表格的数据列表",
        component: TableRefresh.default,
        default: {
          resetSort: false,
          resetFilter: false,
          resetPagination: false
        }
      },
      {
        index: "table-row-delete",
        label: "行数据删除",
        desc: "删除列表的行数据",
        component: TableRowDelete.default,
        default: {
          showConfirmDeleteMessage: true,
          resetTableAfterDelete: true
        }
      },
      {
        index: "table-child-refresh",
        label: "子列表数据刷新",
        desc: "刷新子列表的数据列表",
        component: TableChildRefresh.default,
        default: {
          resetSort: false,
          resetFilter: false,
          resetPagination: false
        }
      },
      {
        index: "table-child-selection",
        label: "子列表勾选数据赋值",
        desc: "将子列表勾选的数据赋值到主表单",
        component: TableChildSelection.default,
        default: {
          subTableSelectionFieldMapping: []
        }
      }
    ]
  },
  {
    index: "request",
    label: "请求",
    items: [
      {
        index: "request-send",
        label: "发送请求",
        desc: "通过数据源发送API请求",
        component: Request.default,
        default: { showSuccessMessage: false }
      }
    ]
  },
  {
    index: "storage",
    label: "存储",
    items: [
      {
        index: "storage-set",
        label: "存入本地 / 会话缓存",
        desc: "将数据保存到本地存储或会话存储"
      },
      {
        index: "storage-get",
        label: "从缓存中读取数据",
        desc: "从本地存储或会话存储中获取数据"
      },
      {
        index: "storage-remove",
        label: "删除缓存数据",
        desc: "从本地存储或会话存储中删除指定数据"
      }
    ]
  }
];
exports.default = menuData;
