Commit 202bbe11 authored by shuiluo's avatar shuiluo

feat: 国际化优化

parent 23b4a568
...@@ -35,16 +35,16 @@ ...@@ -35,16 +35,16 @@
</a-radio> </a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="3">具体秒数(可多选)</a-radio> <a-radio value="3">{{ $t('corn.specificSeconds') }}</a-radio>
<a-select <a-select
style="width: 354px" style="width: 354px"
size="small" size="small"
mode="multiple" mode="multiple"
v-model="result.second.specificSpecific" v-model="result.second.specificSpecific"
> >
<a-select-option v-for="(val, index) in 60" :key="index" :value="index">{{ <a-select-option v-for="(val, index) in 60" :key="index" :value="index">
index {{ index }}
}}</a-select-option> </a-select-option>
</a-select> </a-select>
</a-row> </a-row>
<a-row> <a-row>
...@@ -55,25 +55,23 @@ ...@@ -55,25 +55,23 @@
v-model="result.second.rangeStart" v-model="result.second.rangeStart"
:min="1" :min="1"
:max="60" :max="60"
></a-input-number />
>
<a-input-number <a-input-number
size="small" size="small"
v-model="result.second.rangeEnd" v-model="result.second.rangeEnd"
:min="0" :min="0"
:max="59" :max="59"
></a-input-number />
>
</a-radio> </a-radio>
</a-row> </a-row>
</a-radio-group> </a-radio-group>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="2"> <a-tab-pane key="2">
<span slot="tab"> <a-icon type="schedule" /></span> <span slot="tab"> <a-icon type="schedule" />{{ $t('corn.minute') }}</span>
<div class="tabBody"> <div class="tabBody">
<a-radio-group v-model="result.minute.cronEvery"> <a-radio-group v-model="result.minute.cronEvery">
<a-row> <a-row>
<a-radio value="1">每一分钟</a-radio> <a-radio value="1">{{ $t('corn.everyMinute') }}</a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="2"> <a-radio value="2">
...@@ -83,19 +81,17 @@ ...@@ -83,19 +81,17 @@
v-model="result.minute.incrementIncrement" v-model="result.minute.incrementIncrement"
:min="1" :min="1"
:max="60" :max="60"
></a-input-number />分执行 从
>分执行 从
<a-input-number <a-input-number
size="small" size="small"
v-model="result.minute.incrementStart" v-model="result.minute.incrementStart"
:min="0" :min="0"
:max="59" :max="59"
></a-input-number />分开始
>分开始
</a-radio> </a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="3">具体分钟数(可多选)</a-radio> <a-radio value="3">{{ $t('corn.specificMinutes') }}</a-radio>
<a-select <a-select
style="width: 340px" style="width: 340px"
size="small" size="small"
...@@ -106,8 +102,9 @@ ...@@ -106,8 +102,9 @@
v-for="(val, index) in Array(60)" v-for="(val, index) in Array(60)"
:key="index" :key="index"
:value="index" :value="index"
>{{ index }}</a-select-option
> >
{{ index }}
</a-select-option>
</a-select> </a-select>
</a-row> </a-row>
<a-row> <a-row>
...@@ -118,15 +115,12 @@ ...@@ -118,15 +115,12 @@
v-model="result.minute.rangeStart" v-model="result.minute.rangeStart"
:min="1" :min="1"
:max="60" :max="60"
></a-input-number /><a-input-number
>
<a-input-number
size="small" size="small"
v-model="result.minute.rangeEnd" v-model="result.minute.rangeEnd"
:min="0" :min="0"
:max="59" :max="59"
></a-input-number />
>
</a-radio> </a-radio>
</a-row> </a-row>
</a-radio-group> </a-radio-group>
...@@ -159,16 +153,16 @@ ...@@ -159,16 +153,16 @@
</a-radio> </a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio class="long" value="3">具体小时数(可多选)</a-radio> <a-radio class="long" value="3">{{ $t('corn.specificHours') }}</a-radio>
<a-select <a-select
style="width: 340px" style="width: 340px"
size="small" size="small"
mode="multiple" mode="multiple"
v-model="result.hour.specificSpecific" v-model="result.hour.specificSpecific"
> >
<a-select-option v-for="(val, index) in Array(24)" :key="index">{{ <a-select-option v-for="(val, index) in Array(24)" :key="index">
index {{ index }}
}}</a-select-option> </a-select-option>
</a-select> </a-select>
</a-row> </a-row>
<a-row> <a-row>
...@@ -194,11 +188,11 @@ ...@@ -194,11 +188,11 @@
</div> </div>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="4"> <a-tab-pane key="4">
<span slot="tab"> <a-icon type="schedule" /></span> <span slot="tab"> <a-icon type="schedule" />{{ $t('corn.day') }}</span>
<div class="tabBody"> <div class="tabBody">
<a-radio-group v-model="result.day.cronEvery"> <a-radio-group v-model="result.day.cronEvery">
<a-row> <a-row>
<a-radio value="1">每一天</a-radio> <a-radio value="1">{{ $t('corn.everyDay') }}</a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="2"> <a-radio value="2">
...@@ -240,7 +234,7 @@ ...@@ -240,7 +234,7 @@
</a-radio> </a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio class="long" value="4">具体星期几(可多选)</a-radio> <a-radio class="long" value="4">{{ $t('corn.specificDayOfWeek') }}</a-radio>
<a-select <a-select
style="width: 340px" style="width: 340px"
size="small" size="small"
...@@ -256,7 +250,7 @@ ...@@ -256,7 +250,7 @@
</a-select> </a-select>
</a-row> </a-row>
<a-row> <a-row>
<a-radio class="long" value="5">具体天数(可多选)</a-radio> <a-radio class="long" value="5">{{ $t('corn.specificDays') }}</a-radio>
<a-select <a-select
style="width: 354px" style="width: 354px"
size="small" size="small"
...@@ -267,15 +261,16 @@ ...@@ -267,15 +261,16 @@
v-for="(val, index) in Array(31)" v-for="(val, index) in Array(31)"
:key="index" :key="index"
:value="index + 1" :value="index + 1"
>{{ index + 1 }}</a-select-option
> >
{{ index + 1 }}
</a-select-option>
</a-select> </a-select>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="6">在这个月的最后一天</a-radio> <a-radio value="6">{{ $t('corn.lastmonth') }}</a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="7">在这个月的最后一个工作日</a-radio> <a-radio value="7">{{ $t('corn.lastWorkingDay') }}</a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="8"> <a-radio value="8">
...@@ -329,8 +324,9 @@ ...@@ -329,8 +324,9 @@
v-for="(val, index) in Array(7)" v-for="(val, index) in Array(7)"
:key="index" :key="index"
:value="index" :value="index"
>{{ weekDays[index] }}</a-select-option
> >
{{ weekDays[index] }}
</a-select-option>
</a-select> </a-select>
</a-radio> </a-radio>
</a-row> </a-row>
...@@ -338,11 +334,11 @@ ...@@ -338,11 +334,11 @@
</div> </div>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="5"> <a-tab-pane key="5">
<span slot="tab"> <a-icon type="schedule" /> </span> <span slot="tab"> <a-icon type="schedule" />{{ $t('corn.month') }} </span>
<div class="tabBody"> <div class="tabBody">
<a-radio-group v-model="result.month.cronEvery"> <a-radio-group v-model="result.month.cronEvery">
<a-row> <a-row>
<a-radio value="1">每一月</a-radio> <a-radio value="1">{{ $t('corn.everyMonth') }}</a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="2"> <a-radio value="2">
...@@ -364,7 +360,7 @@ ...@@ -364,7 +360,7 @@
</a-radio> </a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio class="long" value="3">具体月数(可多选)</a-radio> <a-radio class="long" value="3">{{ $t('corn.specificMonths') }}</a-radio>
<a-select <a-select
style="width: 354px" style="width: 354px"
size="small" size="small"
...@@ -376,8 +372,9 @@ ...@@ -376,8 +372,9 @@
v-for="(val, index) in Array(12)" v-for="(val, index) in Array(12)"
:key="index" :key="index"
:value="index + 1" :value="index + 1"
>{{ index + 1 }}</a-select-option
> >
{{ index + 1 }}
</a-select-option>
</a-select> </a-select>
</a-row> </a-row>
<a-row> <a-row>
...@@ -388,26 +385,24 @@ ...@@ -388,26 +385,24 @@
v-model="result.month.rangeStart" v-model="result.month.rangeStart"
:min="1" :min="1"
:max="12" :max="12"
></a-input-number />
>
<a-input-number <a-input-number
size="small" size="small"
v-model="result.month.rangeEnd" v-model="result.month.rangeEnd"
:min="1" :min="1"
:max="12" :max="12"
></a-input-number />月之间的每个月
>月之间的每个月
</a-radio> </a-radio>
</a-row> </a-row>
</a-radio-group> </a-radio-group>
</div> </div>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="6"> <a-tab-pane key="6">
<span slot="tab"> <a-icon type="schedule" /></span> <span slot="tab"> <a-icon type="schedule" />{{ $t('corn.year') }}</span>
<div class="tabBody"> <div class="tabBody">
<a-radio-group v-model="result.year.cronEvery"> <a-radio-group v-model="result.year.cronEvery">
<a-row> <a-row>
<a-radio value="1">每一年</a-radio> <a-radio value="1">{{ $t('corn.everyYear') }}</a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio value="2"> <a-radio value="2">
...@@ -429,7 +424,7 @@ ...@@ -429,7 +424,7 @@
</a-radio> </a-radio>
</a-row> </a-row>
<a-row> <a-row>
<a-radio class="long" value="3">具体年份(可多选)</a-radio> <a-radio class="long" value="3">{{ $('corn.specificYear') }}</a-radio>
<a-select <a-select
style="width: 354px" style="width: 354px"
size="small" size="small"
......
...@@ -2,7 +2,24 @@ export default { ...@@ -2,7 +2,24 @@ export default {
'corn.title': ['Cron 控件', 'Cron Component'], 'corn.title': ['Cron 控件', 'Cron Component'],
'corn.expression': ['corn表达式', 'Corn Expression'], 'corn.expression': ['corn表达式', 'Corn Expression'],
'corn.close': ['关闭', 'Close'], 'corn.close': ['关闭', 'Close'],
'corn.second': ['', 'second'], 'corn.second': ['', 'Second'],
'corn.everySecond': ['每一秒钟', 'Every Second'], 'corn.everySecond': ['每一秒钟', 'Every Second'],
'corn.everyOther': ['每隔', 'Every Other'], 'corn.everyOther': ['每隔', 'Every Other'],
'corn.specificSeconds': ['具体秒数(可多选)', 'Specific seconds (multiple choices)'],
'corn.everyMinute': ['每一分钟', 'Every Minute'],
'corn.minute': ['', 'Minute'],
'corn.specificMinutes': ['具体分钟数(可多选)', 'Specific minutes (multiple choices)'],
'corn.specificYear': ['具体年份(可多选)', 'Specific year (multiple choices)'],
'corn.everyYear': ['每一年', 'Every Year'],
'corn.year': ['', 'Year'],
'corn.specificMonths': ['具体月数(可多选)', 'Specific months (multiple choices)'],
'corn.everyMonth': ['每一月', 'Every Month'],
'corn.month': ['', 'Month'],
'corn.lastmonth': ['在这个月的最后一天', 'On the last day of the month'],
'corn.lastWorkingDay': ['在这个月的最后一个工作日', 'On the last working day of the month'],
'corn.specificDays': ['具体天数(可多选)', 'Specific days (multiple choices)'],
'corn.specificDayOfWeek': ['具体星期几(可多选)', 'Specific day of the week (multiple choices)'],
'corn.day': ['', 'Day'],
'corn.everyDay': ['每一天', 'Every single day'],
'corn.specificHours': ['具体小时数(可多选)', 'Specific hours (multiple choices)'],
}; };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment