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

dlrdatepickerrange

v1.0.3

Published

日周控件,时间可固定

Downloads

3

Readme

日期范围选择

日历选择器:【m端日历,无依赖性】 1: 支持跨年设置,可设置最小年月、最大年月 2: 按月 周维度查询,支持周跨月情景查询 备注: 使用插件前请确认是否满足业务需求,如有合理的个性化需求,控件会考虑后期整理迭代 体积: 40K


git 地址:

https://git.corpautohome.com/gp_rd_fe_dealer/Dealer_Components/commits/picker

cdn 地址:

<script src="https://s.autoimg.cn/dealer/m/dealerUI/dlrvue/vue/vue.min.js"></script>
<script src="https://s.autoimg.cn/dealer/m/dealerUI/dlrvue/datePickerRange/datePickerRange.min.0.0.1.js"></script>

demo 页

http://10.168.66.123:9090/out/dealerUI/demo/components/picker

node 环境引入

1:安装 
  npm install dlrpicker (如指定版本号:npm install [email protected])

2:引入并注册
  import Vue from 'vue'
  import dlrDatePickerRange from 'dlrdatepickerrange'
  Vue.use(dlrDatePickerRange)

例子

代码示例

<section class="page-wraper">
  <div class="dlr-formlist-link">
    <button @click="showDatePickerRange()">
            经销商-日历控件【周范围】
    </button>
  </div>

  <dlr-date-picker-range ref="picker"
      v-model="picker.show"
      :format="picker.format"
      :title="'选择周期'"
      :start-date="picker.start"
      :end-date="picker.end"
      @on-select="dateConfirmHandler">
  </dlr-date-picker-range>



</section>

</template>

<script>
export default {
  data() {
    return {
      picker: {
        format:'yyyy-mm-rg',
        show: false,
        start: new Date(2017, 10, 5),
        end: new Date(2020, 2, 1)
      }
    }
  },
  mounted() {
    
  },
  methods:{
    showDatePickerRange() {
      this.picker.show = true
    },
    dateConfirmHandler: function (data) {
      console.log(data)
    }
  }
}
</script>

API

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |------|-------|---------|-------|--------| | title | 显示标题 | String | | 见demo | | start-date | 开始日期 | Date | | 见demo | | end-date | 结束日期 | Date | | 见demo | | v-model | 显示、关闭控件 | Boolean | | 见demo | | format | 格式 | String | 'yyyy-mm-rg' | 见demo |

Event

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |------|-------|---------|-------|--------| | on-select | 日历选择回调 | | | 见demo |