@opensig/opendesign
Version:
156 lines (155 loc) • 3.87 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { SizeT } from '../_utils/types';
export declare const searchProps: {
/**
* @zh-CN 输入框的值 v-model
* @en-US The value of the input box
*/
readonly modelValue: {
readonly type: StringConstructor;
};
/**
* @zh-CN 输入框的默认值,非受控
* @en-US The default value of the input box.Uncontrolled.
*/
readonly defaultValue: {
readonly type: StringConstructor;
};
/**
* @zh-CN 是否可以清除
* @en-US clearable.
* @default true
*/
readonly clearable: {
readonly type: BooleanConstructor;
readonly default: true;
};
/**
* @zh-CN 是否禁用
* @en-US Whether to disable.
*/
readonly disabled: {
readonly type: BooleanConstructor;
};
/**
* @zh-CN 大小
* @en-US Size
* @default 'large'
*/
readonly size: {
readonly type: PropType<Exclude<SizeT, "small"> | "xlarge">;
readonly default: "large";
};
/**
* @zh-CN 圆角值
* @en-US Round
*/
readonly round: {
type: PropType<import('..').RoundT>;
};
/**
* @zh-CN 输入框颜色
* @en-US Color
* @default 'normal'
*/
readonly color: {
type: PropType<import('..').Color2T>;
default: string;
};
/**
* @zh-CN 是否只读
* @en-US Readonly
*/
readonly readonly: {
type: BooleanConstructor;
};
/**
* @zh-CN 输入框类型
* @en-US variant
* @default 'outline'
*/
readonly variant: {
type: PropType<import('..').VariantT>;
default: string;
};
/**
* @zh-CN 输入框占位符
* @en-US Input field placeholder.
*/
readonly placeholder: {
readonly type: StringConstructor;
};
/**
* @zh-CN 头部筛选框占位符
* @en-US Head selection box placeholder.
*/
readonly placeholderOfPrefixSelect: {
readonly type: StringConstructor;
};
/**
* @zh-CN 尾部筛选框占位符
* @en-US Tail section filter placeholder.
*/
readonly placeholderOfSuffixSelect: {
readonly type: StringConstructor;
};
/**
* @zh-CN 头部筛选框默认选中值
* @en-US The default selected value of the header filter box.
*/
readonly prefixSelectedVal: {
readonly type: StringConstructor;
};
/**
* @zh-CN 尾部筛选框默认选中值
* @en-US The default selected value of the tail filter box.
*/
readonly suffixSelectedVal: {
readonly type: StringConstructor;
};
/**
* @zh-CN 头部筛选框下拉列表
* @en-US Display the head filter box.
*/
readonly optionsOfPrefixSelect: {
readonly type: PropType<Array<{
label: string;
value: string | number;
}>>;
};
/**
* @zh-CN 尾部筛选框下拉列表
* @en-US Display the tail filter box.
*/
readonly optionsOfSuffixSelect: {
readonly type: PropType<Array<{
label: string;
value: string | number;
}>>;
};
/**
* @zh-CN 显示头部筛选框
* @en-US Display the head filter box.
*/
readonly showPrefixSelect: {
readonly type: BooleanConstructor;
};
/**
* @zh-CN 显示尾部筛选框
* @en-US Display the tail filter box.
*/
readonly showSuffixSelect: {
readonly type: BooleanConstructor;
};
/**
* @zh-CN 联想内容
* @en-US Associated content.
*/
readonly suggesstions: {
readonly type: PropType<Array<{
label: string;
value: string | number;
}>>;
};
};
export type SearchPropsT = ExtractPropTypes<typeof searchProps>;