jinlin
2024-03-12 69218874b7d166cf9c5a10e23e9d2e0b9280633a
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 buildDatePickerJsData(formJson, datePicker, parent, data) {
  if (parent != null && parent.FComponentType === 'dialog') {
    buildDialogFormData(formJson, datePicker, parent, data)
    buildDialogFormRules(formJson, datePicker, parent, data)
  } else {
    buildFormData(formJson, datePicker, data)
    buildFormRules(formJson, datePicker, data)
  }
}