update doc

This commit is contained in:
陈嘉涵
2017-08-31 10:38:05 +08:00
parent 7574962af6
commit a2a8523da1
6 changed files with 18 additions and 21 deletions

View File

@@ -47,10 +47,11 @@
</template>
<script>
const VALID_TYPES = ['text', 'number', 'email', 'url', 'tel', 'date', 'time', 'datetime', 'password', 'textarea'];
import Cell from '../cell';
import Icon from '../icon';
const VALID_TYPES = ['text', 'number', 'email', 'url', 'tel', 'date', 'time', 'datetime', 'password', 'textarea'];
export default {
name: 'van-field',
@@ -63,15 +64,14 @@ export default {
type: {
type: String,
default: 'text',
validator(value) {
return VALID_TYPES.indexOf(value) > -1;
}
validator: value => VALID_TYPES.indexOf(value) > -1
},
placeholder: String,
value: {},
icon: String,
label: String,
disabled: Boolean,
placeholder: String,
error: Boolean,
disabled: Boolean,
readonly: Boolean,
required: Boolean,
maxlength: [String, Number],
@@ -82,7 +82,6 @@ export default {
type: Boolean,
default: false
},
icon: String,
onIconClick: {
type: Function,
default: () => {}