跳到主要内容

OperatorSelectorProps

Defined in: packages/rxdb-model-react/src/query-builder/operator-selector/operator-selector.tsx:15

OperatorSelector 的 props。

Properties​

fieldMetadata?​

optional fieldMetadata?: FieldMetadata;

Defined in: packages/rxdb-model-react/src/query-builder/operator-selector/operator-selector.tsx:17

字段元数据(优先于 fieldType 推导操作符)。


fieldType?​

optional fieldType?: string;

Defined in: packages/rxdb-model-react/src/query-builder/operator-selector/operator-selector.tsx:19

字段类型(无元数据时按类型推导操作符),缺省 'string'。


onOperatorChange?​

optional onOperatorChange?: (operator) => void;

Defined in: packages/rxdb-model-react/src/query-builder/operator-selector/operator-selector.tsx:23

选中回调。

Parameters​

ParameterType
operatorstring

Returns​

void


selectedOperator?​

optional selectedOperator?: string;

Defined in: packages/rxdb-model-react/src/query-builder/operator-selector/operator-selector.tsx:21

当前选中操作符,缺省 '='。