Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue2-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue2-datepicker - npm Package Versions

1
10

3.1.0

Diff

Changelog

Source

3.1.0 (2019-11-21)

Bug Fixes

  • ie style compatible (e69b9b7)
  • move sidebar element to right position (32c74a4)

Features

  • add slot input (ffd3918)
  • export the scss for custom style (09a4d8f)

<a name="3.0.2"></a>

mxie
published 3.0.2 •

Changelog

Source

3.0.2 (2019-11-14)

Bug Fixes

  • compatible with vue old version inject (c03632f)
  • should return [null, null] when clear a range (635631f)
  • when year < 100 && year >= 0, the date should be right (8c546cc)

Features

  • add prop partial-update. It'll update the date when select year or month in type='date' or type='datetime' (07f4271)

<a name="3.0.1"></a>

mxie
published 3.0.1 •

Changelog

Source

3.0.1 (2019-11-11)

Bug Fixes

<a name="3.0.0"></a>

mxie
published 3.0.0 •

Changelog

Source

3.0.0 (2019-11-10)

Bug Fixes

  • localization (lang) is not used for date formatting

Features

  • Add week picker

    <date-picer type="week" />
    
  • Add inline calendar without input

    <date-picker inline />
    
  • Add prop open to control the state of popup

  • Add select am/pm, when use12hours

  • Add event open and close

  • Add hourStep/minuteStep/secondStep/showHour/showMinute/showSecond/use12h to time picker for more configuration

Breaking changes

  • Need to import style separately

  • Change the default language to English. And need to import file to change the language.

  • Range selection refactoring, you can select a range on one calendar now, and need to click twice to select a range each time.

  • Change slot calendar-icon to icon-calendar.

  • appendToBody default value changes from false to true.

  • Remove not-before and not-after, use disabledDate instead.

    <template>
      <date-picker :disabled-date="notBeforeToday"></date-picker>
      <date-picker :disabled-date="notAfterToday"></date-picker>
    </template>
    <script>
      export default {
        methods: {
          notBeforeToday(date) {
            const today = new Date();
            today.setHours(0, 0, 0, 0);
            return date.getTime() < today.getTime();
          },
          notAfterToday(date) {
            const today = new Date();
            today.setHours(0, 0, 0, 0);
            return date.getTime() > today.getTime();
          },
        },
      };
    </script>
    
  • Remove width, use style="{ width: "" }" instead.

  • modify shortcuts api.

    [
      { text: 'today', onClick: () => new Date() // return a Date }
    ];
    
    
  • Remove prop firstDayOfWeek to locale.

mxie
published 3.0.0-beta.1 •

Changelog

Source

3.0.0 (2019-11-10)

Bug Fixes

  • localization (lang) is not used for date formatting

Features

  • Add week picker

    <date-picer type="week" />
    
  • Add inline calendar without input

    <date-picker inline />
    
  • Add prop open to control the state of popup

  • Add select am/pm, when use12hours

  • Add event open and close

  • Add hourStep/minuteStep/secondStep/showHour/showMinute/showSecond/use12h to time picker for more configuration

Breaking changes

  • Need to import style separately

  • Change the default language to English. And need to import file to change the language.

  • Range selection refactoring, you can select a range on one calendar now, and need to click twice to select a range each time.

  • Change slot calendar-icon to icon-calendar.

  • appendToBody default value changes from false to true.

  • Remove not-before and not-after, use disabledDate instead.

    <template>
      <date-picker :disabled-date="notBeforeToday"></date-picker>
      <date-picker :disabled-date="notAfterToday"></date-picker>
    </template>
    <script>
      export default {
        methods: {
          notBeforeToday(date) {
            const today = new Date();
            today.setHours(0, 0, 0, 0);
            return date.getTime() < today.getTime();
          },
          notAfterToday(date) {
            const today = new Date();
            today.setHours(0, 0, 0, 0);
            return date.getTime() > today.getTime();
          },
        },
      };
    </script>
    
  • Remove width, use style="{ width: "" }" instead.

  • modify shortcuts api.

    [
      { text: 'today', onClick: () => new Date() // return a Date }
    ];
    
    
  • Remove prop firstDayOfWeek to locale.

mxie
published 2.13.3 •

Changelog

Source

2.13.3 (2019-10-29)

Bug Fixes

mxie
published 2.13.2 •

Changelog

Source

2.13.2 (2019-10-23)

Bug Fixes

mxie
published 2.13.1 •

Changelog

Source

2.13.1 (2019-10-22)

Bug Fixes

mxie
published 2.13.0 •

Changelog

Source

2.13.0 (2019-10-14)

Bug Fixes

  • removed keyboard event stopPropagation (864ab83)
  • the clickoutside don't work sometimes (#326) (d9619f8)

Features

  • add prop icon-day to set calendar icon day (62c3d60)
mxie
published 2.12.0 •

Changelog

Source

2.12.0 (2019-06-25)

Features

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc