jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
36 lines (35 loc) • 851 B
TypeScript
import type { ActionObject } from 'jamis-core';
import type { CSSProperties } from 'react';
import type { InputDateBaseControlSchema } from './InputDate.types';
export interface CalendarSchema extends Omit<InputDateBaseControlSchema, 'type'> {
/**
* 指定为日历选择控件
*/
type: 'calendar';
/**
* 日程
*/
schedules?: Array<ScheduleItem> | string;
/**
* 日程显示颜色自定义
*/
scheduleClassNames?: Array<string>;
/**
* 日程点击展示
*/
scheduleAction?: ActionObject;
/**
* 是否开启放大模式
*/
largeMode?: boolean;
/**
* 今日激活时的自定义样式
*/
todayActiveStyle?: CSSProperties;
}
export interface ScheduleItem {
startTime: string;
endTime: string;
content: any;
className?: string;
}