Skip to content

Commit d86d240

Browse files
committed
update: 修改部分target为detail
1 parent 1cec632 commit d86d240

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

pages/component/label/label.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@
7676
},
7777
methods: {
7878
checkboxChange: function(e) {
79-
var checked = e.target.value
79+
var checked = e.detail.value
8080
console.log(checked)
8181
8282
},
8383
radioChange: function(e) {
84-
var checked = e.target.value
84+
var checked = e.detail.value
8585
console.log(checked)
8686
}
8787
}

pages/component/picker/picker.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
},
102102
methods: {
103103
bindPickerChange: function(e) {
104-
console.log('picker发送选择改变,携带值为:' + e.target.value)
105-
this.index = e.target.value
104+
console.log('picker发送选择改变,携带值为:' + e.detail.value)
105+
this.index = e.detail.value
106106
},
107107
bindMultiPickerColumnChange: function(e) {
108108
console.log('修改的列为:' + e.detail.column + ',值为:' + e.detail.value)
@@ -151,10 +151,10 @@
151151
this.$forceUpdate()
152152
},
153153
bindDateChange: function(e) {
154-
this.date = e.target.value
154+
this.date = e.detail.value
155155
},
156156
bindTimeChange: function(e) {
157-
this.time = e.target.value
157+
this.time = e.detail.value
158158
}
159159
160160
}

pages/component/radio/radio.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
methods: {
7474
radioChange(evt) {
7575
for (let i = 0; i < this.items.length; i++) {
76-
if (this.items[i].value === evt.target.value) {
76+
if (this.items[i].value === evt.detail.value) {
7777
this.current = i;
7878
break;
7979
}

pages/component/swiper/swiper.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
this.autoplay = !this.autoplay
6060
},
6161
intervalChange(e) {
62-
this.interval = e.target.value
62+
this.interval = e.detail.value
6363
},
6464
durationChange(e) {
65-
this.duration = e.target.value
65+
this.duration = e.detail.value
6666
}
6767
}
6868
}

pages/component/switch/switch.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
},
3737
methods: {
3838
switch1Change: function (e) {
39-
console.log('switch1 发生 change 事件,携带值为', e.target.value)
39+
console.log('switch1 发生 change 事件,携带值为', e.detail.value)
4040
},
4141
switch2Change: function (e) {
42-
console.log('switch2 发生 change 事件,携带值为', e.target.value)
42+
console.log('switch2 发生 change 事件,携带值为', e.detail.value)
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)