1、chatbot组件

```typescript
 <CorsComponent
       app='@weapp/ebdform'
       compName='ChatBotCom'
       ability={'createApp'} //功能类型，详见下面枚举类AbilityEnum 
       isDialog={false}   //非dialog模式调用，通过下面的visible和onCancel外部控制       
       visible={false}
       onCancel={()=>{}
 /> 

export enum AbilityEnum {
  CreateApp = 'createApp',
  CreateForm = 'createForm',
  CreatePage = 'createPage'
}

interface ChatComDialogProps {
  isDialog: boolean;
  visible?: boolean;
  ability: AbilityEnum;
  onCancel?: () => void;
  customBtnRender?: (showFn: Function) => void;
}
```

使用方式一(非dialog模式):

```typescript
 <CorsComponent
       app='@weapp/ebdform'
       compName='ChatBotCom'
       isDialog={false}
       ability={'createPage'}
       appId="XXXX"
 />
```

[图片附件未整合: ../../_assets/855983112548311041/001-fb1e58873d.png]

使用方式二(dialog模式，创建表单)

```typescript
   <CorsComponent
       app='@weapp/ebdform'
       compName='ChatBotCom'
       isDialog
       ability={AbilityEnum.CreateForm}
       visible={visible}
       onCancel={this.onClose}
       appId={appId}
 />
```

[图片附件未整合: ../../_assets/855983112548311041/002-c4250fd4d1.png]
