Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
00541514
Commit
00541514
authored
Jun 21, 2017
by
杨奕
Committed by
cinwell.li
Jun 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DatePicker: use fecha i18n (#5485)
parent
979ce8da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
packages/date-picker/src/util/index.js
packages/date-picker/src/util/index.js
+11
-0
No files found.
packages/date-picker/src/util/index.js
View file @
00541514
import
dateUtil
from
'
element-ui/src/utils/date
'
;
import
{
t
}
from
'
element-ui/src/locale
'
;
const
weeks
=
[
'
sun
'
,
'
mon
'
,
'
tue
'
,
'
wed
'
,
'
thu
'
,
'
fri
'
,
'
sat
'
];
const
months
=
[
'
jan
'
,
'
feb
'
,
'
mar
'
,
'
apr
'
,
'
may
'
,
'
jun
'
,
'
jul
'
,
'
aug
'
,
'
sep
'
,
'
oct
'
,
'
nov
'
,
'
dec
'
];
dateUtil
.
i18n
=
{
dayNamesShort
:
weeks
.
map
(
week
=>
t
(
`el.datepicker.weeks.
${
week
}
`
)),
dayNames
:
weeks
.
map
(
week
=>
t
(
`el.datepicker.weeks.
${
week
}
`
)),
monthNamesShort
:
months
.
map
(
month
=>
t
(
`el.datepicker.months.
${
month
}
`
)),
monthNames
:
months
.
map
((
month
,
index
)
=>
t
(
`el.datepicker.month
${
index
+
1
}
`
))
};
const
newArray
=
function
(
start
,
end
)
{
let
result
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment