"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
// eslint-disable-next-line @typescript-eslint/no-unused-vars

var TabbarMeta = {
  componentName: 'Tabbar',
  title: '导航栏',
  docUrl: '',
  devMode: 'proCode',
  group: '基础组件',
  category: '导航类',
  npm: {
    "package": 'kernelsoft-lowcode-material',
    version: '0.1.0',
    exportName: 'Tabbar',
    main: 'src/index.tsx',
    destructuring: true,
    subName: ''
  },
  configure: {
    props: [{
      title: {
        label: {
          type: 'i18n',
          'en-US': 'bottom',
          'zh-CN': '固定到底部'
        }
      },
      name: 'bottom',
      setter: {
        componentName: 'BoolSetter',
        isRequired: true,
        initialValue: false
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'unactiveColor',
          'zh-CN': '未激活颜色'
        }
      },
      name: 'unactiveColor',
      setter: {
        componentName: 'ColorSetter',
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'activeColor',
          'zh-CN': '激活颜色'
        }
      },
      name: 'activeColor',
      setter: {
        componentName: 'ColorSetter',
        isRequired: true
      }
    }, {
      name: 'tabs',
      title: '标签项',
      setter: {
        componentName: 'MixedSetter',
        props: {
          setters: ['ExpressionSetter', {
            componentName: 'ArraySetter',
            props: {
              itemSetter: {
                componentName: 'ObjectSetter',
                props: {
                  config: {
                    items: [{
                      title: {
                        label: {
                          type: 'i18n',
                          'en-US': 'title',
                          'zh-CN': '标题'
                        }
                      },
                      name: 'tabTitle',
                      setter: {
                        componentName: 'StringSetter',
                        isRequired: true,
                        initialValue: '标题'
                      }
                    }, {
                      title: {
                        label: {
                          type: 'i18n',
                          'en-US': 'icon',
                          'zh-CN': '图标'
                        }
                      },
                      name: 'icon',
                      setter: {
                        componentName: 'IconSetter',
                        isRequired: true,
                        initialValue: 'add'
                      }
                    }, {
                      title: {
                        label: {
                          type: 'i18n',
                          'en-US': 'href',
                          'zh-CN': '跳转链接'
                        }
                      },
                      name: 'href',
                      setter: {
                        componentName: 'StringSetter',
                        isRequired: false
                      }
                    }, {
                      title: {
                        label: {
                          type: 'i18n',
                          'en-US': 'num',
                          'zh-CN': '数字角标'
                        }
                      },
                      name: 'num',
                      setter: {
                        componentName: 'NumberSetter',
                        isRequired: false
                      }
                    }, {
                      title: {
                        label: {
                          type: 'i18n',
                          'en-US': 'dot',
                          'zh-CN': '小圆点'
                        }
                      },
                      name: 'dot',
                      setter: {
                        componentName: 'BoolSetter',
                        isRequired: false
                      }
                    }]
                  }
                },
                initialValue: {
                  title: 'Title',
                  dataKey: 'Key',
                  dataType: 'text',
                  editType: 'text',
                  width: 200,
                  lock: ''
                }
              }
            }
          }]
        }
      }
    }],
    supports: {},
    component: {}
  }
};
// const snippets: IPublicTypeSnippet[] = [
//   {
//     title: '导航栏',
//     // screenshot: require('../icons/tabbar.svg'),
//     schema: {
//       componentName: 'Tabbar',
//       props: {
//         bottom: true,
//         tabs: [
//           {
//             tabTitle: '首页',
//             icon: 'home',
//           },
//           {
//             tabTitle: '分类',
//             icon: 'category',
//           },
//           {
//             tabTitle: '发现',
//             icon: 'find',
//           },
//           {
//             tabTitle: '购物车',
//             icon: 'cart',
//           },
//         ],
//       },
//     },
//   },
// ];
var _default = exports["default"] = (0, _extends2["default"])({}, TabbarMeta);