mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[bugfix] remove unnecessary props (#323)
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [bugfix] Search box-sizing wrong * [Doc] update vant-demo respo * [Doc] translate theme & demo pages * [Doc] add Internationalization document * [bugfix] remove unnecessary props
This commit is contained in:
@@ -49,8 +49,6 @@
|
||||
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',
|
||||
|
||||
@@ -62,15 +60,14 @@ export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text',
|
||||
validator: value => VALID_TYPES.indexOf(value) > -1
|
||||
default: 'text'
|
||||
},
|
||||
value: {},
|
||||
icon: String,
|
||||
label: String,
|
||||
error: Boolean,
|
||||
required: Boolean,
|
||||
border: Boolean,
|
||||
required: Boolean,
|
||||
autosize: Boolean,
|
||||
onIconClick: {
|
||||
type: Function,
|
||||
|
Reference in New Issue
Block a user