Showing
1 changed file
with
2 additions
and
2 deletions
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)) { |