import snippets from './snippets'; import { uuid } from '../_utils/utils'; import { RequiredSetter } from '../_setters'; import { isPageDesigner } from '../_utils/utils'; import { version } from '../../package.json'; export default { snippets: isPageDesigner() ? snippets : null, // 列表页显示组件 group: '基础组件', componentName: 'RsContainer', title: '容器', category: '容器元素', priority: 20, // 用于描述组件在统一category中的排序 npm: { package: 'components-page', version, exportName: 'RsContainer', main: 'src\\index.tsx', destructuring: true, subName: '', }, props: [ { title: { label: { type: 'i18n', zh_CN: '高级', en_US: 'Advanced', }, tip: { type: 'i18n', zh_CN: '属性: 无 | 说明: 高级设置分组', en_US: 'prop: none | description: Advanced settings group', }, }, display: 'block', type: 'group', items: [ { name: 'rs_id', title: { label: { type: 'i18n', zh_CN: '组件ID', en_US: 'rs_id', }, tip: { type: 'i18n', zh_CN: '属性: rs_id | 说明: id | 与数据库对应字段名', en_US: 'prop: rs_id | description: id | Corresponding field name in the database', }, }, propType: 'string', setter: { componentName: RequiredSetter, }, defaultValue: `container_${uuid()}`, }, ], }, ], configure: { component: { // 是否是容器组件,如果是容器组件,别的组件可以放置内容 isContainer: true, }, supports: { style: true, condition: true, events: [], }, }, };