Editor没有跟renderAmis里面props同样的context配置么?
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 实现场景:
在renderAmis props的context中写入权限鉴定方法,代码如下:
```
renderAmis(
schema,
{
// props...
locale: curLanguage, // 请参考「多语言」的文档
context: {
hasPermi:(permission: string): boolean =>{
//鉴权代码
}
}
```
#### 存在的问题:
在Editor没有找到context类似的配置方式,不知道怎么可以同样的调用hasPermi进行鉴权。
#### 当前方案:
当前未找到方案
AMIS 及 AMISEditor的版本为最新版本 6.0.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the renderAmis props context example with the AMISEditor configuration surface; the issue names no files or tests. Determine whether Editor can expose an equivalent context containing hasPermi, and document or implement the configuration so permission checks can be invoked there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100