/**
 * Created by baoyinghai on 7/3/17.
 */
export default {
  DSC: {
    dataSourceA: { c: 2, d: 'd' },
    dataSourceB: [
      { a: '1', b: '2' },
      { a: '1', b: '2' }
    ]
  },
  ART: {
    nodeType: 'CONTAINER',
    name: 'LineLayout',
    props: {
      direction: 'column',
    },
    childrenNode: [
      {
        nodeType: 'COMP',
        name: 'Form',
        sourceFrom: 'dataSourceA', // check not array  绑定多个数据源
        dataSource: {
          first: {
            vType: 'key',
            value: 'dataSourceA.c',
            cType: ''
          },
          second: {
            vType: 'key',
            value: 'dataSourceA.d',
            cType: ''
          }
        }
      },
      {
        nodeType: 'COMP',
        name: 'ButtonBar',
        sourceFrom: 'dataSourceA',
        dataSource: {
          text: {
            vType: 'key',
            value: 'dataSourceA.c'
          }
        }
      },
      {
        nodeType: 'COMP',
        name: 'Table',
        sourceFrom: 'dataSourceA',
        dataSource: {
          text: {
            vType: 'key',
            value: 'dataSourceA.d'
          },
          first: {
            vType: 'key',
            value: 'dataSourceA.c'
          },
          second: {
            vType: 'key',
            value: 'dataSourceA.d'
          }
        }
      },
      {
        nodeType: 'COMP',
        name: 'Label',
        props: {},
      },
      {
        nodeType: 'CONTAINER',
        name: 'LineLayout',
        props: {
          direction: 'row'
        },
        childrenNode: [
          {
            nodeType: 'COMP',
            name: 'Label',
            props: {},
          },
          {
            nodeType: 'COMP',
            name: 'Label',
            props: {},
          },
          {
            nodeType: 'COMP',
            name: 'Label',
            props: {},
          }
        ]
      },
    ]
  }
};
