import React from "react"; import type { DataSourceParams } from "../../data"; import type { PropertyEditorProps } from "../../type"; interface Props extends PropertyEditorProps { /** 数据源参数,用于取实体类型与数据库名称以加载可选字段树;缺省时走 EditorPanelContext */ dataSourceParams?: DataSourceParams; } /** * 表格列 dataIndex 编辑器:基于 SingleFieldSelector 选择字段(支持关联嵌套,如 customer.name), * 并把点号连接的字段名转换为 antd 的 dataIndex 形式——嵌套字段转为数组,例如 product.name => ["product", "name"]。 */ export declare class DataIndexEditor extends React.Component { /** dataIndex(string | string[])=> SingleFieldSelector 使用的点号字符串 */ static toSelectorValue(value?: string | string[]): string | undefined; /** SingleFieldSelector 的点号字符串 => dataIndex(嵌套转数组) */ static toDataIndex(value?: string): string | string[] | undefined; render(): React.ReactNode; } export {};