'use strict';

var dialog = require('../../base/dialog/dialog.js');

const dialogFormProps = {
  ...dialog.dialogProps,
  // 表单JSON配置
  formItemList: {
    type: Array,
    default: () => []
  },
  // 表单数据
  formData: {
    type: Object,
    default: () => ({})
  },
  // 表单验证规则
  rules: {
    type: Object,
    default: () => {
    }
  },
  // label 宽度
  labelWidth: {
    type: String,
    default: ""
  },
  loading: {
    type: Boolean,
    default: false
  }
};
const dialogFormEmits = {
  ...dialog.dialogEmits,
  submit: (formData) => !!formData,
  reset: (formRef) => !!formRef,
  vaildFail: (fields) => !!fields
};

exports.dialogFormEmits = dialogFormEmits;
exports.dialogFormProps = dialogFormProps;
//# sourceMappingURL=dialogForm.js.map
