Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2e716e32
authored
2020-01-02 16:29:47 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
8ff75b2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/components/date-picker/date-picker.js
src/components/date-picker/date-picker.js
View file @
2e716e3
...
...
@@ -370,12 +370,14 @@ export default {
let
dateValue
=
this
.
dateValue
;
let
fortmatMonthData
=
this
.
fortmatMonthData
;
fortmatMonthData
.
forEach
((
element
,
idx
)
=>
{
let
curDate
=
`
${
element
.
year
}
-
${
element
.
month
}
-
${
element
.
date
}
`
;
if
(
curDate
==
dateValue
&&
element
.
disable
==
true
)
{
disable
=
true
;
if
(
element
)
{
let
curDate
=
`
${
element
.
year
}
-
${
element
.
month
}
-
${
element
.
date
}
`
;
if
(
curDate
==
dateValue
&&
element
.
disable
==
true
)
{
disable
=
true
;
}
}
});
if
(
!
disable
)
{
if
(
!
disable
)
{
disable
=
!
/^
((?!
0000
)[
0-9
]{4}
-
((
0
[
1-9
]
|1
[
0-2
])
-
(
0
[
1-9
]
|1
[
0-9
]
|2
[
0-8
])
|
(
0
[
13-9
]
|1
[
0-2
])
-
(
29|30
)
|
(
0
[
13578
]
|1
[
02
])
-31
)
|
([
0-9
]{2}(
0
[
48
]
|
[
2468
][
048
]
|
[
13579
][
26
])
|
(
0
[
48
]
|
[
2468
][
048
]
|
[
13579
][
26
])
00
)
-02-29
)
$/
.
test
(
dateValue
);
}
let
result
=
{
...
...
Please
register
or
sign in
to post a comment