1.2.1 β€’ Published 7 months ago

miniprogram-wecalendar v1.2.1

Weekly downloads
-
License
Anti 996
Repository
github
Last release
7 months ago

miniprogram-wecalendar

A miniprogram date component that supports sliding, weekly folding, and brisk Built with ESbuild, now responsive


npm (tag) GitHub code size in bytes esbuild-node miniprogram GitHub


δΈ­ζ–‡ README

Exhibit

install

npm i miniprogram-wecalendar

or

yarn add miniprogram-wecalendar

use

Add the calendar custom component configuration to the page page.json or app.json that needs to use the calendar

{
  "usingComponents": {
    "WeCalendar": "miniprogram-wecalendar"
  }
}

open Development tools mode less

1.2.0 Support wxss

"useCompilerPlugins": [
            "less"
        ]
  • Use πŸ‘‡πŸ» in wxml
<WeCalendar markCalendarList="{{markCalendarList}}" isToday="{{true}}" bind:onRangeDate="onRangeDate" bind:onSelect="onSelect" />

WeCalendar of then properties

PropertyTypeDefaultrequiredDescription
isTodayBooleanFalse0Whether to show today button
markCalendarListArray[{ date: YYYY-MM-DD pointColor: #ccc }][]0Calendar markers, color can be customized
defaultDateString: YYYY-MM-DDNull0Default date
showFoldingBooleanTrue0Calendar folding function
weeekLayerNumber10Number of rows in collapsed state

WeCalendar of then Func

PropertyTypeDescription
onSelectFunction CallbackHow to choose a date
onRangeDateFunction CallbackThe scope of each rendering of the calendar

For example 🌰

  • onSelect
onSelect: (e) => {
  const {day} = e.detail
  // ...
}
  • onRangeDate
onRangeDate: (e) => {
  const {beginTime, endTime} = e.detail
  // ...
}

Development start

npm run dev
    • Use the WeChat applet development tool to open the demo folder, change the file under src and it will be automatically built
1.2.0

7 months ago

1.2.1

7 months ago

1.1.7

8 months ago

1.1.6

9 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago