npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-calendar-h5

v1.0.0

Published

小巧的日历样式组件,不仅可以展示,还可以选择

Downloads

10

Readme

前言

额...因为最近公司的项目需要用到日历展示,于是乎找了市面上所有日历组件,包括 element 在内的日历均不符合要求,最后找到了来着 github 点赞数最高的日历组件jinzhe 大佬的 vue-calendar,于是我就拿过来进行小修改,顺便看了原项目的 Issues 问题,对部分进行了优化处理,因为项目需求不需要设计 Issues 的功能,所以部分修复未测试,如有问题欢迎提 Issues 告诉我,我会尝试着进行修复,如有志同道合者,欢迎你 fork 项目修改并 pr 给我,最后留下你们小星星,谢谢!

地址

npm:https://www.npmjs.com/package/vue-calendar-h5
yarn:https://classic.yarnpkg.com/en/package/vue-calendar-h5
cnpm:https://developer.aliyun.com/mirror/npm/package/vue-calendar-h5
github:https://github.com/2277419213/vue-calendar-h5
gitee:https://gitee.com/JuLizhanzhan/vue-calendar-h5

食用方式

安装

npm install vue-calendar-h5

or

cnpm install vue-calendar-h5

普通使用

<template>
  <div id="app">
    <h5-calendar></h5-calendar>
  </div>
</template>

<script>
// 局部引入
import H5Calendar  from 'vue-calendar-h5'
export default {
  name: 'App',
  components: { H5Calendar }
};

// 全局引入
import H5Calendar from 'vue-calendar-h5'
Vue.use(H5Calendar)
</script>

Dome

<template>
  <div>
    <div class="calendardome">
      <h5>原作者版本(加了滑动切换)</h5>
      <H5Calendar lunar :touchthreshold="50"/>
    </div>
    <div class="calendardome">
      <h5>纯展示版本</h5>
      <H5Calendar
        lunar
        :touchthreshold="50"
        :controllable="false"
        versions="juli"
        isshowtoday
      />
    </div>
  </div>
</template>

<script>
import H5Calendar from "vue-calendar-h5";
export default {
  components: { H5Calendar }
};
</script>

<style scoped>
.calendardome {
  padding: 0 22px;
}
</style>

演示网站

可以到http://www.yi-school.top/cropper查看效果演示

默认配置

关于配置信息,请查看源文档,感谢原作者 jinzhe 大佬的vue-calendar
这里这是做了简单的汇总 | 名称 | 功能 | 默认值 | | :--- | :--- | :--- | | value | 日历默认值 | [] | | begin | 限制开始选择日期 | [] | | end | 限制结束选择日期 | [] | | range | 你可以选择一个时间段 | false | | zero | 日期 0 | false | | lunar | 显示中国农历 | false | | weeks | 根据系统语言变化或自定义星期显示 | 根据系统选择显示(星期一 or Mon)等 | | months | 根据系统语言变化或自定义月份显示 | 根据系统选择显示(一月 or January)等 | | events | 自定义日历事件 | {} | | multi | 多选模式 | false | | zero | 是否小于 10 补零 | false | | disabled | 需要屏蔽的日期 | [] | | 以上原作者配置,以下新增配置 | controllable | 是否可以点击(纯展示建议为 false) | true | | versions | 显示版本(为空则原作者版本,'juli'则纯展示版本) | '' | | isshowtoday | 是否在日期上标注今天 | false | | touchthreshold | 滑动切换的阈值(number 类型 0 为不开启) | 0 |

版本

1.0.0

初步更新,后面改了项目配置已经用不了

鸣谢

日历组件的原作者 jinzhe

大佬的签名果然比较新颖一位合格的前端开发者,应对视觉设计感兴趣。,感谢大佬开源了一个这么好的组件,大大的节省了开发的时间!

说一下我自己 JuLizhanzhan

更多常见我的 nickname 是居里栈栈,微信 QQ 同名,哈哈哈,其实我也就是一个在不断学习的学者,不断的试错也是成长的一部分,希望大家共同进步,学有所成,最后祝大家新年快乐啦,外带提一句寻找高薪工作(h5,web,小程序)和诚接外包项目,有兴趣的朋友们记得找我聊聊,WeChat:812936565(备注 GitHub)