UNPKG

@linkdesign/screen

Version:

屏组件库,但使用场景又不局限于屏。主要用于BI、大盘和屏

28 lines (24 loc) 2.11 kB
--- title: API order: 3 --- <br/> | 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | |-------------------------|--------|------|----------------------------------------------------------------|---------------------------|-------------------------------------------------------------------| | className | 类名 | N | String | - | | | format | 时间格式 | N | String | ```'MM月DD日 HH:mm:ss'``` | [见monentjs 文档](https://momentjs.com/docs/#/displaying/format/) | | [textStyle](#textStyle) | 文本样式 | N | Object | ```{fontWeight: 400}``` | - | | humanize | 人性化 | N | Boolean | true | - | | start | 开始时间 | N | moment.MomentInput | - | - | | end | 结束时间 | N | moment.MomentInput | - | - | | render | 自定义 | N | (obj: moment.Moment \| number, origin: ReactNode) => ReactNode | - | - | #### textStyle ```typescript // 文本样式 textStyle?: { fontFamily?: string; fontSize?: string | number; color?: string; fontWeight?: string | number; }; ```