Skip to content

Commit 4deed66

Browse files
authored
Merge pull request #22 from edisdev/new-version-1.0.0
New version 1.0.0
2 parents 0d0c4bb + 0d4e9e8 commit 4deed66

File tree

12 files changed

+1246
-553
lines changed

12 files changed

+1246
-553
lines changed

README.md

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Vue Datepicker Component
22
>A Datepicker Component For VueJs
33
(https://edisdev.github.io/vue-datepicker-ui)
4-
<img src="./resources/rangePicker.gif" width="70%">
4+
<img src="./resources/datepicker.gif" width="70%">
55
<hr>
66
<img src="./resources/rangepicker.png" width="100%"/>
77
<hr>
88
<img src="./resources/singlepicker.png" width="50%">
99

10+
1011
### Props
1112
``` html
1213
<Calendar
@@ -19,7 +20,10 @@
1920
:disabled-start-date=""
2021
:disabled-end-date=""
2122
:text-format=""
22-
:date-format=""/>
23+
:date-format=""
24+
:disabled=""
25+
:placeholder=""
26+
:circle=""/>
2327
```
2428

2529
Prop | Value
@@ -34,10 +38,73 @@ disabled-start-date | Object . This object consists of the start and end informa
3438
disabled-end-date | Object . It has the same with disabled-start-end. (For range status of end Date. Ignored in single status.)
3539
text-format | String / Short And Long / Short and long formats of month and day names
3640
date-format | Object / This is the format in which the selected date will be displayed to the user. / default: { day: '2-digit', month: 'long', year: 'numeric' }
41+
disabled | Boolean / This parameter is the datepicker prevents opening / default: false
42+
placeholder | String / Input placeholder / default: 'Select Date'
43+
circle | Boolean / This is selected are circle or area
3744

3845

39-
DEMO (https://edisdev.github.io/vue-datepicker-ui)
46+
and customize style with css variables
4047

48+
<img src="./resources/customize.png">
49+
50+
```css
51+
element {
52+
--v-calendar-picker-color: #fff;
53+
--v-calendar-input-bg-color: #fff;
54+
--v-calendar-input-bg-disable-color:rgb(245, 245, 245);
55+
--v-calendar-input-text-disable-color:#b8b8b9;
56+
--v-calendar-select-bg-color: #fff;
57+
--v-calendar-border-color: #eaeaeb;
58+
--v-calendar-triangle-color: #eaeaeb;
59+
--v-calendar-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.2);
60+
--v-calendar-top-shadow: 3px -14px 30px 0px rgba(0, 0, 0, 0.2);
61+
--v-calendar-text-color: #7b8187;
62+
--v-calendar-action-color: #7b8187;
63+
--v-calendar-text-disabled-color: #b8b8b9;
64+
--v-calendar-view-button-color: #7b8187;
65+
--v-calendar-view-button-font-weight: 400;
66+
--v-calendar-view-button-font-size: 1rem;
67+
--v-calendar-datepicker-icon-color: #1bba67;
68+
--v-calendar-datepicker-icon-size: 1.1rem;
69+
--v-calendar-active-bg-color: #1bba67;
70+
--v-calendar-active-text-color: #fff;
71+
--v-calendar-range-bg-color: #edfff9;
72+
--v-calendar-range-text-color: #7b8187;
73+
--v-calendar-range-radius: 100%;
74+
--v-calendar-day-hover-bg-color: #eaeaeb;
75+
--v-calendar-day-width: 40px;
76+
--v-calendar-day-height: 40px;
77+
--v-calendar-day-font-size: 0.9rem;
78+
--v-calendar-day-font-weight: 400;
79+
--v-calendar-day-name-font-size: 0.9rem;
80+
--v-calendar-day-name-font-weight: 500;
81+
--v-calendar-day-name-color: #7b8187;
82+
--v-calendar-input-border: 1px solid #eaeaeb;
83+
--v-calendar-input-text-color: #7b8187;
84+
--v-calendar-input-font-size: 0.9rem;
85+
--v-calendar-input-font-weight: 400;
86+
--v-calendar-content-radius: 0px;
87+
--v-calendar-year-font-size: 1.1rem;
88+
--v-calendar-year-color: #7b8187;
89+
--v-calendar-year-font-weight: 400;
90+
--v-calendar-year-disabled-color: #b8b8b9;
91+
--v-calendar-year-disabled-bg-color: transparent;
92+
--v-calendar-year-padding: 10px;
93+
--v-calendar-year-border: none;
94+
--v-calendar-year-border-radius: none;
95+
--v-calendar-month-font-size: 1.1rem;
96+
--v-calendar-month-color: #7b8187;
97+
--v-calendar-month-font-weight: 400;
98+
--v-calendar-month-disabled-color: #b8b8b9;
99+
--v-calendar-month-disabled-bg-color: transparent;
100+
--v-calendar-month-padding: 8px;
101+
--v-calendar-month-border: none;
102+
--v-calendar-month-border-radius: none;
103+
}
104+
```
105+
106+
107+
DEMO (https://edisdev.github.io/vue-datepicker-ui)
41108

42109
#### note:
43110
**date-format** object values is consists to toLocaleString in js. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString).

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8-
<title>vue-datepicker-ui</title>
8+
<title>VUE DATEPICKER UI - EXAMPLES</title>
99
</head>
1010
<body>
1111
<noscript>

resources/customize.png

770 KB
Loading

resources/datepicker.gif

927 KB
Loading

resources/rangePicker.gif

-1.99 MB
Binary file not shown.

resources/rangepicker.png

-19.2 KB
Loading

resources/singlepicker.png

3.94 KB
Loading

0 commit comments

Comments
 (0)