Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@lazy-bee/datetimepicker
Advanced tools
RWD friendly date+time picker for Vue. Supports date, datetime and time modes, and disabling dates.
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-bee/datetimepicker receives a total of 0 weekly downloads. As such, @lazy-bee/datetimepicker popularity was classified as not popular.
We found that @lazy-bee/datetimepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.