jinlin
2024-02-26 6f0714843341b168573ad0272069f7af2d3d2b87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {
  buildFormData, buildFormRules, buildDialogFormData, buildDialogFormRules
} from './common/buildData'
 
// 构建“下拉选择”JS数据
export default function buildSelectJsData(formJson, select, parent, data) {
  if (parent != null && parent.FComponentType === 'dialog') {
    buildDialogFormData(formJson, select, parent, data)
    buildDialogFormRules(formJson, select, parent, data)
  } else {
    buildFormData(formJson, select, data)
    buildFormRules(formJson, select, data)
  }
}