You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kgdxpr e69712b1d2
'commit'
12 months ago
..
README.en-US.md 'commit' 12 months ago
README.md 'commit' 12 months ago
calendar.d.ts 'commit' 12 months ago
calendar.js 'commit' 12 months ago
calendar.json 'commit' 12 months ago
calendar.wxml 'commit' 12 months ago
calendar.wxs 'commit' 12 months ago
calendar.wxss 'commit' 12 months ago
index.d.ts 'commit' 12 months ago
index.js 'commit' 12 months ago
props.d.ts 'commit' 12 months ago
props.js 'commit' 12 months ago
template.wxml 'commit' 12 months ago
type.d.ts 'commit' 12 months ago
type.js 'commit' 12 months ago

README.en-US.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:: BASE_DOC ::

API

Calendar Props

name type default description required
auto-close Boolean true 0.34.0 N
confirm-btn String / Object / Slot '' see more ts definition N
first-day-of-week Number 0 - N
format Function - TypescriptCalendarFormatType type CalendarFormatType = (day: TDate) => TDate type TDateType = 'selected' | 'disabled' | 'start' | 'centre' | 'end' | '' interface TDate { date: Date; day: number; type: TDateType; className?: string; prefix?: string; suffix?: string;}see more ts definition N
max-date Number - - N
min-date Number - - N
title String / Slot - - N
type String single optionssingle/multiple/range N
use-popup Boolean true 0.32.0 N
value Number / Array - Typescriptnumber | number[] N
default-value Number / Array undefined uncontrolled property。Typescriptnumber | number[] N
visible Boolean false - N

Calendar Events

name params description
change (value: timestamp) 0.28.0
close (trigger: CalendarTrigger) 0.34.0see more ts definition
type CalendarTrigger = 'close-btn' | 'confirm-btn' | 'overlay'
confirm (value: timestamp) -
select (value: timestamp) 0.28.0