-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1015 from iview/2.0
添加多语言示例页,支持自定义指定首页
- Loading branch information
Showing
12 changed files
with
145 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<div> | ||
<Row :gutter="10"> | ||
<i-col span="6"> | ||
<Card> | ||
<div class="i18n-card-box"> | ||
<DatePicker type="date" placeholder="Select date"></DatePicker> | ||
<TimePicker type="timerange" placement="bottom-end" placeholder="Select time" style="display: block;margin-top: 10px;"></TimePicker> | ||
<Button type="primary" @click="modalVisible = true" style="margin-top: 10px;">{{ $t('buttonText') }}</Button> | ||
<Modal | ||
v-model="modalVisible" | ||
:title="$t('modalTitle')"> | ||
<p>{{ content }}</p> | ||
<p>{{ content }}</p> | ||
<p>{{ content }}</p> | ||
</Modal> | ||
<i class="tip">{{ $t('i18n-tip') }}</i> | ||
</div> | ||
</Card> | ||
</i-col> | ||
</Row> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'i18n_page', | ||
data () { | ||
return { | ||
modalVisible: false | ||
} | ||
}, | ||
computed: { | ||
content () { | ||
return this.$t('content') | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="less"> | ||
.i18n-card-box{ | ||
height: 200px; | ||
.tip{ | ||
color: gray; | ||
display: block; | ||
margin-top: 20px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters