import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; const RenderViewMeta: IPublicTypeComponentMetadata = { componentName: 'RenderView', title: 'RenderView', docUrl: '', screenshot: '', devMode: 'proCode', npm: { package: 'lc-components-dev', version: '0.1.0', exportName: 'RenderView', main: 'src\\index.tsx', destructuring: true, subName: '', }, configure: { props: [ { title: { label: { type: 'i18n', 'en-US': 'ViewId', 'zh-CN': '视图id', }, tip: 'ViewId | 视图id', }, name: 'ViewId', description: '视图id', setter: { componentName: 'StringSetter', isRequired: true, initialValue: '', }, }, { title: { label: { type: 'i18n', 'en-US': 'onChange', 'zh-CN': '页面被关闭时回调', }, tip: 'onChange | 页面被关闭时回调', }, name: 'onChange', description: '页面被关闭时回调', setter: { componentName: 'FunctionSetter', isRequired: true, }, }, ], supports: { style: true, events: [ { name: 'onChange', propType: 'object', }, { name: 'onGetViewSchema', propType: 'string', template: 'function onGetViewSchema(viewId) { return this.utils.onGetViewSchema(viewId);}', }, ], }, component: {}, }, }; const snippets: IPublicTypeSnippet[] = [ { title: 'RenderView', screenshot: '', schema: { componentName: 'RenderView', props: {}, }, }, ]; export default { ...RenderViewMeta, snippets, };