"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 PositionMeta = {
  group: '低代码组件',
  componentName: 'Position',
  title: 'Position',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  category: '信息展示',
  npm: {
    "package": '@dckj-npm/dc-material',
    version: '0.1.7',
    exportName: 'Position',
    main: 'src\\index.tsx',
    destructuring: true,
    subName: ''
  },
  configure: {
    props: [{
      title: {
        label: {
          type: 'i18n',
          'en-US': 'itemArray',
          'zh-CN': '数据源绑定'
        }
      },
      name: 'itemArray',
      setter: {
        componentName: 'SetterFormVariable',
        props: {
          attributes: [{
            label: '经纬度',
            value: 'itemArray',
            children: [{
              label: '城市',
              value: 'address'
            }, {
              label: '纬度',
              value: 'lat'
            }, {
              label: '经度',
              value: 'lng'
            }]
          }]
        }
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'defaultLocation',
          'zh-CN': '默认地址'
        }
      },
      name: 'defaultLocation',
      setter: {
        componentName: 'ObjectSetter',
        props: {
          config: {
            items: [{
              title: {
                label: {
                  type: 'i18n',
                  'en-US': 'lat',
                  'zh-CN': 'lat'
                }
              },
              name: 'lat',
              setter: {
                componentName: 'StringSetter',
                isRequired: true,
                initialValue: ''
              }
            }, {
              title: {
                label: {
                  type: 'i18n',
                  'en-US': 'lng',
                  'zh-CN': 'lng'
                }
              },
              name: 'lng',
              setter: {
                componentName: 'StringSetter',
                isRequired: true,
                initialValue: ''
              }
            }, {
              title: {
                label: {
                  type: 'i18n',
                  'en-US': 'address',
                  'zh-CN': 'address'
                }
              },
              name: 'address',
              setter: {
                componentName: 'StringSetter',
                isRequired: true,
                initialValue: ''
              }
            }],
            extraSetter: {
              componentName: 'MixedSetter',
              isRequired: false,
              props: {}
            }
          }
        },
        isRequired: true
      }
    }],
    supports: {
      style: true
    },
    component: {
      disableBehaviors: ['copy']
    }
  }
};
var snippets = [{
  title: '定位',
  screenshot: '',
  schema: {
    componentName: 'Position',
    props: {
      defaultLocation: {
        lng: '123',
        lat: '123',
        address: '嘉兴市'
      },
      itemArray: [{
        lng: '123',
        lat: '123',
        address: '嘉兴市'
      }, {
        lng: '123',
        lat: '123',
        address: '杭州市'
      }, {
        lng: '123',
        lat: '123',
        address: '上海市'
      }]
    }
  }
}];
var _default = exports["default"] = (0, _extends2["default"])({}, PositionMeta, {
  snippets: snippets
});