1 Star 17 Fork 6

xiaokar / dk-calendar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

dk-calendar小程序日期打卡组件

该组件是以微信小程序为基础的已上线项目脱离片段开源(市面上小程序万变不离其中,其他小程序可自行修改标签wx)

安装:

git clone https://gitee.com/xiaokar/dk-calendar.git

使用:

1.将dk-calendar文件夹放进components文件夹内

2.页面json文件引入该组件

{
  "usingComponents": {
    "dk-calendar":"../../components/dk-calendar/dk-calendar"
  }
}

3.xxml页面文件使用:

<!-- 微打卡组件 -->
    <dk-calendar originActiveData="{{user_date_log}}" bind:selectDate="onSelectDate" size="m"></dk-calendar>

or

<!-- 默认打卡组件 -->
    <dk-calendar originActiveData="{{user_date_log}}" bind:selectDate="onSelectDate"></dk-calendar>

参数方法相关

名称 描述 参数or方法 类型 例子
originActiveData 已打卡的日期参数 params Array 例:[2021-11-02,2021-11-03]
selectDate 点击的日期方法 Method 输出:yyyy-MM-dd

最终效果(截图):

线上Demo参考:

开发原因:

为满足定制需要,市面上又找不到车子和轮子,干脆自己撸了并分享有需要的人用

更多

该组件js日期均已使用yyyy/MM/dd格式连接解决ios不兼容问题,输出和输入为yyyy-MM-dd格式,简单易用,有问题可以联系我或者提出改进

MIT License Copyright (c) 2023 xiaokar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

本人纯手工打造满足市面所有小程序的开源日期打卡插件,作者xiaokar 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
微信
1
https://gitee.com/xiaokar/dk-calendar.git
git@gitee.com:xiaokar/dk-calendar.git
xiaokar
dk-calendar
dk-calendar
master

搜索帮助