import { $t } from '#/locales';

export const relationFormProps = {
  allowClear: { default: true, type: Boolean },
  columnOptions: { default: () => [], type: Array },
  disabled: { default: false, type: Boolean },
  extraOptions: { default: () => [], type: Array },
  field: { default: '', type: String },
  hasPage: { default: false, type: Boolean },
  modelId: { default: '', type: String },
  multiple: { default: false, type: Boolean },
  onlineUtilsOpen: { default: false, type: Boolean },
  pageSize: { default: 20, type: Number },
  placeholder: { default: () => $t('common.chooseText'), type: String },
  popupTitle: { default: () => $t('component.jnpf.popupSelect.modalTitle'), type: String },
  popupType: { default: 'dialog', type: String },
  popupWidth: { default: '800px', type: String },
  propsValue: { default: '', type: String },
  queryType: { default: 1, type: Number },
  relationField: { default: '', type: String },
  size: { default: 'default', type: String },
  value: [String, Number, Array] as PropType<[string, number][] | number | number[] | string | string[]>,
};
