Skip to content

Commit d41f2c1

Browse files
liujupingJackLian
authored andcommitted
docs: update material.md
1 parent 20bf62a commit d41f2c1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/docs/api/material.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,21 @@ material.setAssets(assets1);
116116
material.loadIncrementalAssets(assets2);
117117
```
118118

119+
更新特定物料的描述文件
120+
121+
```typescript
122+
import { material } from '@alilc/lowcode-engine';
123+
material.loadIncrementalAssets({
124+
version: '',
125+
components: [
126+
{
127+
"componentName": 'Button',
128+
"props": [{ name: 'new', title: 'new', propType: 'string' }]
129+
}
130+
],
131+
})
132+
```
133+
119134
### 设计器辅助层
120135
#### addBuiltinComponentAction
121136
在设计器辅助层增加一个扩展 action

0 commit comments

Comments
 (0)