UNPKG

hk-core-antdv

Version:

Based on Antd Vue3 custom components

40 lines (39 loc) 1.12 kB
import { default as Operator } from '../page/Operator'; /** * 查询条件参数的类型定义 */ export interface QueryComponent { /** * 要显示的Label, */ label: string; /** * search form item attrs. */ formItemAttrs: Object; /** * 查询条件属于哪个字段名 */ field: string; /** * 该查询条件匹配模式 * * 对于 {@link SimpleQueryModel} 类型查询,你可以无视它(即使你设置了也没用 {@link SimpleQueryModel.updateParamValue}), * 因为传的参数只有字段和值,可以通过后台固定要怎么匹配查询 * * 对于 {@link CompositeQuery} 类型查询,默认为 {@link Operator.EQ} 可以看 {@link SimpleCondition} 的默认构造方法 */ operator?: Operator; /** * 可选参数,placeholder */ placeholder?: string; /** * 目前支持: Input or Select,DatePicker */ component: string; /** * 其它属性,可以参考antd官网,根据 {@link component} 属性生成的组件不同来设置 */ attrs: any; }