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-picker-mobile

v1.1.11

Published

a date picker component form vue mobile H5

Downloads

19

Readme

vue-calendar-picker-mobile

基于 Vue 的移动版日期选择组件

使用方式

安装

npm install vue-calendar-picker-mobile --save

使用


//引入并安装

import {
    CalendarBase,
    Calendar,
    CalendarRange,

    CalendarMonthBase,
    CalendarMonth,
    CalendarMonthRange,

    CalendarYearBase,
    CalendarYear,
    CalendarYearRange
    } from "vue-calendar-picker-mobile"

Vue.use(CalendarBase) //基础日期组件可嵌套在页面中
Vue.use(Calendar) //日期单选组件
Vue.use(CalendarRange)//日期多选组件

Vue.use(CalendarMonthBase) //基础月份组件可嵌套在页面中
Vue.use(CalendarMonth) //月份单选组件
Vue.use(CalendarMonthRange)//月份多选组件

Vue.use(CalendarYearBase) //基础年份组件可嵌套在页面中
Vue.use(CalendarYear) //年份单选组件
Vue.use(CalendarYearRange)//年份多选组件


//页面中使用
<calendar-base v-model="basedate"></calendar-base>

<calendar v-model="singledate"></calendar>

<calendar-range v-model="daterange"></calendar-range>

相关属性

| 参数 | 说明 | 类型 | 可选值 | 默认值 | 适用组件 | | ----------------- | ---------------------------- | --------------------- | ---------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------- | | value / v-model | 绑定值 | Array(日期数组), Date | - | - | 所有 | | format | 日期格式 | String | 参考moment库日期格式 | YYYY-MM-DD | 所有 | | placeholder | 非范围选择时的占位内容 | String | - | 选择日期 | calendar/calendar-month/ calendar-year | | start-placeholder | 范围选择时开始日期的占位内容 | String | - | 开始日期/开始月份/开始年份 | calendar-range/calendar-month-range/calendar-year-range | | end-placeholder | 范围选择时结束日期的占位内容 | String | - | 结束日期/结束月份/结束年份 | calendar-range/calendar-month-range/calendar-year-range | | range-separator | 选择范围时的分隔符 | String | - | 至 | calendar-range/calendar-month-range/calendar-year-range | | z-index | css 层级 | Number | - | 1000 | calendar/calendar-range/calendar-month/calendar-month-range/ calendar-year/calendar-year-range |

事件

| 事件名 | 说明 | 参数 | | ------ | ---------------------- | -------------------- | | change | 用户确认选定的值时触发 | 组件绑定值,Date 类型 |