import React from "react"; import { FormInstance } from "antd"; import "./index.css"; import { ClassAddConfig, DtmplData, FieldConfig, FieldGroupConfig, SelectedRow, ViewOrEdit } from "../tmpl/interface"; import { LocaleContext } from "../locale/LocaleProvider"; interface RelationTableProps { showRightNav?: boolean; mainCode?: string; serverKey?: string; parentId: string; loading: boolean; viewOrEdit: ViewOrEdit; refreshId?: string; fieldGroupConfig: FieldGroupConfig; value: DtmplData[]; parentFormInstance?: FormInstance; onChange?: (fieldGroupConfig: FieldGroupConfig, value: DtmplData[]) => void; onEditing?: (editing: boolean) => void; initCollapse?: boolean; showCollapseCard?: boolean; audit?: { isAudit: boolean; previousData: any; changeInfo: any; }; } interface RelationTableStat { selectedCode?: string; showDtmplView?: boolean; showDtmplEdit?: boolean; showSelectTable?: boolean; tableLoading?: boolean; showRowEdit?: boolean; selectedDtmplData?: DtmplData; filterStr?: string; pageSize?: number; addTmplId?: string; editings?: string[]; uploadingFiles?: object[]; } declare class RelationTable extends React.PureComponent { state: { showDtmplView: boolean; selectedCode: any; showSelectTable: boolean; showDtmplEdit: boolean; tableLoading: boolean; showRowEdit: boolean; selectedDtmplData: any; filterStr: any; pageSize: number; addTmplId: any; editings: any[]; uploadingFiles: any[]; }; static contextType: React.Context<{ locale: import("../locale/langMp").LocaleType; langPkg: any; availableLang: string[]; changeLocale: (locale: import("../locale/langMp").LocaleType) => void; siderCollapsed: boolean; changeSiderCollapsed: () => void; t: (...strs: string[]) => string; translate: (...strs: string[]) => string; getServiceLangStr?: () => string; compactTheme?: boolean; changeCompactTheme?: () => void; screenfull?: boolean; changeScreenfull?: () => void; }>; context: React.ContextType; static defaultProps: { showCollapseCard: boolean; }; formRef: React.RefObject>; componentDidMount(): Promise; componentDidUpdate(prevProps: any): Promise; buildDataSource: () => any; buildColumns: () => any[]; doRowAction: (actionId: string, codes: string[], params: object) => Promise; doAction: (actionId: string, selectedRows: SelectedRow[], params: any) => Promise; showEntityView: (record: any) => void; hiddenEntityView: () => void; hiddenEntityEdit: () => void; delete: (record: any) => Promise; searchValue: (filterStr: string) => void; tabChange: (pagination: any) => void; showSelect: () => void; select: (selectedRows: SelectedRow[]) => Promise; add: (codes: string[]) => Promise; getRowEditData: (code?: string) => any; handleDtmplAdd: (code: string, isContinueSave?: boolean) => Promise; handleDtmplEdit: (code: string) => Promise; handleRowEdit: (dtmplData: DtmplData) => void; showAddDtmplModel: (addTmplId?: string) => void; showEditDtmplModel: (record: any) => void; getAddTmplButton: (classAddConfigs: ClassAddConfig[]) => string | React.JSX.Element[]; addNewRow: (defaultValue: any) => void; editRowEdit: (code: any) => void; cancelRowEdit: (code: string) => void; postDtmplData: (dtmplData: any, record: DtmplData) => Promise; saveRowData: (record: DtmplData) => Promise; handleColData: (record: DtmplData) => void; uploadFiles: (values: any) => void; handleFieldConfig: () => { fields: (FieldConfig | { exceptCodes: any[]; disabled?: boolean; max?: string; min?: string; ellipsisLength?: number; buttons?: import("../tmpl/interface").ButtonName[]; rules?: import("../tmpl/interface").FileRule[]; mainCode?: ((form: FormInstance) => Function) | string; updateSelf?: (form: FormInstance) => FieldConfig; suppleOptions?: any[]; actions?: import("../tmpl/interface").FieldAction[]; requiredRuleCriteria?: FieldConfig[]; usableRuleCriteria?: FieldConfig[]; relValueField?: FieldConfig; subRelValueField?: FieldConfig; relValueField3?: FieldConfig; relMinValueField?: FieldConfig; relMaxValueField?: FieldConfig; hidden?: boolean; serverKey?: string; sourceId?: string; baseCriteria?: object; showDim?: boolean; defaultDtmplData?: DtmplData; optionCodeColId?: string; sortable?: boolean; pageSortable?: boolean; itemBreakLine?: boolean; configChanged?: boolean; rowEditType?: "editable" | "readonly" | "editonly" | "addonly"; colWidth?: number; relDeduplication?: boolean; preview?: boolean; isFallback?: boolean; dateControlShortcutKeys?: string[]; placeholder?: string; appendCriteria?: import("../tmpl/interface").CriteriaConfig; dataUnit?: string; themeColor?: string; themeIcon?: string; defShowIcon?: boolean; showUploadList?: boolean; uploadText?: string; fieldSwitchRequiredClearType?: "doNotClear" | "toOptionalClear" | "toRequiredClear" | "switchClear"; unusableMode?: "hidden" | "disabled" | "default"; style?: { [key: string]: any; }; noStyle?: boolean; options?: any[]; defaultSelectFirst?: boolean; colSpan?: number; mstrucId?: string; defaultValue?: string; value?: string; tip?: string; controlType?: string; extControlType?: string; required?: boolean; comparator?: import("../tmpl/interface").Comparator; dependencies?: string[]; shouldUpdate?: ((prevValue: object, curValue: object) => boolean) | boolean; order?: string | number; id?: string; title?: string; icon?: string; })[]; serverKey?: string; type?: import("../tmpl/interface").FieldGroupType; buttons?: import("../tmpl/interface").ButtonName[]; min?: number; max?: number; showRowNum?: boolean; relationNames?: string[]; showRelationName?: boolean; rowActions?: import("../tmpl/interface").ActionConfig[]; displayConfig?: import("../tmpl/interface").GroupDisplayConfig; mainCode?: string; disabled?: boolean; readOnly?: boolean; embedType?: "\u5217\u8868" | "\u8BE6\u60C5" | "\u7F16\u8F91" | "\u7F16\u8F91\u6216\u6DFB\u52A0"; pageSourceFieldMstrucId?: string; codeSourceFieldMstrucId?: string; pointSourceId?: string; classAddConfigs?: ClassAddConfig[]; defaultCriteriaValue?: object; deleteData?: boolean; viewModel?: "table" | "verticalList" | "cardList"; addOrEditType?: "singleCol" | "doubleCol" | "tableRow"; batchAddFileField?: FieldConfig; addRowPosition?: "begin" | "end"; submitType?: "separate" | "follow"; selectRelValueField?: FieldConfig; order?: string | number; id?: string; title?: string; tip?: string; icon?: string; }; buildButtons: () => React.JSX.Element | ""; render(): React.JSX.Element | ""; } export default RelationTable; //# sourceMappingURL=relation-table.d.ts.map