update readme

This commit is contained in:
dntzhang 2018-10-14 09:24:19 +08:00
parent 50d4371490
commit d2150b7078
4 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,8 @@ import { WeElement } from 'omi'
class HelloElement extends WeElement {
static get props(){
return ['prop-from-parent']
//如果不写入就无法监听到属性变更且自动刷新视图
return ['prop-from-parent', 'msg']
}
onClick = (evt) => {

View File

@ -783,7 +783,7 @@
_createClass$1(HelloElement, null, [{
key: 'props',
get: function get() {
return ['prop-from-parent'];
return ['prop-from-parent', 'msg'];
}
}]);

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ import { WeElement } from '../../src/omi'
class HelloElement extends WeElement {
static get props(){
return ['prop-from-parent']
return ['prop-from-parent', 'msg']
}
onClick = (evt) => {