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
0734dc79
Commit
0734dc79
authored
Aug 06, 2019
by
SeongYeob Jeong
Committed by
hetech
Aug 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calendar : Fix weekdays i18n issue (#16772)
parent
b8e96b35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
packages/calendar/src/date-table.vue
packages/calendar/src/date-table.vue
+8
-1
No files found.
packages/calendar/src/date-table.vue
View file @
0734dc79
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
import
fecha
from
'
element-ui/src/utils/date
'
;
import
fecha
from
'
element-ui/src/utils/date
'
;
import
{
range
as
rangeArr
,
getFirstDayOfMonth
,
getPrevMonthLastDays
,
getMonthDays
,
getI18nSettings
,
validateRangeInOneMonth
}
from
'
element-ui/src/utils/date-util
'
;
import
{
range
as
rangeArr
,
getFirstDayOfMonth
,
getPrevMonthLastDays
,
getMonthDays
,
getI18nSettings
,
validateRangeInOneMonth
}
from
'
element-ui/src/utils/date-util
'
;
const
WEEK_DAYS
=
getI18nSettings
().
dayNames
;
export
default
{
export
default
{
props
:
{
props
:
{
selectedDay
:
String
,
// formated date yyyy-MM-dd
selectedDay
:
String
,
// formated date yyyy-MM-dd
...
@@ -21,6 +20,12 @@ export default {
...
@@ -21,6 +20,12 @@ export default {
inject
:
[
'
elCalendar
'
],
inject
:
[
'
elCalendar
'
],
data
()
{
return
{
WEEK_DAYS
:
getI18nSettings
().
dayNames
};
},
methods
:
{
methods
:
{
toNestedArr
(
days
)
{
toNestedArr
(
days
)
{
return
rangeArr
(
days
.
length
/
7
).
map
((
_
,
index
)
=>
{
return
rangeArr
(
days
.
length
/
7
).
map
((
_
,
index
)
=>
{
...
@@ -142,6 +147,8 @@ export default {
...
@@ -142,6 +147,8 @@ export default {
weekDays
()
{
weekDays
()
{
const
start
=
this
.
firstDayOfWeek
;
const
start
=
this
.
firstDayOfWeek
;
const
{
WEEK_DAYS
}
=
this
;
if
(
typeof
start
!==
'
number
'
||
start
===
0
)
{
if
(
typeof
start
!==
'
number
'
||
start
===
0
)
{
return
WEEK_DAYS
.
slice
();
return
WEEK_DAYS
.
slice
();
}
else
{
}
else
{
...
...
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