style(Field): adjust field placeholder color to gray-5 (#6304)

This commit is contained in:
neverland
2020-05-19 11:04:16 +08:00
committed by GitHub
parent 8317fe70ee
commit ee599ddcbe
5 changed files with 12 additions and 5 deletions
+7 -1
View File
@@ -1,7 +1,11 @@
<template>
<demo-block :title="t('basicUsage')">
<van-cell-group>
<van-field v-model="value" :placeholder="t('placeholder')" />
<van-field
v-model="value"
:label="t('label')"
:placeholder="t('placeholder')"
/>
</van-cell-group>
</demo-block>
</template>
@@ -10,9 +14,11 @@
export default {
i18n: {
'zh-CN': {
label: '文本',
placeholder: '请输入文本',
},
'en-US': {
label: 'Label',
placeholder: 'Text',
},
},