Skip to content

Commit

Permalink
Do not force two-way binding (close airyland#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Oct 2, 2016
1 parent 81ca46b commit ba3a5b1
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 38 deletions.
6 changes: 1 addition & 5 deletions src/components/actionsheet/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ export default {
this.$tabbar = document.querySelector('.weui_tabbar')
},
props: {
show: {
type: Boolean,
required: true,
twoWay: true
},
show: Boolean,
showCancel: Boolean,
cancelText: {
type: String,
Expand Down
5 changes: 1 addition & 4 deletions src/components/color-picker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export default {
type: String,
default: 'large'
},
value: {
type: String,
twoWay: true
}
value: String
},
computed: {
width () {
Expand Down
6 changes: 1 addition & 5 deletions src/components/confirm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ export default {
Dialog
},
props: {
show: {
type: Boolean,
default: false,
twoWay: true
},
show: Boolean,
title: {
type: String,
required: true
Expand Down
1 change: 0 additions & 1 deletion src/components/inline-calendar/props.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default () => ({
value: {
type: String,
twoWay: true,
default: ''
},
renderMonth: {
Expand Down
5 changes: 1 addition & 4 deletions src/components/picker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ export default {
type: Number,
default: 0
},
value: {
type: Array,
twoWay: true
},
value: Array,
itemClass: {
type: String,
default: 'scroller-item'
Expand Down
5 changes: 1 addition & 4 deletions src/components/popup/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import Popup from './popup'
export default {
props: {
show: {
type: Boolean,
twoWay: true
},
show: Boolean,
height: {
type: String,
default: 'auto'
Expand Down
5 changes: 1 addition & 4 deletions src/components/radio/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ export default {
type: Array,
required: true
},
value: {
type: String,
twoWay: true
},
value: String,
fillMode: {
type: Boolean,
default: false
Expand Down
6 changes: 2 additions & 4 deletions src/components/scroller/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ export default {
},
pulldownStatus: {
type: String,
default: 'default',
twoWay: true
default: 'default'
},
pullupStatus: {
type: String,
default: 'default',
twoWay: true
default: 'default'
},
enableHorizontalSwiping: {
type: Boolean,
Expand Down
1 change: 0 additions & 1 deletion src/components/search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default {
},
value: {
type: String,
twoWay: true,
default: ''
},
results: {
Expand Down
5 changes: 1 addition & 4 deletions src/components/x-input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ export default {
default: ''
},
placeholder: String,
value: {
type: [String, Number],
twoWay: true
},
value: [String, Number],
name: String,
readonly: {
type: Boolean,
Expand Down
3 changes: 1 addition & 2 deletions src/components/x-textarea/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default {
max: Number,
value: {
type: String,
default: '',
twoWay: true
default: ''
},
name: String,
placeholder: String,
Expand Down

0 comments on commit ba3a5b1

Please sign in to comment.