Skip to content

Commit 54568e1

Browse files
update element examples to 2.13.2
1 parent 52fd9ff commit 54568e1

File tree

1 file changed

+123
-90
lines changed

1 file changed

+123
-90
lines changed

inst/examples/vue_component_examples.R

+123-90
Original file line numberDiff line numberDiff line change
@@ -37,101 +37,134 @@ browsable(
3737
#### Element examples ####################################
3838
element <- htmlDependency(
3939
name = "element",
40-
version = "1.4.13",
41-
src = c(href="https://unpkg.com/element-ui@1.4.13/lib/"),
40+
version = "2.13.2",
41+
src = c(href="https://unpkg.com/element-ui@2.13.2/lib/"),
4242
script = "index.js",
43-
stylesheet = "theme-default/index.css"
43+
stylesheet = "theme-chalk/index.css"
4444
)
4545

4646
tl <- tagList(
4747
tags$script("
48-
ELEMENT.locale(
49-
{
50-
el: {
51-
datepicker: {
52-
now: 'Now',
53-
today: 'Today',
54-
cancel: 'Cancel',
55-
clear: 'Clear',
56-
confirm: 'OK',
57-
selectDate: 'Select date',
58-
selectTime: 'Select time',
59-
startDate: 'Start Date',
60-
startTime: 'Start Time',
61-
endDate: 'End Date',
62-
endTime: 'End Time',
63-
year: '',
64-
month1: 'January',
65-
month2: 'February',
66-
month3: 'March',
67-
month4: 'April',
68-
month5: 'May',
69-
month6: 'June',
70-
month7: 'July',
71-
month8: 'August',
72-
month9: 'September',
73-
month10: 'October',
74-
month11: 'November',
75-
month12: 'December',
76-
// week: 'week',
77-
weeks: {
78-
sun: 'Sun',
79-
mon: 'Mon',
80-
tue: 'Tue',
81-
wed: 'Wed',
82-
thu: 'Thu',
83-
fri: 'Fri',
84-
sat: 'Sat'
85-
},
86-
months: {
87-
jan: 'Jan',
88-
feb: 'Feb',
89-
mar: 'Mar',
90-
apr: 'Apr',
91-
may: 'May',
92-
jun: 'Jun',
93-
jul: 'Jul',
94-
aug: 'Aug',
95-
sep: 'Sep',
96-
oct: 'Oct',
97-
nov: 'Nov',
98-
dec: 'Dec'
99-
}
100-
},
101-
select: {
102-
loading: 'Loading',
103-
noMatch: 'No matching data',
104-
noData: 'No data',
105-
placeholder: 'Select'
106-
},
107-
pagination: {
108-
goto: 'Go to',
109-
pagesize: '/page',
110-
total: 'Total {total}',
111-
pageClassifier: ''
112-
},
113-
messagebox: {
114-
title: 'Message',
115-
confirm: 'OK',
116-
cancel: 'Cancel',
117-
error: 'Illegal input'
118-
},
119-
upload: {
120-
delete: 'Delete',
121-
preview: 'Preview',
122-
continue: 'Continue'
123-
},
124-
table: {
125-
emptyText: 'No Data',
126-
confirmFilter: 'Confirm',
127-
resetFilter: 'Reset',
128-
clearFilter: 'All'
129-
},
130-
tree: {
131-
emptyText: 'No Data'
132-
}
133-
}
134-
})
48+
ELEMENT.locale({
49+
el: {
50+
colorpicker: {
51+
confirm: 'OK',
52+
clear: 'Clear'
53+
},
54+
datepicker: {
55+
now: 'Now',
56+
today: 'Today',
57+
cancel: 'Cancel',
58+
clear: 'Clear',
59+
confirm: 'OK',
60+
selectDate: 'Select date',
61+
selectTime: 'Select time',
62+
startDate: 'Start Date',
63+
startTime: 'Start Time',
64+
endDate: 'End Date',
65+
endTime: 'End Time',
66+
prevYear: 'Previous Year',
67+
nextYear: 'Next Year',
68+
prevMonth: 'Previous Month',
69+
nextMonth: 'Next Month',
70+
year: '',
71+
month1: 'January',
72+
month2: 'February',
73+
month3: 'March',
74+
month4: 'April',
75+
month5: 'May',
76+
month6: 'June',
77+
month7: 'July',
78+
month8: 'August',
79+
month9: 'September',
80+
month10: 'October',
81+
month11: 'November',
82+
month12: 'December',
83+
week: 'week',
84+
weeks: {
85+
sun: 'Sun',
86+
mon: 'Mon',
87+
tue: 'Tue',
88+
wed: 'Wed',
89+
thu: 'Thu',
90+
fri: 'Fri',
91+
sat: 'Sat'
92+
},
93+
months: {
94+
jan: 'Jan',
95+
feb: 'Feb',
96+
mar: 'Mar',
97+
apr: 'Apr',
98+
may: 'May',
99+
jun: 'Jun',
100+
jul: 'Jul',
101+
aug: 'Aug',
102+
sep: 'Sep',
103+
oct: 'Oct',
104+
nov: 'Nov',
105+
dec: 'Dec'
106+
}
107+
},
108+
select: {
109+
loading: 'Loading',
110+
noMatch: 'No matching data',
111+
noData: 'No data',
112+
placeholder: 'Select'
113+
},
114+
cascader: {
115+
noMatch: 'No matching data',
116+
loading: 'Loading',
117+
placeholder: 'Select',
118+
noData: 'No data'
119+
},
120+
pagination: {
121+
goto: 'Go to',
122+
pagesize: '/page',
123+
total: 'Total {total}',
124+
pageClassifier: ''
125+
},
126+
messagebox: {
127+
title: 'Message',
128+
confirm: 'OK',
129+
cancel: 'Cancel',
130+
error: 'Illegal input'
131+
},
132+
upload: {
133+
deleteTip: 'press delete to remove',
134+
delete: 'Delete',
135+
preview: 'Preview',
136+
continue: 'Continue'
137+
},
138+
table: {
139+
emptyText: 'No Data',
140+
confirmFilter: 'Confirm',
141+
resetFilter: 'Reset',
142+
clearFilter: 'All',
143+
sumText: 'Sum'
144+
},
145+
tree: {
146+
emptyText: 'No Data'
147+
},
148+
transfer: {
149+
noMatch: 'No matching data',
150+
noData: 'No data',
151+
titles: ['List 1', 'List 2'], // to be translated
152+
filterPlaceholder: 'Enter keyword', // to be translated
153+
noCheckedFormat: '{total} items', // to be translated
154+
hasCheckedFormat: '{checked}/{total} checked' // to be translated
155+
},
156+
image: {
157+
error: 'FAILED'
158+
},
159+
pageHeader: {
160+
title: 'Back' // to be translated
161+
},
162+
popconfirm: {
163+
confirmButtonText: 'Yes',
164+
cancelButtonText: 'No'
165+
}
166+
}
167+
})
135168
"),
136169
tags$div(
137170
id="app",

0 commit comments

Comments
 (0)