docs: remove legacy locale mixin

This commit is contained in:
chenjiahan
2020-12-15 17:01:55 +08:00
parent 7c3935dc4c
commit 54fab50c3c
18 changed files with 488 additions and 432 deletions
+19 -16
View File
@@ -8,15 +8,11 @@
<van-row>
<van-col span="4">span: 4</van-col>
<van-col span="10" offset="4">
offset: 4, span: 10
</van-col>
<van-col span="10" offset="4"> offset: 4, span: 10 </van-col>
</van-row>
<van-row>
<van-col offset="12" span="12">
offset: 12, span: 12
</van-col>
<van-col offset="12" span="12"> offset: 12, span: 12 </van-col>
</van-row>
</demo-block>
@@ -55,17 +51,24 @@
</demo-block>
</template>
<script>
<script lang="ts">
import { useTranslate } from '@demo/use-translate';
const i18n = {
'zh-CN': {
title2: '在列元素之间增加间距',
justify: '对齐方式',
},
'en-US': {
title2: 'Column Spacing',
justify: 'Justify Content',
},
};
export default {
i18n: {
'zh-CN': {
title2: '在列元素之间增加间距',
justify: '对齐方式',
},
'en-US': {
title2: 'Column Spacing',
justify: 'Justify Content',
},
setup() {
const t = useTranslate(i18n);
return { t };
},
};
</script>