omi - update vue demo
This commit is contained in:
parent
06477c2915
commit
82ce6845d1
|
@ -27,11 +27,14 @@ export default {
|
|||
myEvent: function(evt) {
|
||||
//output abc
|
||||
console.log(evt.detail)
|
||||
|
||||
Omi.$.user.age = 2
|
||||
this.$refs.myEle.update()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<my-ele name="Omi" user=":user" @MyEvent="myEvent" />
|
||||
<my-ele ref="myEle" name="Omi" user=":user" @MyEvent="myEvent" />
|
||||
</template>
|
Loading…
Reference in New Issue