export default {
  type: 'page',
  title: '表单页面',
  body: {
    type: 'form',
    mode: 'horizontal',
    title: '',
    api: '/api/mock2/form/saveForm',
    controls: [
      {
        label: 'Name',
        type: 'text',
        name: 'name'
      },

      {
        label: 'Email',
        type: 'email',
        name: 'email'
      },

      {
        label: 'A',
        type: 'text',
        name: 'a',
        requiredOn: '!this.b && !this.a'
      },

      {
        label: 'B',
        type: 'text',
        name: 'b',
        requiredOn: '!this.b && !this.a'
      }
    ]
  }
};
