fix: bug#16693
This commit is contained in:
parent
69dfc01b0d
commit
83bde12038
|
@ -302,22 +302,22 @@ export const useColumns = (type?: MetadataType, target?: 'device' | 'product', n
|
||||||
title: '输入参数',
|
title: '输入参数',
|
||||||
dataIndex: 'inputs',
|
dataIndex: 'inputs',
|
||||||
width: 120,
|
width: 120,
|
||||||
form: {
|
// form: {
|
||||||
required: true,
|
// required: true,
|
||||||
rules: [{
|
// rules: [{
|
||||||
callback(rule:any,value: any, dataSource: any[]) {
|
// callback(rule:any,value: any, dataSource: any[]) {
|
||||||
const field = rule.field.split('.')
|
// const field = rule.field.split('.')
|
||||||
const fieldIndex = Number(field[1])
|
// const fieldIndex = Number(field[1])
|
||||||
|
//
|
||||||
const values = dataSource.find((item, index) => index === fieldIndex)
|
// const values = dataSource.find((item, index) => index === fieldIndex)
|
||||||
|
//
|
||||||
return validatorConfig({
|
// return validatorConfig({
|
||||||
type: 'object',
|
// type: 'object',
|
||||||
properties: values.inputs
|
// properties: values.inputs
|
||||||
}, true)
|
// }, true)
|
||||||
}
|
// }
|
||||||
}]
|
// }]
|
||||||
},
|
// },
|
||||||
control(newValue, oldValue) {
|
control(newValue, oldValue) {
|
||||||
if (newValue && !oldValue) {
|
if (newValue && !oldValue) {
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue