import { ExtractPropTypes, PropType } from 'vue'; declare function ajax(): void; /** * 选择框模式类型 */ export type SelectMode = 'default' | 'fill' | 'none' | 'plain' | 'line' | string; /** * 选择值的类型 */ export type SelectValueType = string | number | (string | number)[]; /** * 选择框选项数据类型 */ export type SelectOptionsData = { /** * 默认的选项标题字段 */ label?: string | unknown; /** * 默认的选项值字段 */ value?: string | number | unknown; disabled?: boolean; hide?: boolean; [props: string]: any; }; /** * 箭头类型 */ export type ArrowType = 'browse' | 'next' | ''; /** * 选项显示模式 */ export type OptionDisplay = 'none' | 'float' | 'popup' | string; export declare const selectProps: { flex: BooleanConstructor; /** * 懒加载 */ lazy: { type: BooleanConstructor; default: boolean; }; /** * 原生模式(性能极端低下情况下使用) */ native: { type: BooleanConstructor; default: boolean; }; /** * 表单校验描述 */ desc: { type: StringConstructor; default: string; }; /** * 表单校验规则 */ rule: { type: StringConstructor; default: string; }; /** * 元素ID */ id: { type: StringConstructor; default: string; }; /** * 是否必填 */ required: { type: BooleanConstructor; default: boolean; }; /** * 安全字符过滤 */ spChars: { type: (BooleanConstructor | StringConstructor)[]; default: string; }; /** * 单位 */ unit: { type: StringConstructor; default: string; }; /** * 分割符号 */ splitSymbol: { type: StringConstructor; default: string; }; /** * Tab索引 */ tabindex: { type: StringConstructor; default: string; }; /** * 值字段名 */ valueText: { type: StringConstructor; default: string; }; /** * 标签字段名 */ labelText: { type: StringConstructor; default: string; }; /** * 绑定值 */ modelValue: { type: PropType; default: string; }; /** * 选择框数据 */ data: { type: PropType; default: () => any[]; }; /** * 占位符文本 */ placeholder: { type: StringConstructor; default: string; }; /** * 占位符颜色 */ placeholderColor: { type: StringConstructor; default: string; }; /** * 无匹配数据文本 */ nomatchText: { type: StringConstructor; default: string; }; /** * 暂无数据文本 */ nodataText: { type: StringConstructor; default: string; }; disabled: { type: BooleanConstructor; default: boolean; }; /** * 是否多选 */ multiple: { type: BooleanConstructor; default: boolean; }; /** * 是否可过滤 */ filterable: { type: BooleanConstructor; default: boolean; }; /** * 是否可输入 */ inputable: { type: BooleanConstructor; default: boolean; }; /** * 使用全选文本 */ useAllText: { type: BooleanConstructor; default: boolean; }; /** * 全选文本 */ allText: { type: StringConstructor; default: string; }; /** * 是否可清空 */ clearable: { type: BooleanConstructor; default: boolean; }; /** * 多选是否可逐个删除 */ removable: { type: BooleanConstructor; default: boolean; }; /** * 选择框颜色 */ color: { type: StringConstructor; default: string; }; /** * 选择框模式 */ mode: { type: PropType; default: string; }; /** * 选择框宽度 */ width: { type: (NumberConstructor | StringConstructor)[]; default: string; }; /** * 箭头类型 */ arrowType: { type: PropType; default: string; }; /** * 选项宽度 */ optionWidth: { type: (NumberConstructor | StringConstructor)[]; default: string; }; /** * 选项显示模式 */ optionDisplay: { type: PropType; default: string; }; /** * 选项列数 */ optionCol: { type: (NumberConstructor | StringConstructor)[]; default: number; }; /** * 选项换行 */ optionWrap: { type: BooleanConstructor; default: boolean; }; /** * 选项对齐方式 */ optionAlign: { type: PropType<"left" | "right" | "center">; default: string; }; /** * HTTP请求函数 */ httpRequest: { type: FunctionConstructor; default: typeof ajax; }; /** * API地址 */ api: { type: StringConstructor; default: string; }; /** * API参数 */ apiParam: { type: ObjectConstructor; default: any; }; /** * API请求头 */ apiHeaders: { type: ObjectConstructor; default: () => {}; }; /** * API标签字段 */ apiLabel: { type: StringConstructor; default: string; }; /** * 响应数据路径 */ resPath: { type: StringConstructor; default: string; }; /** * 错误信息路径 */ errorPath: { type: StringConstructor; default: string; }; /** * 成功状态码 */ successCode: { type: StringConstructor; default: string; }; /** * 远程异步数据设置函数 */ setDataFn: { type: FunctionConstructor; default: any; }; /** * 前缀文本 */ prefix: { type: StringConstructor; default: string; }; /** * 后缀文本 */ suffix: { type: StringConstructor; default: string; }; /** * 图标 */ icon: { type: StringConstructor; default: string; }; /** * 是否去除空格 */ trim: { type: BooleanConstructor; default: boolean; }; /** * 多选时每次选择都关闭弹窗 */ closeSelection: { type: BooleanConstructor; default: boolean; }; /** * 是否可验证 */ verifiable: { type: BooleanConstructor; default: boolean; }; /** * 是否可比较 */ comparable: { type: BooleanConstructor; default: boolean; }; /** * 自定义标签函数 */ setLabelFn: { type: FunctionConstructor; default: any; }; /** * 是否换行 */ wrap: { type: BooleanConstructor; default: boolean; }; /** * 过滤模式下清空数据是否弹出下拉框 */ focusWhenClear: { type: BooleanConstructor; default: boolean; }; /** * 值改变前的回调 */ beforeChange: { type: FunctionConstructor; default: any; }; /** * 值类型 */ valueType: { type: StringConstructor; default: string; }; /** * 是否开启远程搜索 */ remote: { type: BooleanConstructor; default: boolean; }; /** * 远程搜索方法 */ remoteMethod: { type: FunctionConstructor; default: any; }; }; export type SelectProps = ExtractPropTypes; export {};