update readme
This commit is contained in:
parent
50d4371490
commit
d2150b7078
|
@ -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) => {
|
||||
|
|
|
@ -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
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue