智慧工地前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smart-factory/web/docs/components/method/setObjectValue.md

15 lines
481 B

2 weeks ago
# setObjectValue 动态数组赋值(object)
```javascript
//向动态组件中填充值
import { getCurrentInstance } from "vue";
const { proxy } = getCurrentInstance();
proxy.$util.setObjectValue(source, arg);
```
## 参数
| 名称 | 描述 | 必填 | 默认值 | 类型 |
| :----: | :------------: | ---- | :----: | ------ |
| source | 待赋值的数据源 | 是 | 无 | Array |
| arg | 取值的数据源 | 是 | 无 | Object |