diff --git a/src/checkbox/demo/index.vue b/src/checkbox/demo/index.vue index 4afdc48e8..b00a0cd72 100644 --- a/src/checkbox/demo/index.vue +++ b/src/checkbox/demo/index.vue @@ -161,6 +161,7 @@ export default { methods: { toggle(index) { + // TODO ref in for this.$refs.checkboxes[index].toggle(); }, diff --git a/src/picker/demo/index.vue b/src/picker/demo/index.vue index 270b1a10a..983f09015 100644 --- a/src/picker/demo/index.vue +++ b/src/picker/demo/index.vue @@ -157,7 +157,7 @@ export default { }, methods: { - onChange1(picker, value, index) { + onChange1(value, index) { this.$toast(this.t('toastContent', value, index)); }, diff --git a/src/rate/index.js b/src/rate/index.js index 8c366f581..d191d20b0 100644 --- a/src/rate/index.js +++ b/src/rate/index.js @@ -58,6 +58,8 @@ export default createComponent({ }, }, + emits: ['change', 'update:modelValue'], + created() { this.itemRefs = []; },