import { IControlSetConfig, ControlDisabledModeEnum, ControlModifyModeEnum } from '@mjcloud/types'; import { IConfigStartLoadParams, IInitialStateParams } from '@mjcloud/redux'; import { IValueState, ValueControlActionType, ValueControlEventType } from '@mjcloud/instance/dist/valueInstanceBase'; export interface ILabelConfig extends IControlSetConfig { title: string; autoFocus: boolean; isHtml?: boolean; value?: string; defaultValue?: string; fontSize?: number; fontColor?: string; fontWeight?: string; format2Date?: string; format2Number?: string; /** * 当前子项在哪些模式下为禁用状态,默认为 `ControlDisabledModeEnum.none` * (none.不禁用,all.禁用) */ disabledMode?: ControlDisabledModeEnum; modifyMode?: ControlModifyModeEnum; } export interface ILabelConfigStartLoadParams extends IConfigStartLoadParams { } export interface ILabelInitialStateParams extends IInitialStateParams { } export interface ILabelState extends IValueState { isHtml: boolean; fontSize: number | undefined; fontColor: string | undefined; format2Date?: string; format2Number?: string; fontWeight: number | '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset' | 'bold' | 'normal' | 'bolder' | 'lighter' | undefined; } export declare type LabelActionType = ValueControlActionType; export declare type LabelEventType = ValueControlEventType;