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

@zhaoruiguang/vue2-calendar

v1.0.8

Published

this is a vue2 calendar component

Downloads

2

Readme

@zhaoruiguang/vue2-calendar

项目说明

如果你的项目中没有使用任何 UI 框架,但是又想引入一个单独的日历组件的话,这将是一个很好的选择!
  • 组件功能

    • 一个基于vue.js的、引用方式超级简单的日历控件(直接源码奉上,可自行随意修改)
  • 注意事项

    • 组件本身设置相对定位(relative)属性,如不想影响页面文档样式,可给组件包一个父级盒子,并给父级盒子设置绝对定位(absolute)属性
    • 默认支持 ES6
    • 默认支持 CSS3
    • 默认 vue 版本在 2.0 以上
    • 四个 props 参数:
      • calendarCommit:回调函数,点击日历"确定"按钮时触发;
      • calendarClose: 回调函数,点击日历"取消"或"清空"按钮时触发;
      • calendarFormat:字符串类型参数,日历格式,值为"yy-mm-dd"或"yy-mm-dd hh:mm:ss",默认值"yy-mm-dd";
      • isAbleClean:布尔类型参数,是否显示日历的"清空"按钮,默认显示;
  • 使用示例

    - demo.vue
      
    <template>
        <calendar v-if="calendarState" 
                      v-on:calendarCommit="calendarCommit" 
                      v-on:calendarClose="calendarClose"
                      v-bind:calendarFormat="calendarFormat"
        ></calendar>
    </template>
    <script>
        import calendar from '@zhaoruiguang/vue2-calendar';
        export default{
            components:{
                calendar,
            },
            data(){
                return {
                    calendarState:false,
                    calendarFormat:"yy-mm-dd hh:mm:ss",
                }
            },
            methods:{
                calendarCommit(date){                   // 选中日期回调
                    console.log(date)
                },
                calendarClose(){                        // 关闭日历操作:清空、取消、点击日历以外任意区域
                    this.calendarState = false;
                }
            },
        }
    </script>
      
  • 效果图 截图 截图

  • NPM 安装

    • npm/cnpm install --save-dev @zhaoruiguang/vue2-calendar
  • GitHub 地址

    • https://github.com/ZhaoruiGuang/projects/tree/vue2-calendar