import loopData from 'lowcode/_com-props/loopData';
import { t } from '../../src/locale';
import snippets from './snippets';

export default {
  componentName: 'Form.List',
  "group":t('formList.key_4BStbIOrN0G5'),
  title: t('formList.key_G6kAPlgyMfLP'),
  category: t('formList.key_2bVDI4Sn5kNY'),
  snippets,
  props: [
    loopData,
    {
      name: 'name',
      title: { label: t('formList.key_gNzsrplK1Gy1'), tip: t('formList.key_qQgIeQ6Ow9sS') },
      isRequired: true,
      propType: 'string',
    },
    {
      name: 'initialValue',
      title: {
        label: t('formList.key_xMekbQJwvjsl'),
        tip: t('formList.key_x4uTLKKFmDrZ'),
      },
      propType: 'object',
      setter: 'JsonSetter',
    },
  ],
  configure: {
    component: {
      isContainer: true,
    },
    supports: { className: true, style: true },
  },
};
