mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
Update material.md
This commit is contained in:
parent
0eb7d173b9
commit
739fe47765
@ -340,6 +340,31 @@ function addonCombine(metadata: TransformedComponentMetadata) {
|
|||||||
material.registerMetadataTransducer(addonCombine, 1, 'parse-func');
|
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
|
#### getRegisteredMetadataTransducers
|
||||||
获取所有物料元数据管道函数
|
获取所有物料元数据管道函数
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user