更新记录

1.1.3(2021-04-08)

已下架

1.1.2(2020-06-29)

修复百度小程序无法显示年月日问题

1.1.1(2020-06-29)

修复时辰问题

查看更多

平台兼容性

阴阳历日期选择器

阴阳历转换参考的库:https://github.com/jjonline/calendar.js 时间只能从 1900~2100,否则会有问题

版本1.1.2

修复百度小程序无法显示年月日问题

版本1.1.0

新增加功能: 切换为农历时,可以选择十二时辰,只需要传递isShowChinaTime为true 当日期为农历时,如果想使用十二时辰作为时间,可以参考demo转化为标准时间,如亥时可转为:21:00:00

版本1.0.0

可传递的参数:
       level: {
                type: String,
                default: '5'
            },
            isShowChinaTime: {
                type: Boolean,
                default: false
            },
            currentTime: {
                type: String,
                default: ''
            },
            startYear: {
                type: Number,
                default: 1900
            },
            endYear: {
                type: Number,
                default: 2100
            },
            isLunar: {
                type: Boolean,
                default: false
            },
            headerBgColor: {
                type: String,
                default: '#e9e9e9'
            },
            solarText: {
                type: String,
                default: '阳历'
            },
            lunarText: {
                type: String,
                default: '阴历'
            },
            activeColor: {
                type: String,
                default: '#912222'
            },
            defaultColor: {
                type: String,
                default: '#000000'
            },
            confirmText: {
                type: String,
                default: '确定'
            },
            confirmColor: {
                type: String,
                default: '#912222'
            }

level 查看传递的参数: '1','2','3','4','5','6'; 1:只选择年,2:可以选择年月,3,可选择年月日,4,5,6 可控制时间

返回的结果:
Animal: "鼠"
IDayCn: "初三"
IMonthCn: "闰四月"
Term: null
astro: "双子座"
cDay: 25
cMonth: 5
cYear: 2020
chinaTime: "辰时"
date: "2020-05-25"
festival: null
gzDay: "戊辰"
gzMonth: "辛巳"
gzYear: "庚子"
isLeap: true
isTerm: false
isToday: false
lDay: 3
lMonth: 4
lYear: 2020
lunarDate: "2020-04-03"
lunarFestival: null
nWeek: 1
ncWeek: "星期一"
time: "23:00:00"

该插件还在继续完善中!!!如果您在使用中发现问题或者什么好的建议请留言

DatePickerDemo github地址:[https://github.com/BoryLee/DatePicker]()

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问