
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@lazy-copilot/datetimepicker
Advanced tools
RWD friendly date+time picker for Vue. Supports date, datetime and time modes, and disabling dates.
https://vue-datetimepicker.github.io/package/
The DateTimePicker
components are designed to fit all date
and time
selection, including features of :
$ npm install @lazy-copilot/datetimepicker
or
$ yarn add @lazy-copilot/datetimepicker
Bascilly we initalize the dateTimePicker
component by given props, the common use case is to reassign date and time to a data.
And we get the updated value by vue @event @onChange="data=$event"
.
Name | Data Type | Example | Description |
---|---|---|---|
startDate | Date | new Date() | |
endDate | Date | above | |
singleDate | Boolean | true | Range/Single selection, default false |
Name | Data Type | Example | Description |
---|---|---|---|
onChange | function | ()=>{} |
<template>
<date-time-picker
:startDate = "startDate" //optional
:endDate = "endDate" //optional
:singleDate = "true" //optional, default false
@onChange = "onChange" //optional
/>
</template>
<script>
import '@lazy-copilot/datetimepicker/dist/datetimepicker.css'
import { DateTimePicker } from "@lazy-copilot/datetimepicker";
export default {
name: "app",
components: {
DateTimePicker
},
methods: {
onChange: function(data) {
console.log("data: ", data);
}
},
data: function() {
return {
startDate: new Date("2018-12-13T00:03"),
endDate: new Date("2018-12-16T23:29")
};
}
}
</script>
Selecting Date and Time got so many different scenario, and there is no silver bullet, no such single component fullfill all usecases.
And our solution is decompositing dateTimePicker.vue
to four components.
To See more example, please checkout ./demo/src/App.vue
.
import { DateTimePicker } from "@lazy-copilot/datetimepicker";
import { DateTimePickerModal } from "@lazy-copilot/datetimepicker";
import { DatePicker } from "@lazy-copilot/datetimepicker";
import { TimePicker } from "@lazy-copilot/datetimepicker";
The time-picker
here is a customized version of the awesome project vue2-timepicker
by phoenixwong
.
FAQs
## Project setup ``` npm install ```
The npm package @lazy-copilot/datetimepicker receives a total of 0 weekly downloads. As such, @lazy-copilot/datetimepicker popularity was classified as not popular.
We found that @lazy-copilot/datetimepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.