diff --git a/pages/component/checkbox/checkbox.uvue b/pages/component/checkbox/checkbox.uvue index 31f25c83e211c57f06679bda997059f152e9d41d..ec9e521b29bb72c9d33a6127be15dd8c3a1774f7 100644 --- a/pages/component/checkbox/checkbox.uvue +++ b/pages/component/checkbox/checkbox.uvue @@ -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) { diff --git a/pages/component/radio/radio.uvue b/pages/component/radio/radio.uvue index d9e63896350995818650497ad27a41b4fc25130a..b9794d95a215fc369cae690e426fbd882d205316 100644 --- a/pages/component/radio/radio.uvue +++ b/pages/component/radio/radio.uvue @@ -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; }