mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +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:
@@ -13,8 +13,6 @@
|
||||
<script>
|
||||
import Picker from '../picker';
|
||||
|
||||
const allowedType = ['time', 'date', 'datetime'];
|
||||
|
||||
export default {
|
||||
name: 'van-datetime-picker',
|
||||
|
||||
@@ -25,10 +23,7 @@ export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'datetime',
|
||||
validator(value) {
|
||||
return allowedType.indexOf(value) > -1;
|
||||
}
|
||||
default: 'datetime'
|
||||
},
|
||||
format: {
|
||||
type: String,
|
||||
@@ -58,7 +53,7 @@ export default {
|
||||
type: Number,
|
||||
default: 23
|
||||
},
|
||||
value: null
|
||||
value: {}
|
||||
},
|
||||
|
||||
data() {
|
||||
|
Reference in New Issue
Block a user