vant/src/field/demo/InputAlign.vue
2020-02-03 11:56:57 +08:00

36 lines
643 B
Vue

<template>
<demo-block :title="$t('inputAlign')">
<van-cell-group>
<van-field
v-model="value"
:label="$t('text')"
:placeholder="$t('alignPlaceHolder')"
input-align="right"
/>
</van-cell-group>
</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>