mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-28 17:42:04 +08:00
34 lines
585 B
Vue
34 lines
585 B
Vue
<template>
|
|
<demo-block :title="t('inputAlign')">
|
|
<van-field
|
|
v-model="value"
|
|
:label="t('text')"
|
|
:placeholder="t('alignPlaceHolder')"
|
|
input-align="right"
|
|
/>
|
|
</demo-block>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
i18n: {
|
|
'zh-CN': {
|
|
text: '文本',
|
|
inputAlign: '输入框内容对齐',
|
|
alignPlaceHolder: '输入框内容右对齐',
|
|
},
|
|
'en-US': {
|
|
text: 'Text',
|
|
inputAlign: 'Input Align',
|
|
alignPlaceHolder: 'Input Align Right',
|
|
},
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
value: '',
|
|
};
|
|
},
|
|
};
|
|
</script>
|