Coder Social home page Coder Social logo

calendar's Introduction

支付宝小程序日历选择组件

使用方式

  • 在小程序项目中新建一个日历组件文件夹,例如:calendar
  • 拷贝本项目下的 .acss ..axml .json .js 四个文件到文件夹
  • 在需要使用的页面引入组件,例如:
      "usingComponents": {
        "cal": "/calendar/calendar"
      }
  • 最后在页面添加组件
      <cal show="{{show}}" limit="{{limit}}" actColor="{{actColor}}" range="{{range}}" onSelectEvent="onSelectEvent"></cal>

支持功能

  • 支持日期单选,也支持日期范围选择
  • 支持自定义最小选中天数
  • 支持自定义日历的主题色

参数说明

参数名 参数类型 默认值 说明
show Boolean false 是否显示
limit Number 1 如果是范围选择最小间隔天数
actColor String #51BF85 主题色
onSelectEvent Event 选中后的回调函数,包含选中的日期

DEMO

支付宝扫码预览

calendar's People

Contributors

cyyinfo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hgpll

calendar's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.