Commit 9a37e8da04f8ebff17c556431b8d1c6f72dbe8ee

Authored by fengtao
1 parent 350f551e

pref:优化场景联动部分代码 根据产品获取对应设备

1 export default () => { 1 export default () => {
2 //根据产品获取对应属性 2 //根据产品获取对应属性
3 const useByProductGetAttribute = (res, callback, opt) => { 3 const useByProductGetAttribute = (res, callback, opt) => {
4 - const getAttr = (opt) => 4 + const getAttr = (options) =>
5 callback({ 5 callback({
6 field: 'type2', 6 field: 'type2',
7 componentProps: { 7 componentProps: {
8 placeholder: '请选择属性', 8 placeholder: '请选择属性',
9 - opt, 9 + options,
10 }, 10 },
11 }); 11 });
12 if (Array.isArray(res)) { 12 if (Array.isArray(res)) {