There was an error while loading. Please reload this page.
1 parent 4dad841 commit 7655c2eCopy full SHA for 7655c2e
src/components/MyRating.vue
@@ -2,7 +2,7 @@
2
* @Description :
3
* @Date : 2022-01-16 22:01:25 +0800
4
* @Author : JackChou
5
- * @LastEditTime: 2022-01-16 23:59:10 +0800
+ * @LastEditTime: 2022-01-20 00:09:36 +0800
6
* @LastEditors : JackChou
7
-->
8
<template>
@@ -63,7 +63,7 @@ export default {
63
// myRatingComponent.value = 4;
64
myRatingComponent.setAttribute('value', 4)
65
console.log('set value')
66
- myRatingComponent.getValue({ maxValue: 10, value: 5 }).then(value => {
+ myRatingComponent && myRatingComponent.getValue({ maxValue: 10, value: 5 }).then(value => {
67
console.log('get value', value)
68
})
69
console.log(this.$refs.myRating)
0 commit comments