omi - update vue demo

This commit is contained in:
dntzhang 2019-07-31 15:14:56 +08:00
parent 06477c2915
commit 82ce6845d1
1 changed files with 4 additions and 1 deletions

View File

@ -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>