import { iBaseProps } from "../../base/type"; import {TimeConver} from "../../number/IOTTimeSlider/interface"; type UnitType = 'h' | 'min' | 's'; // 传入时间组件的数据的单位 h:小时 export interface Item { title: string, text: string | number, label?:string, unit?: string; unitConvertFlag?:unitProps } export interface IMiniCardText extends iBaseProps{ list:Array; } export interface iFunctionConfig{ id: string; functionName?: string; streamId?: string; valueDef?: any; desc?:string; } export interface iMiniCardTextJSON extends iBaseProps { list: Array; } export interface iConfigItem { id?: string; functionName?: string; streamName?: string; streamId?: string; valueDef?: any; desc?: string; title?:string; text?:string; label?:string; unit?: string; unitConvertFlag?:unitProps } export interface unitProps { hour:boolean; minute:boolean; second:boolean; }