Calendar
Props
| Prop Name | Type | Required | Default | Description |
|---|---|---|---|---|
| value | TDate | null | 当前值,受控 | ||
| rangeValue | tuple | 范围值 | ||
| defaultValue | TDate | null | 默认值,非受控 | ||
| onSelect | (t: Moment) => void | @deprecated 使用 onChange 来替换 | ||
| onChange | (t: Moment) => void | 选中变化回调 | ||
| current | TDate | |||
| defaultCurrent | TDate | |||
| onCurrentChange | (v: TDate) => void | |||
| rules | Rules | 自定义规则 | ||
| customStyle | { /** * 外层阴影,为 false 时隐藏 */ boxShadow?: boolean; } | 自定义样式 | ||
| type | 'date' | 'month' | 类型 |
说明
- 这是 日历 组件
- 需要自行导入 moment 语言包、设置时区








