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

feat(component): change event

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