import { SelectProps } from '@wakeadmin/element-adapter'; import { DefineAtomicProps } from '../../atomic'; import { ASelectOption } from './shared'; import { FatTextOwnProps, FatTextProps } from '../../fat-text'; export type ASelectValue = string | number; export type ASelectProps = DefineAtomicProps Promise); /** * 是否默认选中第一个选项,默认 false * 只有当 value 为空时有效 */ selectFirstByDefault?: boolean; renderPreview?: (active?: ASelectOption) => any; /** * 是否需要验证 value 必须在 options 中, 默认 false */ requiredValueOnOptions?: boolean; /** * requiredValueOnOptions 验证失败时的错误信息,默认为 placeholder 的值 */ requiredValueOnOptionsMessage?: string; /** * 选项颜色的渲染模式,默认为 text */ colorMode?: 'text' | 'dot'; textProps?: FatTextProps; /** * 未定义时的占位符 */ undefinedPlaceholder?: any; } & FatTextOwnProps>; export declare const ASelectComponent: import("../../atomic").AtomicComponent; declare global { interface AtomicProps { select: ASelectProps; } } export declare const ASelect: import("../../atomic").Atomic; //# sourceMappingURL=select.d.ts.map