forked from lsl/xzjl-ui
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.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| README.en-US.md | 3 years ago | |
| README.md | 3 years ago | |
| calendar.d.ts | 3 years ago | |
| calendar.js | 3 years ago | |
| calendar.json | 3 years ago | |
| calendar.wxml | 3 years ago | |
| calendar.wxs | 3 years ago | |
| calendar.wxss | 3 years ago | |
| index.d.ts | 3 years ago | |
| index.js | 3 years ago | |
| props.d.ts | 3 years ago | |
| props.js | 3 years ago | |
| template.wxml | 3 years ago | |
| type.d.ts | 3 years ago | |
| type.js | 3 years ago | |
README.en-US.md
:: 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 | - | Typescript:CalendarFormatType 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 | options:single/multiple/range | N |
| use-popup | Boolean | true | 0.32.0 |
N |
| value | Number / Array | - | Typescript:number | number[] |
N |
| default-value | Number / Array | undefined | uncontrolled property。Typescript:number | number[] |
N |
| visible | Boolean | false | - | N |
Calendar Events
| name | params | description |
|---|---|---|
| change | (value: timestamp) |
0.28.0 |
| close | (trigger: CalendarTrigger) |
0.34.0。see more ts definition。type CalendarTrigger = 'close-btn' | 'confirm-btn' | 'overlay' |
| confirm | (value: timestamp) |
- |
| select | (value: timestamp) |
0.28.0 |