"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _common = require("./common");
var initialValues = {
  title: '页面标题',
  icon: 'success-fill',
  iconColor: 'green',
  goback: true,
  breadcrumb: [{
    text: '首页',
    link: '#'
  }, {
    text: '二级标题',
    link: '#'
  }, {
    text: '当前'
  }],
  tags: [{
    type: 'primary',
    color: 'green',
    text: '标签一'
  }, {
    type: 'normal',
    color: 'red',
    text: '标签二'
  }],
  extra: [{
    children: '帮助文档',
    type: 'normal',
    icon: 'text-line',
    config: {
      type: 'link',
      to: '/'
    }
  }],
  operation: [{
    children: '普通按钮',
    type: 'normal',
    icon: 'text-line',
    config: {
      type: 'link',
      to: '/'
    }
  }, {
    children: '主要按钮',
    type: 'primary',
    icon: 'text-line',
    config: {
      type: 'link',
      to: '/'
    }
  }],
  image: 'https://img.alicdn.com/imgextra/i2/O1CN01Q9ACuA1kUh1x7ukgU_!!6000000004687-2-tps-552-354.png'
};
var schema = [{
  component: 'FormTab',
  children: [{
    title: '标题',
    children: [{
      component: 'FormCollapse',
      children: [{
        title: '基本信息',
        children: [{
          name: 'title',
          title: '页面标题',
          component: 'Input'
        }, {
          name: 'description',
          title: '页面描述',
          component: 'Input'
        }, {
          name: 'goback',
          title: '有返回按钮',
          component: 'Switch'
        }]
      }, {
        title: '图标',
        children: [{
          name: 'icon',
          title: 'Icon图标',
          component: 'IconPicker'
        }, {
          name: 'iconColor',
          title: '图标颜色',
          component: 'ColorPicker'
        }, {
          name: 'iconBackgroundColor',
          title: '图标背景颜色',
          component: 'ColorPicker'
        }, {
          name: 'iconBackgroundType',
          title: '图标背景形状',
          component: 'Radio',
          dataSource: [{
            label: '方形',
            value: 'square'
          }, {
            label: '圆形',
            value: 'circle'
          }],
          default: 'square'
        }]
      }, {
        title: '标签',
        children: [{
          name: 'tags',
          component: 'ArrayTable',
          items: {
            type: 'object',
            children: [{
              name: 'text',
              title: '名称',
              component: 'Input'
            }, {
              name: 'type',
              title: '类型',
              component: 'Select',
              dataSource: [{
                label: '普通',
                value: 'normal'
              }, {
                label: '主要',
                value: 'primary'
              }]
            }, {
              name: 'color',
              title: '颜色',
              component: 'Input'
            }, {
              title: '操作',
              component: 'ArrayTable.Remove',
              decoratorProps: {
                fixed: 'right',
                width: 40
              },
              formItem: null
            }]
          },
          children: [{
            title: '添加标签'
          }]
        }]
      }]
    }]
  }, {
    title: '面包屑',
    children: [{
      component: 'FormCollapse',
      children: [{
        title: '面包屑',
        children: [{
          name: 'breadcrumb',
          component: 'ArrayTable',
          items: {
            type: 'object',
            children: [{
              name: 'text',
              title: '名称',
              component: 'Input'
            }, {
              name: 'link',
              title: '链接',
              component: 'Input'
            }, {
              title: '操作',
              component: 'ArrayTable.Remove',
              decoratorProps: {
                fixed: 'right',
                width: 40
              },
              formItem: null
            }]
          },
          children: [{
            title: '添加面包屑'
          }]
        }]
      }]
    }]
  }, (0, _common.actionGroup)('额外信息', 'extra'), (0, _common.actionGroup)('操作区域', 'operation')]
}];
var configurator = {
  schema: schema,
  initialValues: initialValues
};
var _default = configurator;
exports.default = _default;