Skip to content

Commit

Permalink
Update material.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored and JackLian committed Nov 10, 2023
1 parent de8dab5 commit 9f78f8c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/docs/api/material.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,31 @@ function addonCombine(metadata: TransformedComponentMetadata) {
material.registerMetadataTransducer(addonCombine, 1, 'parse-func');
```

删除高级 Tab

```typescript
import { material } from '@alilc/lowcode-engine';
import { IPublicTypeFieldConfig } from '@alilc/lowcode-types';

material.registerMetadataTransducer((transducer) => {
const combined: IPublicTypeFieldConfig[] = [];

transducer.configure.combined?.forEach(d => {
if (d.name !== '#advanced') {
combined.push(d);
}
});

return {
...transducer,
configure: {
...transducer.configure,
combined,
}
};
}, 111, 'parse-func');
```

#### getRegisteredMetadataTransducers
获取所有物料元数据管道函数

Expand Down

0 comments on commit 9f78f8c

Please sign in to comment.