提交 80fbfceb 编写于 作者: Y yurj26

feat(component): change event

上级 f8eb2483
......@@ -94,10 +94,9 @@
}
},
methods: {
checkboxChange: function (value : string[]) {
// TODO 后续更改参数
checkboxChange: function (e : CheckboxGroupChangeEvent) {
var items = this.items,
values = value;
values = e.detail.value;
for (var i = 0, lenI = items.length; i < lenI; ++i) {
const item = items[i]
if (values.indexOf(item.value) >= 0) {
......
......@@ -81,9 +81,9 @@
}
},
methods: {
radioChange(e : string) {
radioChange(e : RadioGroupChangeEvent) {
for (let i = 0; i < this.items.length; i++) {
if (this.items[i].value === e) {
if (this.items[i].value === e.detail.value) {
this.current = i;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册