import snippets from './snippets';

export default {
  snippets,
  componentName: 'PisellContainer',
  title: 'PisellContainer',
  category: '数据展示',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/materials',
    version: '1.0.1',
    exportName: 'PisellContainer',
    main: 'src/index.tsx',
    destructuring: true,
    subName: '',
  },
  props: [
    {
      name: 'renderType',
      title: {
        label: '渲染类型',
        tip: 'renderType | 渲染类型',
      },
      setter: {
        componentName: 'SelectSetter',
        props: {
          options: [
            {
              title: '弹窗',
              value: 'modal',
            },
            {
              title: '抽屉',
              value: 'drawer',
            },
            {
              title: '指定位置',
              value: 'portal',
            },
            {
              title: '当前位置',
              value: '',
            },
          ],
        },
      },
      propType: {
        type: 'oneOf',
        value: ['modal', 'drawer', 'portal', ''],
      },
    },
    {
      name: "props",
      title: {
        label: "组件props",
        tip: "组件props",
      },
      propType: "object",
      setter: "JsonSetter",
    },
  ],
  configure: {
    component: {
      isContainer: true,
      isModal: true,
    },
    supports: { style: true },
  },
};
