### **权限集合组件：用于eb后台设置入口；专项权限等**

```typescript
export interface AppPermissionProps extends Attributes {
	appId: string;
	//是否在dialog形式，dialog形式内是右下角按钮批量保存；非dialog形式是onchange实时保存
	inDialog?: boolean;
	//dialog形式中的自定义按钮
	customBtnRender?: (showModalFC: any) => React.ReactNode;
	// 专项才需要传
	terminal?:TerminalEnum
}

<CorsComponent
	weId={`${this.props.weId || ''}_0crvjc`}
	app="@weapp/ebdform"
	compName="AppPermission"
	customBtnRender={this.externalElement }
	appId={appId}
/>
```

Demo

```typescript

class 	Demo extends React.PureComponent<any, any>{

 externalElement = (showModalFC: any) => {
    const { value = {}, } = this.props;
    return (
      <Button inline={false} weId={`${this.props.weId || ''}_1ysot1`} onClick={showModalFC}>
        点击设置权限
      </Button>
    );
  };

return <CorsComponent
	app="@weapp/ebdform"
	compName="AppPermission"
	customBtnRender={this.externalElement }
	appId={appId}
/>

}
```
