ci: 国际化

This commit is contained in:
就眠儀式 2022-03-09 11:22:25 +08:00
parent 9fc2b3922f
commit 29ddc72e4b
6 changed files with 36 additions and 15 deletions

View File

@ -5,5 +5,11 @@ export default {
components: "Components", components: "Components",
extend: "Extend", extend: "Extend",
material: "Material" material: "Material"
},
home: {
description: "An enterprise-class UI components based on Layui and Vue.",
version: "version",
changelog: "changelog",
download: "download"
} }
} }

View File

@ -5,5 +5,11 @@ export default {
components: "组件", components: "组件",
extend: "生态", extend: "生态",
material: "物料" material: "物料"
},
home: {
description: "layui - vue谐音类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库.",
version: "当前版本",
changelog: "更新日志",
download: "下载量"
} }
} }

View File

@ -12,8 +12,7 @@
<div class="layui-anim site-desc site-desc-anim"> <div class="layui-anim site-desc site-desc-anim">
<p class="web-font-desc">layui - vue</p> <p class="web-font-desc">layui - vue</p>
<cite <cite
>layui - vue谐音 UI) Vue 3.0 >{{ t('home.description') }}</cite
.</cite
> >
</div> </div>
<div class="site-download"> <div class="site-download">
@ -22,15 +21,15 @@
> >
</div> </div>
<div class="site-version"> <div class="site-version">
<span>当前版本v<cite class="site-showv">0.3.8</cite></span> <span>{{ t('home.version') }}v<cite class="site-showv">0.3.8</cite></span>
<span <span
><router-link ><router-link
class="layui-inline site-down" class="layui-inline site-down"
to="/zh-CN/guide/changelog" to="/zh-CN/guide/changelog"
>更新日志</router-link >{{ t('home.changelog') }}</router-link
></span ></span
> >
<span>下载量<em class="site-showdowns">4680</em></span> <span>{{ t('home.download') }}<em class="site-showdowns">4680</em></span>
</div> </div>
</div> </div>
<div class="site-banner-other"> <div class="site-banner-other">
@ -40,7 +39,7 @@
rel="nofollow" rel="nofollow"
class="site-star" class="site-star"
> >
<i class="layui-icon"></i> Star <cite id="getStars">657</cite> <i class="layui-icon"></i> Star <cite id="getStars">699</cite>
</a> </a>
<a <a
href="https://gitee.com/layui-vue" href="https://gitee.com/layui-vue"
@ -101,13 +100,27 @@
</div> </div>
<div class="footer footer-index"> <div class="footer footer-index">
<p> <p>
Copyright © 2021 <a href="/index.html">layui-vue.pearadmin.com</a> MIT Copyright © 2022 <a href="/index.html">www.layui-vue.com</a> mit
Licensed licence
</p> </p>
<p></p> <p></p>
</div> </div>
</div> </div>
</template> </template>
<script>
import { useI18n } from 'vue-i18n';
export default {
name: "index",
setup() {
const { t } = useI18n();
return {
t
}
}
}
</script>
<style> <style>
.site-container { .site-container {
margin-top: 60px; margin-top: 60px;

View File

@ -13,5 +13,3 @@ export function throttle(func: Function) {
export function handle_select(e: Event): void { export function handle_select(e: Event): void {
e.preventDefault(); e.preventDefault();
} }

View File

@ -190,7 +190,6 @@ onMounted(() => {
@click.stop="rowClick(data)" @click.stop="rowClick(data)"
@dblclick.stop="rowDoubleClick(data)" @dblclick.stop="rowDoubleClick(data)"
> >
<td v-if="checkbox" class="layui-table-col-special"> <td v-if="checkbox" class="layui-table-col-special">
<div class="layui-table-cell laytable-cell-checkbox"> <div class="layui-table-cell laytable-cell-checkbox">
<LayCheckbox <LayCheckbox
@ -223,7 +222,6 @@ onMounted(() => {
</div> </div>
</td> </td>
</template> </template>
</template> </template>
</template> </template>
</tr> </tr>

View File

@ -13,5 +13,5 @@ export function S4() {
* @param null * @param null
* */ * */
export function guid() { export function guid() {
return (S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4()); return S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4();
} }