@jinming6/ming-tool
Version:
Front-end tool library
24 lines (23 loc) • 608 B
TypeScript
import type { LabelMap, Options, DataSourceItem, FieldsName, GetLabelOptions } from '../models/option/option.interfaces';
export declare const DefaultFieldsName: FieldsName;
export declare class Option {
dataSource: DataSourceItem[];
fieldsName: FieldsName;
constructor(options: Options);
/**
* 获取下拉选项
*/
get options(): DataSourceItem[];
/**
* 获取label映射对象
*/
get labelMap(): LabelMap;
/**
* 获取label
*/
getLabel(options: GetLabelOptions): string;
/**
* 更新
*/
update(options: Options): void;
}