(component): 调整 locale 文档

This commit is contained in:
就眠儀式 2022-10-25 21:41:15 +08:00
parent 52372946ab
commit 8e0aa81f61

View File

@ -31,15 +31,9 @@ import { useI18n } from "@layui/layui-vue";
const { t } = useI18n(); const { t } = useI18n();
const locales = [ const locales = [
'zh_CN': { { name: "zh_CN", locale: {hello: "你好, layui-vue。"}, merge: true },
hello: '你好', { name: "en_US", locale: {hello: "hello, layui-vue。"}, merge: true },
title: '标题' ]
},
'en_US': {
hello: 'hello',
title: 'title'
}
];
</script> </script>
``` ```
::: table ::: table