当前位置:网站首页>Alipay

Alipay

2020-11-13 00:46:23 Be strong

Open source Alipay applet calendar selection component , Wechat applets are also available

github:https://github.com/cyyinfo/calendar

 

Usage mode

  1. * Create a new calendar component folder in the applet project , for example :calendar
  2. Copy under this project .acss ..axml .json .js Four files to the folder
  3. Introduce components into the page you need to use , for example :
"usingComponents": {
      "cal": "/calendar/calendar"
    }


4. Finally, add components to the page
  

<cal show="{
   {show}}" limit="{
   {limit}}" actColor="{
   {actColor}}" onSelectEvent="onSelectEvent"></cal>

Support function
 * Support date radio selection , It also supports date range selection
 * Support custom minimum selected days
 * Support custom calendar theme color

  Parameter description

Parameter name Parameter type The default value is explain
show Boolean false Whether or not shown
limit Number 1 If it is a range, select the minimum interval days
actColor String #51BF85 Theme color
onSelectEvent Event nothing The selected callback function , Include selected dates


  

DEMO

版权声明
本文为[Be strong]所创,转载请带上原文链接,感谢

随机推荐