"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _snippets = _interopRequireDefault(require("./snippets"));
var RowMeta = {
  componentName: 'Row',
  title: 'Row',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  group: '基础组件',
  category: '布局类',
  npm: {
    "package": 'kernelsoft-lowcode-material',
    version: '0.1.1-alpha',
    exportName: 'Row',
    main: 'src/index.tsx',
    destructuring: true,
    subName: ''
  },
  configure: {
    props: [{
      title: {
        label: {
          type: 'i18n',
          'en-US': 'flex layout',
          'zh-CN': 'flex布局'
        }
      },
      name: 'flex',
      setter: {
        componentName: 'BoolSetter'
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'justify',
          'zh-CN': '水平对齐方式'
        }
      },
      name: 'justify',
      setter: {
        componentName: 'RadioGroupSetter',
        props: {
          dataSource: [{
            label: '开始',
            value: 'start'
          }, {
            label: '结束',
            value: 'end'
          }, {
            label: '居中',
            value: 'center'
          }, {
            label: '均匀分布',
            value: 'space-around'
          }, {
            label: '平均分布',
            value: 'space-between'
          }],
          options: [{
            label: '开始',
            value: 'start'
          }, {
            label: '结束',
            value: 'end'
          }, {
            label: '居中',
            value: 'center'
          }, {
            label: '均匀分布',
            value: 'space-around'
          }, {
            label: '平均分布',
            value: 'space-between'
          }]
        },
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'align',
          'zh-CN': '垂直对齐方式'
        }
      },
      name: 'align',
      setter: {
        componentName: 'RadioGroupSetter',
        props: {
          dataSource: [{
            label: 'top',
            value: 'flex-start'
          }, {
            label: 'middle',
            value: 'center'
          }, {
            label: 'bottom',
            value: 'flex-end'
          }],
          options: [{
            label: 'top',
            value: 'flex-start'
          }, {
            label: 'middle',
            value: 'center'
          }, {
            label: 'bottom',
            value: 'flex-end'
          }]
        },
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'wrap',
          'zh-CN': '换行方式'
        }
      },
      name: 'wrap',
      setter: {
        componentName: 'RadioGroupSetter',
        props: {
          dataSource: [{
            label: '不换行',
            value: 'nowrap'
          }, {
            label: '换行',
            value: 'wrap'
          }, {
            label: '反转',
            value: 'reverse'
          }],
          options: [{
            label: '不换行',
            value: 'nowrap'
          }, {
            label: '换行',
            value: 'wrap'
          }, {
            label: '反转',
            value: 'reverse'
          }]
        },
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'gutter',
          'zh-CN': '元素间距'
        }
      },
      name: 'gutter',
      setter: {
        componentName: 'MixedSetter',
        props: {
          setters: [{
            componentName: 'StringSetter',
            isRequired: false,
            initialValue: ''
          }, {
            componentName: 'NumberSetter',
            isRequired: false,
            initialValue: 0
          }]
        },
        isRequired: true
      }
    }],
    supports: {
      style: true
    },
    component: {
      isContainer: true,
      nestingRule: {
        childWhitelist: ['Col']
      }
    }
  }
};
var _default = exports["default"] = (0, _extends2["default"])({}, RowMeta, {
  snippets: _snippets["default"]
});