loners-form
Version:
为工作而生,基于 antd 而生的可配置化表单
21 lines (20 loc) • 839 B
TypeScript
import React from 'react';
import type { ShowQA } from '../interface';
import type { SelectValue, SelectProps } from 'antd/lib/select';
import type { AbstractTooltipProps } from 'antd/lib/tooltip';
import '../index.less';
declare type ValueEnum = Record<string, string | number> | Map<string | number, string | number>;
export interface SelectGoProps extends Omit<SelectProps<SelectValue>, 'children'> {
valueEnum?: ValueEnum;
/** 是否显示 QA, 默认 false */
showQA?: ShowQA;
/** 是否开启文字提示, 默认 false */
tooltip?: boolean | AbstractTooltipProps;
/** 按照标准固定宽度,默认 false */
fixedWidth?: boolean;
}
export interface CommonSelectGoProps extends SelectGoProps {
addedDefaultOption?: boolean;
}
declare const SelectGo: React.FC<SelectGoProps>;
export default SelectGo;