0.0.17 • Published 3 years ago

xy-intervaltime v0.0.17

Weekly downloads
6
License
ISC
Repository
github
Last release
3 years ago

xy-IntervalTime

TODO: description

Usage

export interface TimerProps {
  /**
   * 结束时间
   */
  endTime: Date;
  /**
   *开始时间
   */
  startTime?: Date;
  /**
   * 结束事件
   */
  onEnd?: (tag?: any) => void;
  /**
   * 是否 显示 年-月-日 时-分-秒
   */
  showTime?: YMDhms;
  /**
   * 显示的内容 年-月-日 时-分-秒
   */
  showTimeConent?: YMDhmsConent;
  // 相隔时间
  delay?: number;
  /**
   * 时间数字显示样式
   */
  timeStyle?: CSSProperties;
  /**
   * 年月日 时分秒 字显示样式
   */

  conentStyle?: CSSProperties;
  /***
   * 整体内容区显示样式
   */

  minStyle?: CSSProperties;
  /**
   * 结束时间显示内容
   */

  endTitle: ReactNode;
}
export interface YMDhmsConent {
  Y?: string;
  M?: string;
  D?: string;
  h?: string;
  m?: string;
  s?: string;
}
export interface YMDhms {
  Y?: boolean;
  M?: boolean;
  D?: boolean;
  h?: boolean;
  m?: boolean;
  s?: boolean;
}


const xyIntervalTime = require('xy-IntervalTime');
or  
import xyIntervalTime from "xy-IntervalTime"

// TODO: DEMONSTRATE API